Sign in to follow this  
Followers 0
myspacee

wipe GUICtrlCreateCombo

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0