Showing results for 
Search instead for 
Did you mean: 

Implement my own password field

Active Contributor
0 Kudos

I have implemented my own "password" field.

I catch the before_action of the et_KEY_DOWN event, check for the delete and backspace, displays an '*' or clears the field and bubbleevent is false.

my code is below.

If pVal.CharPressed = 8 Or pVal.CharPressed = 46 Then

pincode = ""

oApp.Forms.Item(FormUID).Items.Item "pincode").Specific.string = ""


oApp.Forms.Item(FormUID).Items.Item"pincode").Specific.string += "*"

pincode += Chr(pVal.CharPressed)

End If

BubbleEvents = False

My problem is that the cursor stays at the beginning of my field.

How can I move it to the end of this field.

View Entire Topic
Former Member
0 Kudos

how about uiing sendkeys function to mimick the End key press

Active Contributor
0 Kudos

Sorry, but this solution does not work.

I am in the before_action and sending another event, this causes a loop in the events and my add-on crashes.

Active Contributor
0 Kudos

I was to quick in answering.

I added

If pVal.CharPressed = 35 Then Return

at the start of my code and it works