Edit: Nevermind, directly after posting I found out that "set window on" caused the bug... with resetmainwindow it worked then.
Hi, it's me again, with another problem with BlueGUI.
Now it's a toolbar which doesn't work. I have used toolbars in previous projects without problems, but this time the toolbar I created is not drawn correctly.
First I created a menu and the toolbar afterwards, this didn't work in any way, so I changed the order and created the toolbar at first. Then the toolbar was positioned under the menu, but just pasted when I used "paintgadget", and even then I just could see flickering toolbar-buttons, but no grey box or anything.
When I exportet the toolbar-creation-function into a new sourcefile and compiled it with a simple loop everything worked fine, but, whyever, in this project not..
Here 2 pieces of code which might cause the bug (don't know where else to expect one)...
rem GUI
rem Initiate
GUI_Init()
rem Toolbar
GUI_SetupToolbar()
rem Menu
GUI_GlobalsMenu()
GUI_CreateMenu()
rem Tile-Template-Editor
GUI_SetupTileTemplateEditor()
rem Template-Selection-Window
GUI_SetupTSWindow()
rem Entity-Editor
GUI_EE_Setup()
rem Entity-Selection-List-Window
GUI_ES_Setup()
And the other one:
function GUI_SetupToolbar()
rem Globals
global GUI_Toolbar as integer
global GUI_ToolbarPanel as integer
rem Gadgets
GUI_ToolbarPanel = createpanel(0,16,1024,22,0)
GUI_Toolbar = createtoolbar(GUI_ToolbarPanel)
rem Toolbar-Icons
rem **Standard** (New,Open,Save...)
rem **Edit-Mode** (Tiles, Entities)
addtoolbarbutton GUI_Toolbar, "iconseditmode_tiles.ico", 0
addtoolbarbutton GUI_Toolbar, "iconseditmode_entities.ico",0
endfunction
I hope anyone has a solution.
Thanks in advance,
Mr Kohlenstoff.