Max Length of Input |
Post Reply |
Author | |
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
Posted: 01 November 2006 at 11:10am |
Hello
I do not find a property MaxLength to limit the # of characters when editing a string value. Do I miss something?
Thanks for a hint
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
farr02
Groupie Joined: 10 May 2005 Status: Offline Points: 51 |
Post Options
Thanks(0)
|
Hello,
I had the same problem in the MFC version of property-grid, but I don't know if my solution is suitable for the ActiveX version, too. First I have created a new, CXTPPropertyGridItem-derived class and then I have overridden the OnSelect function as follows: void MyGridItem::OnSelect() { CXTPPropertyGridItem::OnSelect(); // call base class first if(GetInplaceEdit().GetSafeHwnd()) GetInplaceEdit().SetLimitText(20); // limit number of input chars to 20 } 'SetLimitText' is a member of MFC CEdit-class. Bye Holger |
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Hi farr02
Thanks a lot for your reply. I think this doesn't work for ActiveX. But Oleg told me, that MaxLength would be added in 10.4.
Thanks, Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
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 |