apptitle
BlitzMax Forums/BlitzMax Programming/apptitle
| ||
anyway to change the title? easy question |
| ||
if you get create a function that exports the hwnd from the bglcreatecontext c file then you can do it on windows with the WinAPI function SetWindowText_( hwnd, title ). didn't find any internal function as windowed support isn't really in. actually it is only meant for debugging from what the doc / source says |
| ||
Nice idea but shouldn't we all be creating cross-platform software now? |
| ||
Yepp But windowed isn't in so far. I think when it is really in we will have this functions provided as well :) |
| ||
is there a function to set the window title before the window is created? because without this function the user will see the default title for a small time. |
| ||
I wrote a little module with some commands including SetAppTitle here: http://www.blitzbasic.com/Community/posts.php?topic=43341 it works for Mac and Windows currently (look near the bottom of the thread for the latest version). |
| ||
thank you, Perturbatio, but if I run the following code the user can still see the default title ("BlitzGLWimdow") for a small time. If I call the SetAppTitle-function before I call the Graphics-command the window title is all the time "BlitzGLWindow". |
| ||
I notice there's no AppTitle in the final Windows release, so are we still not to use windowed mode for releases? |
| ||
The only way to change it before the window shows is to either: Hack the C source that contains the Graphics command OR Create your own OpenGL window |
| ||
I notice there's no AppTitle in the final Windows release, so are we still not to use windowed mode for releases? From the docs: A depth value of 0 enables 'windowed mode'. This special mode is currently intended for debugging purposes only and should not be used for release builds. Improved support for windowed modes will be added shortly. |
| ||
thank you, Perturbatio, I've changed some files and it works! (I added 4 lines from your code so that the function works as well as the AppTitle-function in Blitz3D(that means it works before and while the window is opened)) here is the code: /mod/brl.mod/blitzgl.mod/blitzgl.win32.c: /mod/brl.mod/blitzgl.mod/blitzgl.bmx: /mod/brl.mod/max2d.mod/max2d.bmx: thanks a lot, it helps me very much!! |
| ||
After the last call to SyncMods I've seen the "AppTitle$"-Variable in the brl.blitz-mod. This is exactly what I was asking for. Thanks a lot, Mark! |