Print Page | Close Window

command bar does not minimize

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=16526
Printed Date: 02 December 2024 at 2:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: command bar does not minimize
Posted By: wxperson
Subject: command bar does not minimize
Date Posted: 26 March 2010 at 10:23am
Hi,

I have an issue that I cannot figure out.

When "I detach' my tool/command bar from the application form.. it does not minimize with the application..

i.e. it remains visible when my application is minimized.

The sample code examples do not exhibit this behavior but I don't see an implicit command to make sure the command bars minimize.

Any help is appreciated. 

George

PS.  This is a VB6 project.




Replies:
Posted By: Aaron
Date Posted: 26 March 2010 at 12:21pm
Hi,
 
I would have guessed this would be taken care off by setting Commandbars.Options.SyncFloatingToolbars = True but it isn't working  Floating toolbar only hides when application looses focus and I don't see any other options...
 
If you are really desperate, just add following code in Form_Resize event:
 
Private Sub Form_Resize()
    If Me.WindowState = vbMinimized Then CommandBars(1).Visible = False
End Sub
 
Where (1) is the index of your commandbar, if you have more just loop through CommandBars
 
 


-------------
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....


Posted By: wxperson
Date Posted: 26 March 2010 at 1:57pm
Thanks for the reply.

I am just wondering why the sample VB6 project's toolbars disappear when I minimize their form.  They do not have the code that you refer to.

Thanks,

George


Posted By: Aaron
Date Posted: 26 March 2010 at 3:10pm
Hi,
 
Yes, you are right. I tried with SDISample and the toolbars disappear when form is minimized. I have to find out what to do to get this working
 
 
 
 


-------------
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....


Posted By: Aaron
Date Posted: 26 March 2010 at 3:36pm
Hi,
 
Seems that we don't have to do anything. I re-opened my test project and it works just without any settings. I could have sworn that it didn't work before I tried with SDISample
 
The only thing I noticed (I was testing with a CommandBars control inside a picturebox) it doesn't work when minimizing the application. Do you have CommandBars inside 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....



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