Print Page | Close Window

CMarkupListCtrl and check box

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=15742
Printed Date: 08 May 2024 at 9:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CMarkupListCtrl and check box
Posted By: zaksoft
Subject: CMarkupListCtrl and check box
Date 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.


-------------
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com



Replies:
Posted By: markr
Date Posted: 29 November 2009 at 11:42am
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).


Posted By: zaksoft
Date Posted: 29 November 2009 at 11:50am
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.


-------------
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com


Posted By: zaksoft
Date Posted: 01 December 2009 at 10:50am
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.


-------------
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com


Posted By: Oleg
Date Posted: 02 December 2009 at 4:34am
Hi,
 
You can call FindName to find CheckBox from Markup root and then call its GetChecked() method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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