Page 1 of 1

A nifty trick with sc toolbar

Posted: 22 Jun 2014 10:44
by bdeshi
I just discovered we can clone buttons on the toolbar with sc toolbar().
Say ctb11's important to my work, so I placed the same button at both ends of the toolbar.
::toolbar("ctb11, ...other buttons ... , ctb11");

Re: A nifty trick with sc toolbar

Posted: 22 Jun 2014 14:25
by admin
Wow, are you sure it works? Well, I guess so, otherwise you would not have recommended it, right? :)

Re: A nifty trick with sc toolbar

Posted: 22 Jun 2014 14:36
by bdeshi
Well, yeah, works rather well! The clones even survive a restart.
There are a few hiccups with icons, toggled states etc, which get refreshed upon cursor hover though...

if this was a bug, great one, need more helpful bugs like this :mrgreen: Nah, I think it's rather more like a treat you kept hidden! :wink:

Re: A nifty trick with sc toolbar

Posted: 24 Jun 2014 08:57
by Stef123
Sammay - you're a life saver
There are not enough CTB to cover hi-res wide screen monitor. Didn't want to ask for more (figuring I already ask for enough weird stuff) - so my solution so far was to use separators tweaked to a really high padding L/R.

But now I am able to re-use my spacer-buttons (no function - other than spreading out my button-groups, to fill the right half of the screen, too, emulating several TBs that can be dragged apart)

If this is a bug - don't remove it. As the saying goes ... any sufficiently advanced bug is indistinguishable from a feature :biggrin:

Re: A nifty trick with sc toolbar

Posted: 25 Jun 2014 16:40
by aurumdigitus
Stef123 wrote:As the saying goes ... any sufficiently advanced bug is indistinguishable from a feature
Arthur C. Clarke is undoubtedly smiling down. :biggrin: