Using the code below I get an error of sorts when I create a treeview. It seems to generate a GADGETSELECT event as well as the expected MENUACTION event?
This only happens when using the gtkmaxgui module, try commenting teh fltk module back in at the top and see the difference.
This only happens when using the gtkmaxgui module, try commenting teh fltk module back in at the top and see the difference.
SuperStrict Framework brl.blitz ?Linux Import bah.gtkmaxgui ' Import brl.fltkmaxgui ? Global main_window:TGadget = CreateWindow(AppTitle,0,0,320,240) Global treeview:TGadget = CreateTreeView( 8, 4, 296-70, 176, main_window ) Global filemenu:TGadget = CreateMenu("Devices", 0,WindowMenu(main_window)) CreateMenu("Rescan Devices",101, filemenu ) UpdateWindowMenu(main_window) ShowGadget(main_window) Repeat DebugLog CurrentEvent.tostring() Select WaitEvent() Case EVENT_MENUACTION DebugLog "HERE ;-)" Select EventData() Case 101 If treeview <> Null FreeGadget(treeview) treeview = Null GCCollect() EndIf treeview:TGadget = CreateTreeView( 8, 4, 296-70, 176, main_window ) EndSelect Case EVENT_GADGETSELECT DebugLog "WHY HERE, WHEN I SELECT MENU?" Case EVENT_WINDOWCLOSE If EventSource() = main_window Then Exit End Select Forever