No AppTitle in Bmax?
BlitzMax Forums/BlitzMax Programming/No AppTitle in Bmax?
| ||
Just tried to change my application's window title only to find appTitle is actually a global in bmax. I searched the index but could find no equivilent? Anyone know of a way to change it? |
| ||
AppTitle="Whatever You Want" |
| ||
Ah. I should have guessed that. Thanks. |
| ||
I've found that you have to place the statement before your graphics statement for it to work. Once the graphics statement has created the window it's too late. Issuing the Apptitle statement won't change it. |
| ||
Yeah I assumed as much, but thanks for the heads up. |
| ||
Extern "win32" Function SetWindowText(hwnd, lpString:Byte Ptr) = "SetWindowTextA@8" Function GetActiveWindow:Byte Ptr() End Extern Function WindowCaption(title:string) SetWindowText(Int(GetActiveWindow()),title.ToCString()) End Function Graphics 800,600,0 WindowCaption "test" While Not KeyHit(KEY_ESCAPE) Wend This can change the AppTitle after Graphics command. |
| ||
or for multiplatform goodness, get my appfuncs module. |