Password protected field with 'eye'button

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Password protected field with 'eye'button

#1 Post by skiman »

Hi,

To create a password protected field with an 'eye' button to show the content, I thought to use the following:

Code: Select all

POPUP {|a,b| b:password:=!b:password,DC_GetRefresh(GetList),b:get:buffer } POPCAPTION "N" POPFONT "14.Webdings"
It is working, except that with the mouseover the 'eye' changes to the letter 'N'.

Any suggestions?
Best regards,

Chris.
www.aboservice.be

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Password protected field with 'eye'button

#2 Post by Tom »

No character shown at mouseover:

Code: Select all

cPassWord := Space(20)
@ 0,0 DCGET cPassWord PASSWORD POPUP {|c|MsgBox(c)} POPSTYLE DCGUI_POPUPSTYLE_IMBEDDED POPCAPTION Chr(78) POPFONT "20.Webdings" 
DCREAD GUI FIT ADDBUTTONS
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Password protected field with 'eye'button

#3 Post by rdonnay »

This sample works fine for me:

Code: Select all

#INCLUDE "dcdialog.CH"

LOCAL GetList[0], cPassword, oConfig

oConfig := DC_XbpPushButtonXPConfig():new()

DC_PopupButtonStyle( oConfig )

cPassWord := Space(20)

@ 0,0 DCGET cPassWord PASSWORD ;
   POPUP {|a,b| b:password:=!b:password,DC_GetRefresh(GetList),b:get:buffer } POPCAPTION "N" POPFONT "14.Webdings"

DCREAD GUI FIT ADDBUTTONS

RETURN nil

PROC appsys ; return
The eXpress train is coming - and it has more cars.

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Password protected field with 'eye'button

#4 Post by skiman »

Hi Tom, Roger,

Seems as I have to check the mouseover in my modified buttonclass.
Best regards,

Chris.
www.aboservice.be

Post Reply