myspacee Posted February 15, 2010 Posted February 15, 2010 Hello to all, i need to wipe entire GUICtrlCreateCombo content, to populate again later. Exist a quick function to do this ? thank you for reading, m.
NerdFencer Posted February 15, 2010 Posted February 15, 2010 The easiest way is to just delete the control with GUICtrlDelete then remake the control with the new content. _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell
Fire Posted February 15, 2010 Posted February 15, 2010 Hi myspacee,Sorry may be i disundestand you about what & because my English very bad.I think you are about guictrlsetdata()My sample:#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Form1", 301, 164, 349, 237) $Combo1 = GUICtrlCreateCombo("Combo1", 88, 32, 105, 25) $Button1 = GUICtrlCreateButton("Generate", 8, 128, 65, 17, $WS_GROUP) $Button2 = GUICtrlCreateButton("Clear", 168, 128, 73, 17, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 For $i=0 To 59 If $i <= 9 Then GUICtrlSetData($Combo1,"0" &$i&"|") EndIf If $i > 9 Then GUICtrlSetData($Combo1,$i & "|") EndIf Next Case $Button2 GUICtrlSetData($Combo1,"") ;clear EndSwitch WEnd [size="5"] [/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now