Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - CommandBars v9.80 VB6 MDI bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBars v9.80 VB6 MDI bug

 Post Reply Post Reply
Author
Message
yemo View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote yemo Quote  Post ReplyReply Direct Link To This Post Topic: CommandBars v9.80 VB6 MDI bug
    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?
Back to Top
vb1to6 View Drop Down
Newbie
Newbie


Joined: 23 November 2005
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote vb1to6 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
yemo View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote yemo Quote  Post ReplyReply Direct Link To This Post 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(?)
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: 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
Back to Top
yemo View Drop Down
Newbie
Newbie


Joined: 22 November 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote yemo Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2005 at 4:39am
Thanks Oleg. That fixed it!
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.172 seconds.