Replacing titlebar icon in Graphics() window

BlitzMax Forums/BlitzMax Programming/Replacing titlebar icon in Graphics() window

JoshK(Posted 2010) [#1]
Reshack and importing an .o file change the .exe file icon, but not the Window icon in the top-left of the title bar of a window created with Graphics. The BLIDE publisher doesn't do it either.

Has anyone successfully done this?


plash(Posted 2010) [#2]
..EDIT: It won't work with the standard modules. The C code for creating graphics windows does not use any resource from the exe.
You have to change it after the window is created.


GfK(Posted 2010) [#3]
I use this method which works perfectly. Its a little long-winded to set up from scratch, but once its done, its done.


ziggy(Posted 2010) [#4]
@JoshK: If you import the publisher module to your application, and call Publisher.SetIcon just after creating the window, this should work. You can get the publisher module from the downloads section of your BLIde Plus account.


JoshK(Posted 2010) [#5]
Thanks Ziggy, it works