Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - command bar does not minimize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

command bar does not minimize

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


Joined: 14 January 2010
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote wxperson Quote  Post ReplyReply Direct Link To This Post Topic: command bar does not minimize
    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.

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: 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....
Back to Top
wxperson View Drop Down
Groupie
Groupie


Joined: 14 January 2010
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote wxperson Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
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: 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....
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.156 seconds.