Jump to content
Sign in to follow this  
binarydigit0101

about an editbox.

Recommended Posts

binarydigit0101

I am trying to manage an editbox.

What I used is this:

#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?

Share this post


Link to post
Share on other sites
taietel

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 by taietel

Share this post


Link to post
Share on other sites
binarydigit0101
;) OKay, thank you! :)

ehi ehi ehi, what is your name?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.