Print Page | Close Window

Checking properties of commandbar buttons

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=3783
Printed Date: 21 June 2025 at 12:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Checking properties of commandbar buttons
Posted By: tgagle
Subject: Checking properties of commandbar buttons
Date Posted: 15 March 2006 at 5:15pm

I have created a commandbar that includes several popup menu items(xtpControlPopup) each containing several buttons(xtpControlButton).

I would like to be able to access the properties of the buttons.

Example:  I want to know if a button (by ID) is currently checked (.checked).

Is this possible?




Replies:
Posted By: Oleg
Date Posted: 15 March 2006 at 6:49pm

Hello,

of course

 

see in Help CXTPControl, CXTPControlPopup::GetCommandBar, CXTPCommandBar::GetControls

 

pControl->GetCommandBar()->GetControl(4)->GetChecke d()

 

etc



-------------
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