Now I just got it from a call to CreateWindow(). No idea why this is happening... I should probably do the debugging thing but it's too late right now, I'm too tired.
This is the code that's crashing on the first call to CreateWindow.
publish.bmx - main code file
mainWindow.bmx
By the way, GUIde works great under Wine. :)
This is the code that's crashing on the first call to CreateWindow.
publish.bmx - main code file
Import MaxGUI.Drivers Include "mainWindow.bmx" MainWindow_Create() Repeat Select WaitEvent() Case EVENT_GADGETACTION ' interacted with gadget MainWindow_DoGadgetAction() Case EVENT_WINDOWCLOSE ' close gadget Exit End Select Forever
mainWindow.bmx
'GUIde 1.4 BlitzMAX export Global MainWindow:TGadget Global lstFiles:TGadget Global lblLabel0:TGadget Global lblLabel1:TGadget Global btnPublishSelected:TGadget Global btnPublishAll:TGadget Global btnProjectSet:TGadget Global lstPublish:TGadget Function MainWindow_Create() MainWindow=CreateWindow("Publish",0,00,162,227,Desktop(),WINDOW_TITLEBAR|WINDOW_RESIZABLE) lstFiles=CreateListBox(0,40,152,128,MainWindow) AddGadgetItem lstFiles,"item0" SelectGadgetItem lstFiles,0 SetGadgetLayout lstFiles,1,1,1,1 lblLabel0=CreateLabel("Project:",0,8,40,16,MainWindow,0) SetGadgetLayout lblLabel0,1,0,1,0 lblLabel1=CreateLabel("Publish:",8,176,40,16,MainWindow,0) SetGadgetLayout lblLabel1,1,0,2,1 btnPublishSelected=CreateButton("Selected",56,176,56,24,MainWindow,BUTTON_PUSH) SetGadgetLayout btnPublishSelected,2,1,2,1 btnPublishAll=CreateButton("All",120,176,32,24,MainWindow,BUTTON_PUSH) SetGadgetLayout btnPublishAll,2,1,2,1 btnProjectSet=CreateButton("Set...",48,8,96,24,MainWindow,BUTTON_PUSH) SetGadgetLayout btnProjectSet,1,0,1,0 lstPublish=CreateListBox(0,40,152,128,MainWindow) AddGadgetItem lstPublish,"item0" SelectGadgetItem lstPublish,0 SetGadgetLayout lstPublish,1,1,1,1 EndFunction '-mainloop-------------------------------------------------------------- '-gadget actions-------------------------------------------------------- Function MainWindow_DoGadgetAction() Select EventSource() Case btnPublishSelected ' user pressed button Case btnPublishAll ' user pressed button Case btnProjectSet ' user pressed button End Select End Function
By the way, GUIde works great under Wine. :)