ComboBoxGadget zentriert, rechtsbündig editierbar
Verfasst: 28.11.2017 10:43
Hallo,
ich möchte ComboBoxGadget in alle Varianten haben:
mit/ohne editierbar, linksbündig, zentriert und rechtsbündig.
Mit mein Test-Code funktioniert es nicht.
Danke und Gruß
MarcelX
ich möchte ComboBoxGadget in alle Varianten haben:
mit/ohne editierbar, linksbündig, zentriert und rechtsbündig.
Mit mein Test-Code funktioniert es nicht.
Code: Alles auswählen
If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(1, 10, 10, WindowWidth(0)-20, 20); |#PB_ComboBox_Editable)
AddGadgetItem(1, -1,"left")
SetGadgetState(1, 0)
ComboBoxGadget(2, 10, 30, WindowWidth(0)-20, 20, #PB_Text_Center) ; |#PB_ComboBox_Editable
AddGadgetItem(2, -1,"center")
SetGadgetState(2, 0)
ComboBoxGadget(3, 10, 50, WindowWidth(0)-20, 20, #SS_RIGHT) ; |#PB_ComboBox_Editable
AddGadgetItem(3, -1,"right")
SetGadgetState(3, 0)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
End
EndSelect
ForEver
EndIf
MarcelX