![]() |
XTPToolBar |
Post Reply ![]() |
Author | |
securigy ![]() Groupie ![]() Joined: 23 November 2007 Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() 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: 1198 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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 |