I cannot get any message in the callback...
Code: Select all
;- Window Constants
;
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
;
Enumeration
#ExplorerComb_0
EndEnumeration
Macro LOWORD(Value)
Value & $FFFF
EndMacro
Macro HIWORD(Value)
Value >> 16
EndMacro
Procedure Open_Window_0()
If OpenWindow(#Window_0, 258, 99, 386, 215, "Explorer Combo", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
ExplorerComboGadget(#ExplorerComb_0, 10, 10, 366, 24, "", #PB_Explorer_Editable)
EndIf
EndProcedure
Procedure WindowCallback_0(hWnd, uMsg, wParam, lParam)
; Windows fills the parameter automatically, which we will use in the callback...
Select uMsg
Case #WM_COMMAND
Select LOWORD(wParam)
Case #ExplorerComb_0
Select HIWORD(wParam)
Case #CBN_EDITCHANGE
Debug "COMBO - TEXT CHANGE"
Case #CBN_SELCHANGE
Debug "COMBO - SELECTION CHANGE"
EndSelect
EndSelect
EndSelect
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure
Open_Window_0()
Repeat
EventID = WaitWindowEvent()
WindowN = EventWindow()
GadgetN = EventGadget()
Select EventID
Case #PB_Event_Gadget
Select WindowN
Case #Window_0
Select GadgetN
Case #ExplorerComb_0
; COMBO EVENT
EndSelect
EndSelect
Case #PB_Event_CloseWindow
Select WindowN
Case #Window_0
Quit = 1
EndSelect
EndSelect
Until Quit = 1


