binarydigit0101 Posted July 10, 2011 Share Posted July 10, 2011 I am trying to manage an editbox. What I used is this: expandcollapse popup#include <GUIConstants.au3> #include <GUIEdit.au3> #include <TreeviewConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Log-iN into your personal panel.", 482, 170, 192, 201) $Label1 = GUICtrlCreateLabel("You will could have access to your q3ut4 folder only after having given your access details.", 24, 24, 433, 17) $nomeutente = GUICtrlCreateEdit("", 24, 56, 433, 17, $ES_READONLY) GUICtrlSetData(-1, "Loris") $password = GUICtrlCreateEdit("", 24, 80, 433, 25, $TVS_NOSCROLL) $conferma = GUICtrlCreateButton("LOG-IN.", 344, 112, 113, 25, 0) $MenuItem1 = GUICtrlCreateMenu("About.") $MenuItem2 = GUICtrlCreateMenuItem("Informations.", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("Check for updates.", $MenuItem1) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### _GUICtrlEdit_SetPasswordChar($password, "*") _GUICtrlEdit_ShowBalloonTip($password, "", "insert here your personal password.", 0) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $conferma If GUICtrlRead($password) = "passwordtry" Then MsgBox(0, "OKay!", "Your password is right!") Else MsgBox(0, "Attention, please!", "Your password is wrong!") EndIf Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd editbox I need to manage is $password. I would remove horizontal scrollbar but to know how allow text to go to new line automatically or continue only in a line (enable or disable enter button). i resolved partially first step, because hscrollbar is removed, but it allows me to type in only numbers... thank you in advance for your help! ehi ehi ehi, what is your name? Link to comment Share on other sites More sharing options...
ahmet Posted July 10, 2011 Share Posted July 10, 2011 Do not specify style of password control and put this line _GUIScrollBars_ShowScrollBar(GUICtrlGetHandle($password),$SB_both,False). you will also have to include ScrollBarConstants.au3 and GuiScrollBars.au3. Link to comment Share on other sites More sharing options...
taietel Posted July 10, 2011 Share Posted July 10, 2011 (edited) Or this: $password = GUICtrlCreateEdit("", 24, 80, 433, 25, BitOR($ES_PASSWORD,$ES_AUTOVSCROLL,$ES_NOHIDESEL)); [EDIT] Don't forget to put this line on top: #include <EditConstants.au3> Edited July 10, 2011 by taietel Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
binarydigit0101 Posted July 11, 2011 Author Share Posted July 11, 2011 OKay, thank you! ehi ehi ehi, what is your name? Link to comment Share on other sites More sharing options...
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