Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Commandbars in MDI child form - Controls position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Commandbars in MDI child form - Controls position

 Post Reply Post Reply
Author
Message
Squale View Drop Down
Groupie
Groupie


Joined: 29 April 2009
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Squale Quote  Post ReplyReply Direct Link To This Post Topic: Commandbars in MDI child form - Controls position
    Posted: 07 July 2010 at 5:12am
Hi,

I have MDI Child whit command bar and "EnableFrameTheme". My form is correctly designed but at runtime, juste after "ribbon.EnableFrameTheme", the form is resized and all my control are badly placed.
Is there any simple solution?


Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0
Back to Top
sforces View Drop Down
Groupie
Groupie


Joined: 13 May 2009
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote sforces Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2010 at 5:05pm
You were able to get it to theme an MDI form?

I have a MDI form and I'm setting Ribbonbar.EnableFrameTheme and it's not turning on. I tried exact same code with a non MDI form it work works.


Product: Xtreme Suite Pro (ActiveX) version 13.4
Platform: Windows XP Mode (32Bit)
Language: Visual Basic 6.0 SP6
Back to Top
Squale View Drop Down
Groupie
Groupie


Joined: 29 April 2009
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Squale Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2010 at 11:02am
Hi,

I have just created a simple project that show my problem. It is linked with the MinimumVisibleWidth value. If anyone can explain me why form's controls are not properly placed in some case. (Click on new to have the needed form)

For sforces I  have also included a simple way to add ribbon on both a MDI and mdichild.


uploads/20100721_110111_BugRibbon.zip
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2010 at 1:28pm
Hi,
 
I don't know much about Ribbon but maybe has same problem with DockingPanes when having Commandbars (doesn't position right way when you don't set Commandbars. Maybe there's a setting for this kind of behaviour, don't know... better ask support.
 
If you are desperate: Add PictureBox to Form with the buttons inside and use ResizeClient event to size PictureBox.   
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
sforces View Drop Down
Groupie
Groupie


Joined: 13 May 2009
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote sforces Quote  Post ReplyReply Direct Link To This Post Posted: 22 July 2010 at 10:56am
Thank you! Your sample code was VERY helpful and helped me find what I was doing wrong.
Product: Xtreme Suite Pro (ActiveX) version 16.3.1

Platform: Windows XP SP3 (32bit)

Language: Visual Basic 6.0 SP6
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2010 at 3:36am
Originally posted by Squale Squale wrote:

Hi,

I have just created a simple project that show my problem. It is linked with the MinimumVisibleWidth value. If anyone can explain me why form's controls are not properly placed in some case. (Click on new to have the needed form)

For sforces I  have also included a simple way to add ribbon on both a MDI and mdichild.


uploads/20100721_110111_BugRibbon.zip


I'm having a similar problem on my project whereby i have the commandbar on the MDI Parent form and it doesn't display correctly. The solution I've used was to use a CommandBarFrame which will dock the bar in a container to keep everything separate.
Product: Xtreme SuitePro (ActiveX) version 18.5.0

Platform: Windows 7 Enterprise (64-bit)

Language: Visual Basic 6.0
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.