Single inactive button |
Post Reply |
Author | |
Somnambulist
Newbie Joined: 28 May 2010 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 28 May 2010 at 12:59pm |
Hi,
So in Mainfrm.cpp of my code I have a little snippet that looks like this: CXTPRibbonTab* pTabTables = pRibbonBar->AddTab(ID_TAB_TABLES); CXTPRibbonGroup* pGroupTables = pTabTables->AddGroup(ID_GROUP_TABLES); pGroupTables->Add(xtpControlButton, ID_FILE_DIRECTIONS)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_ROUTES)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_SERVICES)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_JURISDICTIONS)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_DIVISIONS)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_NODESANDSTOPS)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_SIGNCODES)->SetWidth(90); pGroupTables->Add(xtpControlButton, ID_FILE_COMMENTS)->SetWidth(90); However, when the project is run, all the buttons are available to be pushed except for ID_FILE_JURISDICTIONS because it is greyed out. They all have the relevant ON_COMMAND notifications and defines, but I'm unsure as to why that is the only greyed out button. Any suggestions? |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
1) Look for duplicate IDs.
2) Look for ON_UPDATE_COMMAND_UI_RANGE where ID_FILE_JURISDICTIONS is caught.
3) Look for ON_UPDATE_COMMAND_UI_RANGE where ID_FILE_JURISDICTIONS may be caught.
4) Put a breakpoint inside OnCmdMsg() and wait for ID_FILE_JURISDICTIONS and see what happens with it.
|
|
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 |