CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex |
Post Reply |
Author | |
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
Posted: 28 May 2008 at 3:10pm |
Hi,
I need to setup a property in a XTPPropertyGrid so the user can 1. Input any length of text (with auto-vscroll if required) 2. Has a property height which is about 5 lines of text so he can see a bit more of the text he is editing. I can change the height of a property with SetHeight apparently, and SetMultiLinesCount is used to limit (???) the number of lines a user can enter? Can you please explain what these methods are supposed to do, and how to use them? The XPT online help only says "Call this member to set variable height of the item." and "Call this member to set total lines of multi line item" which is not really informative. |
|
MacW
Senior Member Joined: 26 June 2007 Status: Offline Points: 253 |
Post Options
Thanks(0)
|
I figured it out.
And cursed the Codejock XTP documentation. Again. Sorry, but you really need to spend some time on your documentation. If you use the SetMultiLinesCount method, you also need to override the GetEditStyle() method of the CXTPPropertyGridItem and add the ES_AUTOVSCROLL style. Unless this is done, the user cannot scroll and hence cannot enter more lines that visible inside the editor in the grid. This really belongs into the documentation. I'm sure the programmer of the control knows all that, but we don't. |
|
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 |