![]() |
dont show context menu for toolbars |
Post Reply
|
| Author | |
Joe Brown
Newbie
Joined: 01 March 2004 Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: dont show context menu for toolbarsPosted: 21 July 2004 at 2:54pm |
|
I'm trying to figure out how to make the context menu for toolbars not appear. I right click in the toolbar area of my app, a context menu appears with checkboxes next to the toolbars that are visible, and I can turn them on and off.
|
|
![]() |
|
Slotter
Newbie
Joined: 23 July 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 July 2004 at 8:50pm |
|
I couldn't figure out how to do it via existing code, so I modified the library as such:
In XTPCommandBars.h, class XTP_COMMANDBARS_OPTIONS,XTP_COMMANDBARS_OPTIONS() {} block, add bToolBarContext = TRUE; In XTPCommandBars.cpp, CXTPCommandBars::ContextMenu function, add if (!GetCommandBarsOptions()->bToolBarContext) return; before CXTPPopupBar* pPopup = GetToolbarsPopup(); Then in your program, just do
|
|
![]() |
|
gteet
Newbie
Joined: 01 April 2004 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 July 2004 at 5:03pm |
|
check out CXTPToolBar::SetCloseable, available in XTP 9.00
|
|
![]() |
|
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 |