![]() |
How can let menu bar can't be dragged and moved ? |
Post Reply ![]() |
Author | |
siwen ![]() Newbie ![]() Joined: 23 January 2009 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 17 April 2009 at 3:49am |
How can let menu bar can't be dragged and moved ? thks
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
pToolBar->EnableDocking( 0);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ReyesRP ![]() Groupie ![]() Joined: 30 January 2008 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
It still will not be totally immobile. If you move a toolbar above it, the menu will move down. Any way to make it always topmost?
|
|
![]() |
|
McMustard ![]() Newbie ![]() Joined: 17 September 2009 Location: United States Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
I had this question as well. I found the solution to be (because I did not have a CXTPToolBar pointer):
pCommandBar->SetFlags(0, xtpFlagFloating|xtpFlagAlignTop|xtpFlagAlignLeft| xtpFlagAlignRight|xtpFlagAlignBottom); pCommandBar->SetShowGripper(FALSE); (where pCommandBar is a CXTPCommandBar*) The SetFlags call disables floating and limits docking to the top section. Specifying removal of xtpFlagAlignTop prevents the user from dragging the menu bar up and down within the top docking area. The SetShowGripper call removes the gripper, visually indicating to the user that the bar is fixed. Also, it seems that the absence of the gripper gives the menu bar its own row. Moving a toolbar around can displace the menu, however. There doesn't seem to be a way to stop that. But it does seem to mimic Visual Studio 2008's behavior, which seems like a reasonable standard, for my use anyway. (This is a relatively old thread, but it's the only relevant one I found in searching, maybe someone will find it useful) |
|
![]() |
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 |