Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - MDI Parent and picture boxes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI Parent and picture boxes

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


Joined: 15 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote amadison Quote  Post ReplyReply Direct Link To This Post Topic: MDI Parent and picture boxes
    Posted: 16 February 2010 at 12:13pm
I have an MDI application that where the commandbars control is on a picturebox that is bound to the top of the form. Removing this picture box isn't an option. I need the activemenubar of the control to show the mdi child forms icon when the mdi child form is maximized. Currently, this icon gets put above the picture box and the menu is displayed in the picture box below the menu. Thanks.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 2:38pm
got a picture of what yo are trying to achieve?
Back to Top
amadison View Drop Down
Newbie
Newbie


Joined: 15 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote amadison Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2010 at 9:08am
 
 
This is the look I want when an mdi child is maximized (notice the location of the child forms icon), but if the commandbars control is located on a picture box, when an mdi child is maximized I get this look:
 
 
Is there any way to keep the commandbars on the picture box (as removing it isn't really an option for me) yet not have this visual flaw?
Thanks.
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2010 at 12:32pm
Hello amadison.

The reason you are having trouble achieving the picture on top is because your creating your commandbars on a child form (The tab workspace is also defined on the MDI Parent as well).

In the commandbars sample, you'll see many functions etc. on how to recreate that appearance. In other words, you should be able to keep the picturebox on the child form, but your commandbars must be created on the MDI parent form.

Hope that helps friend! ;]
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
Back to Top
amadison View Drop Down
Newbie
Newbie


Joined: 15 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote amadison Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2010 at 2:53pm
The picture box isn't on the child form, it is on the mdi parent form. So the commandbars control is on the mdiparent form also, just contained within a picture box that is top aligned.
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.215 seconds.