Jump to content

edit box


Recommended Posts

Try...

If $msg = $editbox Then
   GUICtrlSetData($editbox,"")
EndIf

Edit: Above doesn't work, this does.

#include <GUIConstants.au3>

GUICreate("My GUI edit"); will create a dialog box that when displayed is centered

$myedit=GUICtrlCreateEdit ("First line"& @CRLF, 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL)

GUISetState ()

GUICtrlSetData ($myedit, "Second line",1)

While 1
    $msg = GUIGetMsg()
    $test = GUIGetCursorInfo ()
    If $msg = $GUI_EVENT_PRIMARYDOWN AND $test[4] = $myedit Then
       GuiCtrlSetData($myedit,"")
    Endif
    If $msg = $GUI_EVENT_CLOSE Then Exit
Wend
Edited by Burrup

qq

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...