Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGrid, SetHeight, SetMultilinesCount Ex
    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.

Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.