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");
A nifty trick with sc toolbar
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
A nifty trick with sc toolbar
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ 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
Wow, are you sure it works? Well, I guess so, otherwise you would not have recommended it, right? 
FAQ | XY News RSS | XY X
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: A nifty trick with sc toolbar
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 
Nah, I think it's rather more like a treat you kept hidden! 
There are a few hiccups with icons, toggled states etc, which get refreshed upon cursor hover though...
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
Stef123
Re: A nifty trick with sc toolbar
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
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
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: A nifty trick with sc toolbar
Arthur C. Clarke is undoubtedly smiling down.Stef123 wrote:As the saying goes ... any sufficiently advanced bug is indistinguishable from a feature
XYplorer Beta Club