PGrid values have Markup support? |
Post Reply |
Author | |
davbrat
Groupie Joined: 30 September 2009 Location: California Status: Offline Points: 59 |
Post Options
Thanks(0)
Posted: 13 June 2012 at 6:22pm |
The Release notes stated that "Markup support for PropertyGrid value" was a new feature in 15.3.1.
Setting the VALUE with (markup) text does not work, what am I missing? (The same markup works fine in the CAPTION or DESCRIPTION) |
|
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10 Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10 |
|
davbrat
Groupie Joined: 30 September 2009 Location: California Status: Offline Points: 59 |
Post Options
Thanks(0)
|
Anyone?
|
|
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10 Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You need to use the MarkupTemplate property. The Value property remains unaffected as you might have some BOOL and it needs to be true/false.
Set MarkupTemplate = "" to show the regular value.
wndPropertyGrid.Categories.Item(1).Childs.Item(1).MarkupTemplate = "<TextBlock VerticalAlignment='Center' TextWrapping='Wrap'>It's <Bold>%value%!</Bold> <Underline>Markup</Underline> <Span Foreground='red'>works</Span>!</TextBlock>" wndPropertyGrid.Categories.Item(1).Childs.Item(1).Caption = "<TextBlock VerticalAlignment='Center'><Span Foreground='blue'>SaveOnClose</Span></TextBlock>" |
|
davbrat
Groupie Joined: 30 September 2009 Location: California Status: Offline Points: 59 |
Post Options
Thanks(0)
|
Okay, I've got it... well, sorta working.
We are trying to use the PGrid as a catalog. How do I get the VALUE not to blank out when the GridItem is selected? Before selecting the GridItem... After selecting the GridItem... Notice too that the CAPTION uses a XAML <ScrollViewer> and it displays correctly in the caption but fails when displayed in the HELP section. If the DESCRIPTION is set to the same XAML code it seems to work as expected (The <ScrollViewer> works!). |
|
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10 Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10 |
|
davbrat
Groupie Joined: 30 September 2009 Location: California Status: Offline Points: 59 |
Post Options
Thanks(0)
|
Is there anybody out there?
|
|
Product: Xtreme SuitePro (ActiveX) version 18.4.0 Platform: Windows XP SP2+ & Windows 7 (32bit & 64Bit)
Windows 8/8.1/10 Language: Clarion 5.0/5.5/6.3/7.3/8/9/9.1/10 |
|
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 |