XTPToolBar |
Post Reply |
Author | |
securigy
Groupie Joined: 23 November 2007 Status: Offline Points: 41 |
Post Options
Thanks(0)
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...
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
You have to provide ON_COMMAND, and especially ON_UPDATE_COMMAND_UI handlers for each of your buttons. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |