Limit string length / Input mask |
Post Reply |
Author | |
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Posted: 05 May 2007 at 7:25pm |
I need to limit the length of a string item but pItem->GetInplaceEdit().SetLimitText(...) does not work, the CEdit is not yet created in OnInitDialog or OnShowWindow.
How can I limit the string length? I also need to limit the maximum number of digits of an integer item. I've also tried to set a mask for a double item but that doesn't work. "A" and "0" does not allow the decimal separator ("," or ".") to be entered and if I set the mask to "&" and then enter "1,5" I get an (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. Also I don't want the prompt character ("_") to be displayed and the mask to be drawn in a gray shade. I also would like the mask to be displayed always and not only when the item is selected. Is: Should be: |
|
Codejock support
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
To limit text call
pItem->GetValueMetrics()->m_nMaxLength = xxx;
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |