[MaxGUI] strange events...
BlitzMax Forums/BlitzMax Beginners Area/[MaxGUI] strange events...| 
 | ||
| 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() 
' 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... | 
| 
 | ||
| When I run it I get these events as soon as the window appears, nothing about a TimerTick. SelectedGadgetItem()=2 WindowMove: data=0, mods=0, x=30, y=20, extra="" WindowSize: data=0, mods=0, x=200, y=200, extra="" AppResume: data=0, mods=0, x=0, y=0, extra="" WindowActivate: data=0, mods=0, x=0, y=0, extra="" GadgetAction: data=2, mods=0, x=0, y=0, extra="mystringobject" | 
| 
 | ||
| When I run, I get the following WindowMove: data=0, mods=0, x=30, y=20, extra="" WindowSize: data=0, mods=0, x=200, y=200, extra="" AppResume: data=0, mods=0, x=0, y=0, extra="" WindowActivate: data=0, mods=0, x=0, y=0, extra="" GadgetAction: data=2, mods=0, x=0, y=0, extra="mystringobject" SelectedGadgetItem()=2 AppSuspend: data=0, mods=0, x=0, y=0, extra="" AppResume: data=0, mods=0, x=0, y=0, extra="" WindowActivate: data=0, mods=0, x=0, y=0, extra="" GadgetAction: data=1, mods=0, x=0, y=0, extra="" SelectedGadgetItem()=1 GadgetAction: data=0, mods=0, x=0, y=0, extra="" SelectedGadgetItem()=0 GadgetAction: data=2, mods=0, x=0, y=0, extra="mystringobject" SelectedGadgetItem()=2 AppSuspend: data=0, mods=0, x=0, y=0, extra="" NOTE: I clicked the buttons too, so you see the extra info pop up. No timer ticks here either. :( ? | 
| 
 | ||
| WTF! what hell?!? I don't know why but I have a timertick event every second I think... Oh sh*t I just tested with htmlgadget and other gadget and I obtain the same result! I think I messed up the code...somewhere during my exploration-anatomy test?!! aarrrhhg - need a fresh reinstall I think... |