Print Page | Close Window

XTPToolBar

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=14677
Printed Date: 28 September 2024 at 7:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPToolBar
Posted By: securigy
Subject: XTPToolBar
Date Posted: 02 July 2009 at 5:03pm
I dont see that XTPToolBar has EnableButton method, so how do I enable/disable toolbar button? For some reason the toolbar button on the toolbar in the child frame get initially displayed disabled...



Replies:
Posted By: mgampi
Date Posted: 03 July 2009 at 2:55am
Hi;

You have to provide ON_COMMAND, and especially ON_UPDATE_COMMAND_UI handlers for each of your buttons.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: znakeeye
Date Posted: 03 July 2009 at 5:21am

If you're not using update-handlers, you can enable your buttons like this:

CXTPControl *pButton = pToolBar->GetControls()->GetAt(i);
pButton->SetFlags(xtpFlagManualUpdate);


-------------
PokerMemento - http://www.pokermemento.com/



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