Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Locking the main menu position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Locking the main menu position

 Post Reply Post Reply
Author
Message
Alistair View Drop Down
Newbie
Newbie
Avatar

Joined: 14 May 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alistair Quote  Post ReplyReply Direct Link To This Post Topic: Locking the main menu position
    Posted: 20 May 2004 at 9:17am
I'd like to fix the main menu to the top of the window (above any toolbars) and remove it's gripper.

I can lock it at the top of the window so it can't be floated or docked to any other edge but I can't see how to get rid of the gripper bar and stop users from positioning toolbars above it.

Any ideas?

--- Al.


Edited by Alistair
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2004 at 10:46am

pMenuBar->EnableDocking(xtpFlagStretched);

pMenuBar->ModifyBarStyle(CBRS_GRIPPER, 0);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Joe Brown View Drop Down
Newbie
Newbie


Joined: 01 March 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe Brown Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2004 at 12:25pm
Was ModifyBarStyle added after Toolkit Pro v8.51? It's not anywhere in the source.
Back to Top
Alistair View Drop Down
Newbie
Newbie
Avatar

Joined: 14 May 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alistair Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 3:35am
Oleg mentioned ModifyBarStyle() which I've looked at in the help before and wondered what the available styles are: the help doesn't list them!

Anyway, it works (thanks) but users can still position my toolbar *above* the menu bar. Is it possible to force all toolbars to be *below* the menubar?

The quality of the help has been discussed elsewhere but a list of all the styles available to ModifyBarStyle would be a huge improvement.

--- Al.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2004 at 3:50am
You can only lock all other toolbars for that.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Alistair View Drop Down
Newbie
Newbie
Avatar

Joined: 14 May 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alistair Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2004 at 4:58am
Ok, thanks.

--- Al.
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.188 seconds.