Print Page | Close Window

Disabling Single Switch & Setting Switch Width

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=10546
Printed Date: 07 October 2024 at 12:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabling Single Switch & Setting Switch Width
Posted By: jpbro
Subject: Disabling Single Switch & Setting Switch Width
Date Posted: 07 May 2008 at 6:39pm
Hi,

    The status bar switch pane is proving very useful for my application, so thank you! I have a couple of questions (requests if these options aren't available):

1) Is there a way to disable an individual switch instead of the whole pane? In my app, sometimes a switch will be applicable, and sometimes not. I could just remove the switch when it's not applicable, but I think it would be better to disable it.

2) Is there any way to increase the width of the switches? I would like to be able to use a 16x16 icon but it is too big for the current background image for the switch buttons. Setting an adequate height (via the StatusBar.MinHeight property) is easy, but changing the width of the switch buttons eludes me.

Thanks a lot!


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Aaron
Date Posted: 08 May 2008 at 1:46am
Hi,
 
I want to add something to your list of requests.
 
*    It would be nice when xtpThemeRibbon is applied that the switch background would be the same on both sides.
*    When a switch is clicked you can not check the switch. I believe this feature has to be implemented to have a "switchbox" that will look like for example MS Word.   
 
Thanks in advance
 


-------------
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: Oleg
Date Posted: 08 May 2008 at 3:14am
Hi,
Thanks, we will check what can be done for future... Aaron, btw switch can be checked/or not - its part of your code.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 08 May 2008 at 6:35am
Originally posted by oleg oleg wrote:

Hi,
Aaron, btw switch can be checked/or not - its part of your code.
 
Oleg,
 
I don't see where I can check the switch??? Please provide a WORKING sample.


-------------
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: jpbro
Date Posted: 08 May 2008 at 9:24am
Hey Aaron,

Instead of setting a Checked property for an individual switch item, you set the Checked property to the ID of the item that you want checked for the StatusBarSwitchPane object. Here's an example:


   Dim objSwitchPane As XtremeCommandBars.StatusBarSwitchPane

      ' Create View Switches
      Set objSwitchPane = .StatusBar.AddSwitchPane(PANE_View)
      With objSwitchPane
         .BeginGroup = True
         .AddSwitch SWITCH_ViewReport, "Report View"
         .AddSwitch SWITCH_ViewForm, "Form View"

         ' Set the switch that is selected/checked       
         .Checked = SWITCH_ViewReport
      End With





-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 08 May 2008 at 9:25am
Hi,
Our RibbonSample shows it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 09 May 2008 at 2:56am
Hi,
 
Thanks Oleg
 
I was totally going in the wrong direction  Now I'm clear with the property, this is a nice option to have. 


-------------
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: jpbro
Date Posted: 13 June 2008 at 1:39pm
Just wondering if there was any word on whether the following might be implemented for the next release:

Quote
1) Is there a way to disable an individual switch instead of the whole pane? In my app, sometimes a switch will be applicable, and sometimes not. I could just remove the switch when it's not applicable, but I think it would be better to disable it.

2) Is there any way to increase the width of the switches? I would like to be able to use a 16x16 icon but it is too big for the current background image for the switch buttons. Setting an adequate height (via the StatusBar.MinHeight property) is easy, but changing the width of the switch buttons eludes me.


In particular, #1 would be very useful for my application.

Thanks.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: jpbro
Date Posted: 27 October 2008 at 4:09pm
Any chance of:

1) Disable individual switches
2) Set the switch width (for using bigger icons)?

 for 12.1? 

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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