ComboBox prob?

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Hi,

This source:

Code: Select all

If OpenWindow(0, 0, 0, 400, 300, #PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget|#PB_Window_TitleBar, "FooBar")    CreateGadgetList(WindowID())
    ComboBoxgadget(1, 20, 20, 200, 20, #PB_ComboBox_Editable)
    
    AddGadgetItem(1, -1, "foo")
    AddGadgetItem(1, -1, "bar")
    
    While quit=0
        ev.l=WaitWindowEvent()
        While ev0
            If ev=#PB_Event_CloseWindow : quit=1 : EndIf
            ev=WindowEvent()
        Wend
    Wend
    
    CloseWindow(0)
EndIf
End
Gives me a combobox with a dropdown list with no items: http://www.david-mcminn.co.uk/graphics/Image2.png

Have I got something wrong or is this a bug?



--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> ComboBoxgadget(1, 20, 20, 200, 20, #PB_ComboBox_Editable)

Change the "height" parameter (currently 20) to something bigger.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by PB

> ComboBoxgadget(1, 20, 20, 200, 20, #PB_ComboBox_Editable)
Change the "height" parameter (currently 20) to something bigger.
Thanks.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
Post Reply