Print Page | Close Window

Drawing Bug with Floating MenuBar

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=394
Printed Date: 15 May 2024 at 3:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drawing Bug with Floating MenuBar
Posted By: Boyd
Subject: Drawing Bug with Floating MenuBar
Date Posted: 29 January 2004 at 11:53am

When the ActiveMenuBar is floating, it normally draws with a "title" area at the top of the floating toolbar indicating "Menu Bar".  When the style of the ActiveMenuBar is set to XTP_CBRS_GRIPPER, the "title" area no longer draws.

Attached screen print shows the bug; http://forum.codejock.com/uploads/Boyd/ABF_menu_bug.zip - ABF_menu_bug.zip

Applies to ActiveX 8.61

(Sorry, Meant to post in Bugs forum)




Replies:
Posted By: Oleg
Date Posted: 30 January 2004 at 12:21am

Then you remove this flag, assumed that you call

CommandBars.ActiveMenuBar.EnableDocking xtpFlagStretched

to disable menubar floating.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Boyd
Date Posted: 30 January 2004 at 8:49am

I just thought this is something you might want to correct.  I guess this is based on the assumption that you would not hide grippers on toolbars that can be undocked, but that may not always be the case depending on the designer's preference.  Just a suggestion.

Thanks for the follow-up!



Posted By: Boyd
Date Posted: 30 January 2004 at 7:54pm

Oleg,

Your suggestion exposes another bug.  If I use your suggested code along with the new feature in 8.61 to display the MDI Sys Menu, the MDI Menu icon will no longer appear in the toolbar.  The following code is being used:

    With CommandBars
        .LoadDesignerBars
        .ShowTabWorkspace True
        .ActiveMenuBar.SetFlags xtpFlagAddMDISysPopup, 0
        .ActiveMenuBar.ModifyStyle XTP_CBRS_GRIPPER, 0
        .ActiveMenuBar.EnableDocking xtpFlagStretched
    End With

I would expect this code to display the main menu with no gripper, non-dockable, and with the MDI Sys Popup menu.  I get everything except the MDI Sys Popup menu.  Any suggestions on how to resolve these conflicts?

Thanks in advance!




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