I tried to edit my button to show/hide systemfiles to show the current state with two icons. This is working fine with a button that toggles flatview. The following command works but the icon doesn't change. The icons are working when used with the flatview button. @icon:showsystem,HIDESYSTEMFILES=Off
@icon:/desktop\hidesystem.png,HIDESYSTEMFILES=On
Set HIDESYSTEMFILES=Toggle
Try this:
@icon:showsystem,!HIDESYSTEMFILES=Toggle
@icon:/desktop\hidesystem.png,HIDESYSTEMFILES=Toggle
Set HIDESYSTEMFILES=Toggle
Not all Set commands result in a change of button state, which is what the test looks at. Generally you should use Toggle as the condition to test for rather than On or Off. As a general rule, if you put the command you're testing (e.g. Set HIDESYSTEMFILES=On) in a toolbar button, and it doesn't visibly alter state when the condition is true, the test won't work.
Thanks, working fine with your code now but how can I choose an Icon from an Iconset which is not the upmost in the list containing icons with default names?
Use #setname:iconname.
I can't get the @icon directive to work with SORTORDER:
I've tried:
Set SORTORDER=cycle
@icon:flatviewmixednofolders,VIEW=files
@icon:flatviewgrouped,VIEW=folders
@icon:flatviewmixed,VIEW=mixed
Note sure what Jon meant by the pound sign "Use #setname:iconname" so I tried
Set SORTORDER=cycle,files,folder,mixed
@icon:#Directory Opus 10 XP:flatviewmixednofolders,VIEW=files
@icon:#Directory Opus 10 XP:flatviewgrouped,VIEW=folders
@icon:#Directory Opus 10 XP:flatviewmixed,VIEW=mixed
and
Set SORTORDER=cycle,files,folder,mixed
@icon:Directory Opus 10 XP:flatviewmixednofolders,VIEW=files
@icon:Directory Opus 10 XP:flatviewgrouped,VIEW=folders
@icon:Directory Opus 10 XP:flatviewmixed,VIEW=mixed
I also tried moving Directory Opus 10 XP to the top of the icon list in preferences.
In all three examples, your first line is setting SORTORDER but all the other lines are testing VIEW.
Thanks, Leo. Combination of copy/paste and sloppiness. . What is the correct syntax for iconsetname:iconname? I've tried with and without the pound sign and quotes. I working without specifying--just curious.
Instead of the "Display Name" of the set ("Directory Opus 10 XP" in your example) you'll have to use the name of the *.dis file in /dopusdata\Icons (DOpus10XP.dis on my system): @icon:#DOpus10XP:flatviewmixednofolders,VIEW=files
@icon:#DOpus10XP:flatviewgrouped,VIEW=folders
@icon:#DOpus10XP:flatviewmixed,VIEW=mixed
The names of all iconsets are stored in the file /dopusdata\ConfigFiles\iconsets.oxc
Makes sense--thanks!
@icon: would be easier to use if we would have a submenu to choose an iconset in the button editor "Modificators" menu.
DO11 Beta 4: [quote]The advanced function editor now lets you control-click on an @icon: directive to directly select the icon[/quote]Wow, much better than everything I could think of. I was really happy seeing the @iconp: in my button as a blue link, allowing me to choose the icon by a double click. Really comfortable.
Many thanks for this little feature.
Ditto--between the toolbar and icon features in 11 my interface is so much cleaner and has a much smaller footprint.