![]() |
Password CXTPControlEdit in Toolbar |
Post Reply
|
| Author | |
mwest
Newbie
Joined: 13 June 2005 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: Password CXTPControlEdit in ToolbarPosted: 08 August 2005 at 11:59am |
|
Is there an easy way to make a CXTPControlEdit in a toolbar a password field (one with '*')?
I tried to create the control in OnCreateControl and call SetPasswordChar, but the CEdit is not created until 'SetRect' is called (which is too late).
I am trying to create a simple password control without having to create a custom class. Thanks! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 August 2005 at 12:41pm |
|
Only one way to override CXTPControlEdit class CXTPControlPasswordEdit : public CXTPControlEdit DECLATE_XTP_CONROL(CXTPControlPasswordEdit ) void SetRect(CRect rcControl) CXTPControlEdit::SetRect(rcControl); } } IMPLEMENT_XTP_CONTROL(CXTPControlPasswordEdit , CXTPControlEdit)
ps. didn't tested :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mwest
Newbie
Joined: 13 June 2005 Location: United States Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 August 2005 at 4:47pm |
|
For now I just have:
NOTE: The code was truncated and inlined. It seems to work fine, but I am not sure if it is the best way to do it. Edited by mwest |
|
![]() |
|
spike
Groupie
Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 August 2005 at 12:10pm |
|
Looks like the better way to do it to me.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |