Jump to content


Photo

TNxButtonEdit: PasswordChar not working


  • Please log in to reply
7 replies to this topic

#1 jela

jela
  • Members
  • 26 posts

Posted 02 September 2005 - 01:01 AM

Hi,
the PasswordChar property in TNxButtonEdit doesn't seem to be working. Can you check this please Boki?

Best regards

jela

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 September 2005 - 01:53 AM

Hi Jelo,

For me all work fine. I have put * as password char and all characters are shown and typed as * char.

Can you please tell me which character you have try to use? Maybe some non-standard char?

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 jela

jela
  • Members
  • 26 posts

Posted 02 September 2005 - 02:18 AM

No, I have used * as well. I have just created a secondary form for my application which should function later for password entry, then put some panel on it, and on that panel the buttonedit. But no password char is functioning, like it would be ignoring that setting.

by the way, its Jela and not Jelo smile.gif

#4 jela

jela
  • Members
  • 26 posts

Posted 02 September 2005 - 02:21 AM

I've now even tried setting it on a complete empty form (new project). Still it doesn't do the PasswordChar. When doing it with a standard TEdit, it's functioning. I just want to use yours because of the style.

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 September 2005 - 03:08 AM

Hello Jela,

Please sorry for my mistake about your name. Here, in my country Jela is also name smile.gif , but for Females.

Please contact me via email and I will send you new NxEdit file, maybe new file will work for you fine.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 Emsländer

Emsländer
  • Members
  • 74 posts
  • Location:Germany

Posted 12 October 2005 - 08:53 AM

I got the same bug

brgds

EL

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 17 October 2005 - 01:22 AM

Hello,

I have made to fix it.

It was a problem with VerticalAlignment, because PasswordChar won't work when VerticalAlignment is not vaMiddle.

If someone like to fix it manualy, here is updated CreateParams method:

CODE
procedure TNxCustomEdit.CreateParams(var Params: TCreateParams);

const

 Styles: array [TAlignment] of DWORD = (ES_LEFT, ES_RIGHT, ES_CENTER);

 MultiLine: array[Boolean] of DWORD = (0, ES_MULTILINE);

begin

 inherited CreateParams(Params);

 Params.Style := Params.Style or (ES_AUTOHSCROLL or ES_AUTOVSCROLL)

     or MultiLine[PasswordChar = #0] or WS_CLIPCHILDREN or Styles[FAlignment];

end;


regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 Emsländer

Emsländer
  • Members
  • 74 posts
  • Location:Germany

Posted 17 October 2005 - 01:51 PM

QUOTE (Boki)
Hello,

I have made to fix it.

It was a problem with VerticalAlignment, because PasswordChar won't work when VerticalAlignment is not vaMiddle.

If someone like to fix it manualy, here is updated CreateParams method:

CODE
procedure TNxCustomEdit.CreateParams(var Params: TCreateParams);

const

 Styles: array [TAlignment] of DWORD = (ES_LEFT, ES_RIGHT, ES_CENTER);

 MultiLine: array[Boolean] of DWORD = (0, ES_MULTILINE);

begin

 inherited CreateParams(Params);

 Params.Style := Params.Style or (ES_AUTOHSCROLL or ES_AUTOVSCROLL)

     or MultiLine[PasswordChar = #0] or WS_CLIPCHILDREN or Styles[FAlignment];

end;


regards


Hi Boki,

does not work.

I take TNextEdit Component onto a form and place into the Passwort Character a '*' ...

does not work

brgds

EL




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users