Print Page | Close Window

How to add XtpControlCheckBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14921
Printed Date: 24 November 2024 at 9:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add XtpControlCheckBox
Posted By: Atul
Subject: How to add XtpControlCheckBox
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: cuisinart
Date 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!



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