AppTitle$="Umm..."
BlitzMax Forums/BlitzMax Beginners Area/AppTitle$="Umm..."
| ||
Just wondering how you set the AppTitle for a windowed app. Thanks. |
| ||
uh apptitle "fred" that's it |
| ||
Bah! It's not in the docs. =( And thanks btw. Edit: Not sure if you're pulling my leg here. I just tried it and it's not working. |
| ||
it's done this way:Strict ' always before calling Graphics() AppTitle = "My window title" Graphics( 800, 600, 0, 0 ) WaitKey() End |
| ||
Uhh, from what I could tell (mind you I havn't used it yet) after reading the docs (yes it's in there, albeit hidden somewhere unobvious) AppTitle$ is just an inbuilt Global. So you should be able to use it similar to how your topic title has it. That's what I thought up until now, anyway =] |
| ||
Actually thats how you do it in blitzplus and I was sure it's the same in BlitzMax but obvisouly it isn't, sorry fr any confusion. But yes, in both systems call before graphics! |
| ||
If you want to change it after the call to graphics, I wrote an appfuncs module (in module tweaks forum and in my sig) that will allow this. It works for all three platforms. |
| ||
Yep I was calling it after setting the graphics...thx all. EDIT: Bah...still not working. Maybe I'm expecting something that it doesn't do. I was thinking it put the name in the window title bar where it says BlitzGL Window. It's not doing that so... |
| ||
OK, this totally works on My BlitzMax (and your's should be the same ;-) [code AppTitle ="fred" Graphics 800,600,0 WaitKey [/code] |
| ||
OK, this totally works on My BlitzMax (and your's should be the same ;-) He needs to sync modules. AppTitle was added after 1.10. |
| ||
Tried to sync modules after I installed the 1.10 patch but got a server connect error. I'm sure the server will be back up soonish so no worries. |
| ||
just download 1.12 man! Uninstall the old one and delete all the folders (it tells you to do this) AFTER backing up all your important stuff, reinstall and do async mod and you are away. |
| ||
I will as soon as I get home. :( I didn't notice the new version was up late last night or I would have snagged it then. :( :( |
| ||
Yep this works for me now: AppTitle = "MyApp" |
| ||
I just searched the forum for "appTitle" because I found changing apps title does not work. This thread solved my problem, but one thing to me seems not to be emphasized enough: You must set appTitle =TEXT" BEFORE you call Graphics(...). This little detail, one does not imagine automatically (cause unter VB and VC you can change appTitle at any time), should have been told in the docs. |
| ||
Michael. It's already explained several times in this thread. |
| ||
The necessity to call it before Graphics() really had me baffled when I was running the demo version. I ran someone else program and AppTitle worked fine...ran mine and no go. About 15 minutes later it dawned on me to try putting it at the top of my source, since that's where it was in the other program. No point to this really, except to say having access to the forums is a very good thing, and thanks to all those who help us relative newbies. |
| ||
If you want to change the app title at run time, this is no problem. But you must own MaxGUI as it is a GUI command (as in VB as well, just to mention that) |
| ||
AppTitle isn't a GUI command. It's part of the Blitz runtime module - BRL.Blitz. Therefore, as long as you set it *before* you start your Graphics(), it should be shown in the window title bar. With MaxGUI, you set the window title when you create the window... |
| ||
You must set appTitle "Text" BEFORE you call Graphics. This little detail, one does not imagine automatically ... should have been told in the docs. Thank you! I had exactly the same problems, including trying to find an answer. Only thing that stops me from shaking my fist at the BMax "skydocs" for lack of printing nuances, how to pause a console app, etc. is that I'm starting to see this like an adventure game. You know, like "BlitzMystery" or something. lol :) Well, that, and I suspect that the author is one of these programming gurus who can pour countless hours into coding, but has little time or patience for extensive documenting. Understandable. Hell, nobody can do everything. Someday, perhaps somebody young (I ain't) and full of energy (I really ain't) will come along and make that a pet project. Until then, I seem to be puttering along nicely, thanks the these forums. While the BMax author may not be long on dox, having forums without locking threads was very smart. And if he would migrate all this to "Simple Machines Forum" or vBulletin ... genius! He needs to sync modules. AppTitle was added after 1.10. Ok, there must be a newer version. All the v1.20 docs say is: Global AppTitle$="bbAppTitle" Description Application title Information The AppTitle global variable is used by various commands when a default application title is required - for example, when opening simple windows or requesters. Initially, AppTitle is set the value "BlitzMax Application". However, you may change AppTitle at any time with a simple assignment. |