Jump to content

clear value from list


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...