Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CMarkupListCtrl and check box
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CMarkupListCtrl and check box

 Post Reply Post Reply
Author
Message
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post Topic: CMarkupListCtrl and check box
    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
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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).
Back to Top
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.