datkewlguy Posted June 5, 2005 Posted June 5, 2005 anyway to make an edit box clear the text inside of it when you click on it?
buzz44 Posted June 5, 2005 Posted June 5, 2005 (edited) Try...If $msg = $editbox Then GUICtrlSetData($editbox,"") EndIfEdit: 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 June 5, 2005 by Burrup qq
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