Print Page | Close Window

Multiline in PropertyGrid Caption

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=23035
Printed Date: 23 November 2024 at 7:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiline in PropertyGrid Caption
Posted By: link
Subject: Multiline in PropertyGrid Caption
Date Posted: 27 May 2016 at 4:54pm
Hello, does the PropertyGrid support multiline captions? Values no problem, but I don't see an easy way of getting the multiline in the caption.

Behaviour is if you format a string with a '\n' then it parses the string into a caption and description.

Thanks in advance.

Windows 7
ToolkitPro 2012 15.2.1.0403 (MFC)



Replies:
Posted By: olebed
Date Posted: 28 May 2016 at 9:47am
Hello Link,

You can use MarkUp  (XAML)  in caption:
	m_wndPropertyGrid.EnableMarkup(TRUE);
pItemMultiLine->SetCaption(_T("<TextBlock VerticalAlignment='Center'>MultiLine<LineBreak/>caption</TextBlock>"));
pItemMultiLine->SetDescription(_T("Some long description"));
Regards,
 Oleksandr Lebed


Posted By: link
Date Posted: 30 May 2016 at 9:14am
Tremendous! thanks.


Posted By: dambowri
Date Posted: 31 May 2016 at 11:54am
(Excuse me) In my CXTPPropertyGrid, I have drop down boxes (CXTPPropertyGridItem's with constraints). When I select the combobox, I want to customer combobox of CXTPPropertyGridItem's with constraints, display tree control in drop down box (tree inside combobox). Possible ?. Can anyone point me to how to do this ?..thank so much

-------------
stay hungry stay foolish


Posted By: dambowri
Date Posted: 30 June 2016 at 10:37pm
Excuse me Smile
I have problem with OnAfterEdit of CXTPPropertyGridItem. Example when I edited name's field A1 after I select A2 but properties view not update description of A2 ?
Can anyone point me to how to do this ?..thank so much

-------------
stay hungry stay foolish


Posted By: agontarenko
Date Posted: 01 July 2016 at 4:12am
Originally posted by dambowri dambowri wrote:

(Excuse me) In my CXTPPropertyGrid, I have drop down boxes (CXTPPropertyGridItem's with constraints). When I select the combobox, I want to customer combobox of CXTPPropertyGridItem's with constraints, display tree control in drop down box (tree inside combobox). Possible ?. Can anyone point me to how to do this ?..thank so much


Hello dambowri,

Codejock library does not have such control. But you can implement a custom control.


Regards,
Artem Gontarenko



Posted By: agontarenko
Date Posted: 01 July 2016 at 4:31am
Originally posted by dambowri dambowri wrote:

Excuse me Smile
I have problem with OnAfterEdit of CXTPPropertyGridItem. Example when I edited name's field A1 after I select A2 but properties view not update description of A2 ?
Can anyone point me to how to do this ?..thank so much


Hello dambowri,

Please, provide more detail steps for reproduce this problem.
Or post video with problem.

Regards,
Artem Gontarenko



Posted By: dambowri
Date Posted: 10 July 2016 at 11:22pm
Value string item

Hi Artem Gontarenko
The first I set value string item of Road Cycling is "test-1", after I select Indoor Cycling with string item default null...but value string item of Indoor Cycling is "test-1" .
Not update value string item only the first select.
Can anyone point me how to do this ?
Thank u !

-------------
stay hungry stay foolish


Posted By: agontarenko
Date Posted: 13 July 2016 at 6:35am
Hello dambowri,

I'm glad to inform you that the issue has been fixed. The fix will be available in the next beta or final release.

Regards,
Artem Gontarenko



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