Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Disabling Single Switch & Setting Switch Width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabling Single Switch & Setting Switch Width

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: Disabling Single Switch & Setting Switch Width
    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

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: 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....
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2008 at 9:25am
Hi,
Our RibbonSample shows it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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