Obscuring text for Password entry |
Post Reply |
Author | |
vernonr
Newbie Joined: 08 May 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 04 August 2006 at 12:40pm |
I am trying to cause a password to be obscured using asterisks using CXTPReportRecordItemEditOptions and setting
m_pEditOptions->m_dwEditStyle |= ES_PASSWORD; Has anyone any advice on how I can get the toolkit to take notice of this ?
Thanks
|
|
vernonr
Newbie Joined: 08 May 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Eventually solved this problem myself.....!! as no replies received
...
Not simple as Codejock buried the instantiation of CXTPReportInplaceEdit within CXTPReportRecordItem, and lots of functions in both call GetCaption for the string to display. Whilst it is possible to obscure the string - you actually need to blank the obscured string before allowing an edit - otherwise addition of characters in middle of string can cause havoc.
Brief Outline...
There derive subclasses from CXTPReportRecordItem ( overriding the classes that refer to the edit control ) . Derive a subclass from CXTPReportInplaceEdit and override the create function to call GetStartEditCaption - which returns a blank CString for a password, and the normal GetCaption() a non password. You'll need to adjust the class friends to get rid of linkage errors as well..
Don't use CXTPReportRecordItemText.
Cheers
|
|
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 |