Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPToolBar

 Post Reply Post Reply
Author
Message
securigy View Drop Down
Groupie
Groupie


Joined: 23 November 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote securigy Quote  Post ReplyReply Direct Link To This Post Topic: XTPToolBar
    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...
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.