Print Page | Close Window

How to manually uncheck toolbar buttons

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=1273
Printed Date: 06 November 2025 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to manually uncheck toolbar buttons
Posted By: cpede
Subject: How to manually uncheck toolbar buttons
Date Posted: 12 October 2004 at 3:01pm

How do I check toolbar buttons. I have 3 buttons that I want to make to work like radio buttons. When one is checked the otherons are unchecked etc.

I cannot use the CmdUI methods. But I found that it should be possible calling a xtpFlagManualUpdate flag.

The code below is my best try when the last button is pressed, I expect the others to be unchecked, but they dosen't. One by one alle the buttons are checked, non of them gets unchecked.

What am I doing wrong?

pControl = ((CXTPControlButton*)m_ToolBar.GetControls()->FindControl (DX_COM1));
pControl->SetFlags(xtpFlagManualUpdate);
pControl->SetChecked(FALSE);

pControl = ((CXTPControlButton*)m_ToolBar.GetControls()->FindControl (DX_COM2));
pControl->SetFlags(xtpFlagManualUpdate);
pControl->SetChecked(FALSE);

pControl = ((CXTPControlButton*)m_ToolBar.GetControls()->FindControl (DX_COM3));
pControl->SetFlags(xtpFlagManualUpdate);
pControl->SetChecked(TRUE);

cpede




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