I found this when my program crashed (v.4.01) but this is same in v.4.0.
WaitWindowEvent() gives message no:280 when SetActiveGadget() is used (with EditorGadget and StringGadget).
Is this normal, or do I just understand something wrong...please help!
Code: Select all
If OpenWindow(0, 0, 0, 322, 250, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
EditorGadget(1, 8, 8, 306, 100)
StringGadget(2, 8, 120, 306, 100, "Text")
For a = 0 To 5
AddGadgetItem(1, a, "Line "+Str(a))
Next
SetActiveGadget(2)
Repeat
event = WaitWindowEvent()
Debug event
Until event = #PB_Event_CloseWindow
EndIf