kann mir jemand sagen warum nicht mal das Beispielprogramm der Version 4.5 RC2 für eine ComboBox mit Bild funktioniert?
Hier der Code:
Code: Alles auswählen
;===============================================================================
UsePNGImageDecoder()
LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/world.png")
If OpenWindow(0, 0, 0, 270, 180, "ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(0, 10, 10, 250, 21, #PB_ComboBox_Editable)
AddGadgetItem(0, -1, "ComboBox editable...")
ComboBoxGadget(1, 10, 40, 250, 21)
AddGadgetItem(1, -1, "ComboBox item with image", ImageID(0))
ComboBoxGadget(2, 10, 70, 250, 21)
For a = 1 To 5
AddGadgetItem(2, -1,"ComboBox item " + Str(a))
Next
SetGadgetState(0, 0)
SetGadgetState(1, 0)
SetGadgetState(2, 2) ; wir setzen (beginnend bei 0) den dritten als den aktiven Eintrag
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
;=========================================================================================
__________________________________________________
Code-Tags hinzugefügt
07.06.2010
RSBasic