Hi, i am a completle noob in making buttons, i am actualy sitting here at 2 hours to make the button, but nothing works ;>. Maybe someone can help me.
I have two different styles "custom1" and "compact1".
- I would like to toogle between them.
- in the "compact1" set the View as Thumbnails.
- Set different Thumbanails Size.
- And only change the style in the same window, not to close the others dopus windows/instances.
Thanks for any help
A style is a little different than a layout which is different than a view. It sounds to me like you just want to change the current view. If you want a button that when pressed will put the current lister into thumbnail mode with the thumbnails sized to 60 pixels wide, simply copy the following xml code and while opus is in customize mode, just paste it to an empty spot on a toolbar. (Note you must have the PREFERENCES/LISTERS DISPLAY MODES/THUMBNAILS MODE/ENABLE DYNAMIC THUMBNAIL SIZING option turned on for this to work).
<?xml version="1.0"?>
Compact
84
Set VIEW=Thumbnails
Show THUMBNAILSIZE 60
If you do this you also might want to have a "Thumbnail Size" slider button on your toolbar so you can change thumbnail sizes on the fly.
Then to have another button which changes the current view back to details mode, copy and paste the following xml code to another empty spot on a toolbar.
<?xml version="1.0"?>
Details
#newcommand
Set VIEW=Details
Because you're doing more than one command with the compact button Opus can't toggle between the two so I would either use two separate buttons or combine the above two buttons into one 3 button button. Personally I prefer the individual buttons so I can see in a glance what view mode Opus is currently in.