In the File Display toolbar there are Begin Hide followed by Favorites and then End Hide. What does this do?
@hideblock in Command modifier reference [Directory Opus Manual] may be helpful...
I saw that but this isn't exactly the same. And since it was somewhat different I didn't want to confuse myself with something else.
This is from DO's Defaul toolbars display. It doesn't exist on my lister because I didn't even know there was anything that I wasn't seeing until I saw this. Let me rephrase that. This Being/End didn't show up on my actual File Display toolbar even when I was editng it and moving some of the elements off to free up width on the toolbar. That may have been something that defaulted from the previous version. My Favorite button is on my Drives toolbar now. Are you tellilng me that there's code behind the Begin Hide and End Hide that's deciding if the Favorites icon should be displayed?
Edit the toolbar buttons and you'll see they use the things in Chuck's reply above.
It would be nice to get an answer rather than figure it out.
@hideif:Toolbar NAME="Favorites Bar" TOGGLE
It doesn't make sense to me because you're hiding the Favorites only if it's on the Favorites Bar but ithe ode is on the File Display toolbar and it's a toggle??? Makes even less sense.
I figured it would become self-evident once you saw what it did.
From the detailed release notes, Default Toolbars section:
- When the Favorites Bar is on, the File Display toolbar's Favorites icon/menu is hidden. It will reappear automatically if the Favorites Bar is then turned off.
The aim is to avoid having two redundant Favorites menus while still allowing people to turn off the Favorites Bar if they don't want it.
So the if command is examing if the Favorites bar is active anywhere in the lister. I thought that commands on/in the toolbar would be specific to the toolbar it was on which is why it didn't make sense because that condition could never happen. Is the @ a scope changer?
In VB you have variables that have different scopes some you can access across a VB class while others are only good while you're in a specific module.
- The command
Toolbar TOGGLE
toggles a toolbar on or off. - A button with that as its first line will appear highlighted when the toolbar is on.
- The
@hideif
modifier hides the button it appears in if the statement following it produces a highlighted button. - The
@hideblock:begin
modifier causes all buttons following the one it appears in to also hide when that button is hidden. - The
@hideblock:end
modifier marks the last button that gets hidden when the first one is.