Jump to content

Recommended Posts

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)
#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!")
                MsgBox(0, "Attention, please!", "Your password is wrong!")
        Case $GUI_EVENT_CLOSE


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 post
Share on other sites

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...