Insanely Basic Toolbar Questions

Well, let me start by saying that old programmers never die, they just get senile & obsolete! I've been using Opus since at least version 9, and I've tweaked it a bit and written some simple button code, and I've installed that great help provided by "Happy Face" so between that & the "Restore" complete Opus environment I've managed not to complete wipe myself out. Which makes this all the more embarrassing...

Here are the toolbars I always keep turned on: Applications, drivers, lister menu, menu_playful.1.1, operations_playful_1.5, pathbar, and toolbar. One of my main frustrations is that after all the tweaking (well, actually before any tweaking YEARS ago) I still don't know which toolbar is which. I tried turning them off, one at a time, but with so much clutter my brain has trouble registering which one went away and which one came back and worse yet - when I turn them back on, they appear in a different order which makes me feel totally lost (restore to the rescue). I'd like to streamline my toolbars a bit, and eliminate some of the redundancy I created before I figured out some of the icons & duplicated them to other toolbars.

So - any idea which toolbar is which? I've attached a Printscreen of my Opus screen.

Where I'm trying to get to is to clean up some room to ideally create a 3-button code, something I'm clueless about how to go about. So, if you're kind enough to help me out with this I promise to repay you with a bunch of more questions. I still have enough brain cells left to totally adore Opus and it's ability to do whatever I need it to do (if only I could figure out how).

Thanks so much.

To find out which toolbar is which, go to Settings -> Customize Toolbars... and then, on the Toolbars tab, double-click one of the toolbars. The toolbar you double-clicked will flash in the lister.

(Obviously, this only works for toolbars which are turned on in the lister, i.e. the ones with a tick next to them.)

OK, that was great & very clear. Am I correct to assume that although the toolbars are listed alphabetically, that they're listed from the top down in the order in which you turn them on? In other words, to get them back the same sequence (if they were all turned off) I'd have to turn each one on, individually?

Yes as you turn them on they slot in below the existing ones at the top of the Lister. You can of course drag them around and position them wherever you like.

I have edited many of my toolbars and added a button to close each one.

Following this discussion, and the fact that my memory means that I forget which toolbars are open, I have edited the button so that the "tip" shows the name of the toolbar it is set to close.

You can also add a generic button on every toolbar that runs:

toolbar local close name=*this

Clever.

But how does this change the tip?

It doesn't... it's just a generic way to add a "close this toolbar" button without needing to write it manually. You can copy it from any other toolbar you use such a button on and it'll just work without needing to be edited.

Since it's on the actual toolbar it's going to close - I don't understand why having a tip or any other indicator about what the toolbar name is is relevant or helpful - but to each their own. :smiley:

I thought a "close toolbar" button would be nice so I created a new button on a Toolbar, pasted the script but nothing happens? Wouldn't surprise me if I did something wrong.

If you have several toolbars in action out of a list of many, the 'tip' is a quick way of discovering the name of a toolbar. You don't even have to use the button to close it. Just get it to tell you which toolbar it is.

Unless there is another, and quicker, 'no clicks', way of finding out this information.

The trick, then, is to use the button you suggested, and then to edit it to change the tip, if you want that information, of course.

You could try to copy and paste this on to the toolbar when in "Customize" mode.

<?xml version="1.0"?> Close this toolbar Close custom drives toolbar #DOpus10XP:closetoolbar Toolbar local CLOSE name=*this

It might not be the icon you want. But you can change that.

@LeonardB : Maybe you are using "toolbar local close..." on the wrong kind of toolbar? It only works if the toolbar is local. I mean like if it was opened with "toolbar local" as well. Try taking out the word "local"

@michaelkenward, thank you for the script, it initially didn't work because it wasn't a local toolbar (I thought it was).
@stan, thank you for the suggestion, I modified @michaelkenward script by removing the local and it works!