Print Page | Close Window

CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10815
Printed Date: 22 November 2024 at 6:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex
Posted By: MacW
Subject: CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex
Date 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.




Replies:
Posted By: MacW
Date Posted: 28 May 2008 at 3:30pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net