Print Page | Close Window

Preventing a menu from moving

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=224
Printed Date: 04 May 2024 at 7:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Preventing a menu from moving
Posted By: random0000
Subject: Preventing a menu from moving
Date Posted: 12 November 2003 at 12:58am

Sounds like it should be simple but how do I prevent a menu from being movable?  I still want toolbars to be but not the main menu.  I thought maybe the IsBuiltIn=true would work but it seems to be read only (although the docs say you can Get/Set the value).

Thanks!




Replies:
Posted By: random0000
Date Posted: 02 December 2003 at 12:13pm
Any ideas?!?


Posted By: stuebing
Date Posted: 03 December 2003 at 7:53am
Hi,

as an aside: is it possible to prevent any toolbar/menubar from moving? Eventually by hooking some message (would be my last resort...)

Andreas


Posted By: stuebing
Date Posted: 09 December 2003 at 9:37am
Hi,

for fixing toolbars now I have a working solution. Derive an own class from CXTPToolBar and catch ON_WM_LBUTTONDOWN and ON_WM_LBUTTONDBLCLK. Use this class as third parameter to CXTPCommandBars::Add to tell XTP to use your own class.

But this does not work for the menu bar ;-(

Any ideas on how to fix and unfix the menu bar?

Andreas



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net