A nifty trick with sc toolbar

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

A nifty trick with sc toolbar

Post 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");
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66353
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A nifty trick with sc toolbar

Post by admin »

Wow, are you sure it works? Well, I guess so, otherwise you would not have recommended it, right? :)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: A nifty trick with sc toolbar

Post 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:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Stef123

Re: A nifty trick with sc toolbar

Post 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:

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: A nifty trick with sc toolbar

Post 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:

Post Reply