On Windows XP and Windows 7 come a Error with ComboBox.
Maybe on more Windows, but not tested.
The PureBasic gadget created a large window if not items inside.
it is on "windows xp themes is off".
Winapi Combobox works fine.
Greetings
Lite
example:
Code: Select all
Enumeration
#Window
EndEnumeration
; Note:
; compileroptions: deactive modern theme windows xp style
; [ ] active modern theme Windows xp support
OpenWindow(#Window, 0, 0, 400, 300, "ComboBox Bug", #PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
TextGadget(0, 10, 20, 250, 20, "Winapi Combobox")
CreateWindow_(#WC_COMBOBOX, @"", #CBS_AUTOHSCROLL|#CBS_DROPDOWN|#CBS_SIMPLE|#WS_CHILD|#WS_VISIBLE, 10, 40, 200, 20, WindowID(#Window), #Null, #NUL, #Null)
TextGadget(1, 10, 80, 250, 20, "PureBasic Combobox")
ComboBoxGadget(5,10,100,200,25,#CBS_AUTOHSCROLL|#CBS_DROPDOWN|#CBS_SIMPLE)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
End
EndSelect
ForEver