Sign in to follow this  
Followers 0
realkiller

clear value from list

2 posts in this topic

I made this gui sow far, the only problkem i got is to clear the selected value from the list if i add something

#include <GUIConstants.au3>

GLOBAL $MESSAGE = ""
GUICreate("Database",700,700-63,-1, 1)
$file = GUICtrlCreateInput ( "", 10,  5, 300, 20)

$add=GUICtrlCreateButton ("Toevoegen", 315,3,75,25)
$clear=GUICtrlCreateButton ("Leegmaken", 390,3,75,25)
$mylist=GUICtrlCreateList ("", 10,32,120,500)
GUICtrlSetData(-1,$MESSAGE)
GUICtrlRead($file)
GUISetState ()

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()

    Select
         case $msg = $add
        GUICtrlSetData($mylist,GUICtrlRead($file))
case $msg = $clear
        GUICtrlSetData($file,"value")
        


    EndSelect
Wend

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