![]() |
CMarkupListCtrl and check box |
Post Reply ![]() |
Author | |
zaksoft ![]() Senior Member ![]() ![]() Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
![]() ![]() ![]() ![]() ![]() Posted: 29 November 2009 at 4:50am |
I need to let user select a couple of options from a list, and I need to show many information, so I've found MarkupSample that seems perfect.
I can modify XAML to include a check box on the left, but how I can get user selection ?
TIA.
|
|
VS2022 - MFC MBCS Statically linked
XTP 23.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com |
|
![]() |
|
markr ![]() Senior Member ![]() Joined: 01 August 2004 Status: Offline Points: 443 |
![]() ![]() ![]() ![]() ![]() |
I did this by deriving the markup list ctrl from the standard XTP checkbox list ctrl.
Then it's pretty much business as usual (use the XTP checkbox list ctrl members to get access to checkbox state). |
|
![]() |
|
zaksoft ![]() Senior Member ![]() ![]() Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
![]() ![]() ![]() ![]() ![]() |
It was my first test.. I've replaced CXTListBox with CXTCheckListBox in CMarkupList and set HAS_STRING in the sample, but only checkboxes without markup is shown
Also using checkboxes into XAML items is more elegant, if you have different height is better if checkbox is in upper left in front of first line of text instead of vertical centered.
|
|
VS2022 - MFC MBCS Statically linked
XTP 23.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com |
|
![]() |
|
zaksoft ![]() Senior Member ![]() ![]() Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
![]() ![]() ![]() ![]() ![]() |
No one can help me ? I simply need a way to read the state of a checkbox in a XAML item... There is a sample in markup pad to draw the checkbox, but not the way to use the information given by users..
TIA.
|
|
VS2022 - MFC MBCS Statically linked
XTP 23.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can call FindName to find CheckBox from Markup root and then call its GetChecked() method.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |