Well, I want to know if anyone has my same result...
This is the 'standard' code that comes with the Bmax documentation relative to CreateListBox()
Please run and tell me what events will be shown.
I receive
when I dont' move the mouse/click or anything else.
Why is there a Timer event in ListGadget? Or I mess up my source...
This is the 'standard' code that comes with the Bmax documentation relative to CreateListBox()
' createlistbox.bmx Strict Local window:TGadget Local listbox:TGadget window=CreateWindow("My Window",30,20,200,200) Const ETIP$="Greate for lovers of rain, mushy peas and stomping beats.~r~nNew line..." listbox=CreateListBox(4,4,100,80,window) AddGadgetItem listbox,"German" AddGadgetItem listbox,"England",False,-1,ETIP AddGadgetItem listbox,"French",False,-1,"tip - goes here","mystringobject" SelectGadgetItem listbox,2 Print "SelectedGadgetItem()="+SelectedGadgetItem(listbox) '-1 means none selected While WaitEvent() Print CurrentEvent.ToString() If EventSource()=listbox Print "SelectedGadgetItem()="+SelectedGadgetItem(listbox) If EventData()<>SelectedGadgetItem(listbox) Print "error with skidracer" EndIf Select EventID() Case EVENT_WINDOWCLOSE End End Select Wend
Please run and tell me what events will be shown.
I receive
TimerTick: data=1, mods=0, x=0, y=0, extra="" TimerTick: data=2, mods=0, x=0, y=0, extra="" TimerTick: data=3, mods=0, x=0, y=0, extra="" TimerTick: data=4, mods=0, x=0, y=0, extra=""
when I dont' move the mouse/click or anything else.
Why is there a Timer event in ListGadget? Or I mess up my source...