Print Page | Close Window

CommandBars v9.80 VB6 MDI bug

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=3283
Printed Date: 14 May 2024 at 10:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars v9.80 VB6 MDI bug
Posted By: yemo
Subject: CommandBars v9.80 VB6 MDI bug
Date Posted: 25 November 2005 at 8:02pm
CommandBars v9.80 VB6 MDI bug
CommandBars control placed on an MDI form causes any other control with an align property to disappear from the MDI form. Any chance of a fix?



Replies:
Posted By: vb1to6
Date Posted: 26 November 2005 at 11:58am

This may just be an undocumented feature and not a bug.

 

On way I have overcome the issue you bring up is to set the zorder of the other controls to zero (after loading the toolbar and status bar) and then the other controls appeared in their expected spot for me.

 

 FWIW, I noticed that if I was not careful in how I worked with the MDI status bar…and I set a MDI child window state property to maximized…I would need to compensate for the height of the status bar on the MDI form by placing a picture box control set to the height of the MDI status bar onto the child form or else third party controls like VS elastics did not fill the child form correctly. It was almost like the MDI status bar somehow made a maximized MDI child form scale height larger than the MDI main form scale height by exactly the height of the MDI form status bar. In this solution, the picture box on the MDI Child was off screen at all times; it is like the picture box somehow sits behind the MDI main form status bar.



Posted By: yemo
Date Posted: 26 November 2005 at 1:50pm
>> set the zorder of the other controls to zero

OK. Tried that, and it DOES display the other controls. Prob is though that they size all the way to the top of the screen and get obscured by the height of the commandbars control. If there was an API call to set the top of these other controls to the height of the commandbars control then there wouldnt be a prob I guess.

Should be an easy fix for the developers(?)


Posted By: Oleg
Date Posted: 27 November 2005 at 4:15am

Hello,

Try call MoveAlignedControl method for each aligned control in RepositionAlignedControls handler.

Private Sub CommandBars1_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long)
    CommandBars1.MoveAlignedControl tbToolBar, Left, Top, Right, Bottom
End Sub



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


Posted By: yemo
Date Posted: 27 November 2005 at 4:39am
Thanks Oleg. That fixed it!



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