Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolbar button selection menu is disabled
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar button selection menu is disabled

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


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar button selection menu is disabled
    Posted: 28 October 2004 at 7:22am

Hi,

I added a toolbar at run time like this:

...
ON_XTP_EXECUTE_RANGE(ID_TOOLBAR_B1,ID_TOOLBAR_B6,OnButtons)
...

CXTPToolBar* pBar1 = (CXTPToolBar*)pCommandBars->Add(_T("test"), xtpBarTop);
 if(pBar1)
 {
  pBar1->SetIconSize(CSize(24,24));
  pBar1->SetButtons(toolbar1_buttons,6);
 }
...

I have two questions:

1. The toolbar buttons are disabled by default, until I add a  ON_COMMAND_RANGE(ID_TOOLBAR_B1,ID_TOOLBAR_B6,OnFavorit e) . So I want to know what's the difference between the command in XTP_EXECUTE handler and COMMAND_RANGE handler.

2. After I added the ON_COMMAND_RANGE, the toolbar buttons are enable, but the toolbar's customize menu (used to add/remove a button) is still disabled, I can not add/remove any buttons through that menu.

I am using XT 8.6.



Edited by jeffcmj
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.063 seconds.