;Autor: infratec, Kiffi ;http://www.purebasic.fr/german/viewtopic.php?p=313672#p313672 EnableExplicit Define EventID Define hComboEdit If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ComboBoxGadget(1, 10, 10, 200, 20, #PB_ComboBox_Editable) AddGadgetItem(1, -1, "123") AddGadgetItem(1, -1, "456") AddGadgetItem(1, -1, "789") SetGadgetState(1,0) hComboEdit = FindWindowEx_(GadgetID(1), #Null, "Edit", #Null) SetWindowLongPtr_(hComboEdit, #GWL_STYLE, GetWindowLongPtr_(hComboEdit, #GWL_STYLE) | #ES_CENTER) Repeat EventID = WaitWindowEvent() If EventID = #PB_Event_CloseWindow End EndIf ForEver EndIf ; IDE Options = PureBasic 5.31 (Windows - x64) ; EnableUnicode ; EnableXP ; EnableUser ; EnableCompileCount = 0 ; EnableBuildCount = 0