Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to add XtpControlCheckBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add XtpControlCheckBox

 Post Reply Post Reply
Author
Message
Atul View Drop Down
Newbie
Newbie


Joined: 02 May 2008
Location: India
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Atul Quote  Post ReplyReply Direct Link To This Post Topic: How to add XtpControlCheckBox
    Posted: 07 August 2009 at 2:55am
Hi,
    How to add CXtpControlCheckBox to CXtpToolBar ?,
 i did something like this
CXTPToolBar m_wndToolBar;
CXTPControl* idx_lnv = m_wndToolBar.GetControls()->Add(xtpControlCheckBox,ID_LNV_CHECK);

I get the check box but, I want it to be interactive, that is the user should be able to check it and uncheck it. How to achieve this ?
Regards,
Atul
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: 07 August 2009 at 4:10am
Hi,
 
Add COMMAND and UPDATE_COMMAND handlers.   Please start learning from our sample - its very basic thing.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cuisinart View Drop Down
Groupie
Groupie


Joined: 31 January 2012
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote cuisinart Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2012 at 12:19am
Sorry to bring this up again, but I've been wondering the same thing.  Yes, it's basic to the author of the software, but to a new user it's not obvious, especially because many of us are coming from using DDX methods and UpdateData() to get values of controls in a dialog, but it's not clear if this exists for these XTP controls, it doesn't appear to.

   Looking in the major example for these type of toolbar controls: CommandBarControls
None of the controls are instrumented.  The checkboxes do not check, the sliders go nowhere, etc.  This is where i'd expect the example on how to handle the messages. Is there a better example we should look at?
thank you!
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.203 seconds.