![]() |
CXTPPropertyGridItem hexadecimal input ?? |
Post Reply
|
| Author | |
hpesata
Groupie
Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPPropertyGridItem hexadecimal input ??Posted: 18 October 2005 at 12:08pm |
|
Hi!
XTP 9.70 I would like to create a custom grid item which allows input of hex-values like: 0xFFFF I tried to use SetMask() to restrict the input to hex-characters, but it didnt work as expected. I also dont want the "0x" to appear in my final value-string, it should just be displayed as a header to mark the hex-input. If this isnt possible, it would be good, if the user cant edit the "0x" header. the input should just be resticted to 0-9 and A-F. how can I accomplish a hex-input property grid item like that ? thanx in advance! regards, Hans |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 October 2005 at 1:13pm |
|
Try this CXTPPropertyGridItem* pItemMaskEdit = pCustom->AddChildItem(new CXTPPropertyGridItem(_T("Base Address"), _T("0x0000"))); + use pItemMaskEdit->GetMaskedText(); to get text without mask (without "0x") |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
hpesata
Groupie
Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 October 2005 at 12:33pm |
|
Hi Oleg!
thanx for your reply! actually the way the masked edit is displayed doenst fit our other (non-hex) property grid items. they dont have a prompt, but the hex-item one does... this doesnt look too good, so I decided to use another approach by overriding the inplaceedit control and use OnChar() to limit the input to hex-keys (0-9,A-F) regards, Hans |
|
![]() |
|
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 |