kennt jemand von euch eine Möglichkeit, den Text in einer Combobox zu zentrieren? Ich werde einfach nicht fündig
Standardmäßig scheint es ja nicht möglich zu sein aber eventuell gibt es da eine API oder ähnliches wenn ich glück habe
lg
SBond
Code: Alles auswählen
If OpenWindow(0, 0, 0, 270, 440, "Test ComboBoxGadget",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(0, 10, 10, 250, 20, #PB_ComboBox_Editable)
;--> Get the handle to the Edit control (child of the editable ComboBoxGadget)
hComboEdit = FindWindowEx_(GadgetID(0), #Null, "Edit", #Null)
SetWindowLongPtr_(hComboEdit, #GWL_STYLE, GetWindowLongPtr_(hComboEdit, #GWL_STYLE) | #ES_CENTER)
AddGadgetItem(0, -1, "123")
AddGadgetItem(0, -1, "456")
AddGadgetItem(0, -1, "789")
SetGadgetState(0,0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
End