GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Dopus 11, Windows 8 Explorer style


#1

Designed to be clean and functional with a similar style to the standard Windows 8 Explorer.



#2

The Home and View toolbars are 'pin-able' ribbon style bars (when un-pinned the toolbar is hidden once a button is clicked).



#3

There is also a toggle to switch between the Drives toolbar and a standard Windows 8 Location style toolbar.



#4

How do you "pin" the toolbars with ribbon style?


#5

I used the new variables feature to maintain vars for the open toolbars and for whether the toolbars are pinned.

I have just two "ribbon" toolbars called vHome and vView. They are opened by the labels 'Home' and 'View' on the main toolbar. Normally you would just use the toggle feature to turn them on or off but the only way I could think to make them pinnable was to code a similar capability with vars. Here is the code for the Home toolbar label/button:

[code]@toggle:if $lst:vHome

@ifset:$lst:vHome //if toolbar is open, close it
@set lst:vPin //clear the pin var
@set lst:vHome //clear the vHome toolbar var
Toolbar NAME=vHome CLOSE //close the toolbar

@ifset:else //if toolbar is closed, open it
Toolbar NAME=vHome LINE=1 LOCAL //open the toolbar
@set lst:vHome=On //set var
@set lst:vView //clear vars for all other ribbon toolbars
Toolbar NAME=vView CLOSE //close all other ribbon toolbars
[/code]

And then on the toolbar you have the pin icon far right which has the following code:

@ifset:$lst:vPin    //if pinned
@set lst:vPin    //clear the pin var
@set lst:vHome    //clear the vHome toolbar var
Toolbar NAME=vHome CLOSE    //close the toolbar

@ifset:else    //if NOT pinned
@set lst:vPin=On    //set the Pin var
@icon:toolbarUp,$lst:vPin    //change the icon (use a label for an icon from the icon set you are using)

@ifset:common
@toggle:update    //toggle to update the icon

Then if you want the buttons on a toolbar to close the toolbar if it is not pinned, add the following code after the button command (adjusting the vHome var and toolbar name as appropriate):

@ifset:$lst:vPin
@ifset:else    //if NOT pinned
@set lst:vHome    //clear the toolbar var
Toolbar vHome CLOSE    //close the toolbar

It's a bit of effort to set-up, but I couldn't think of a more efficient way to do it.


#6

Is that "@icon:toolbarUp,$lst:vPin" line doing anything?

Not here in a quick test. And I think tbone was looking for a way to do the same thing...


#7

It changes the icon if the vPin variable is set...but "toolbarUp" doesn't exist in the default icon set, it's one from an icon set I made by screen-grabbing Explorer. So you would need to put an icon name in there that exist in the icon set you are using.

You could use copysourcedest_left as the main icon and copysourcedest_up in the @icon line to approximate the pin and collapse icons using the basic Dopus icon set.


#8

That is a good compromise between clean/minimal and having lots of buttons/toolbars.
Nice idea and implementation. I like it!


#9

[quote="Ving"]I used the new variables feature to maintain vars for the open toolbars and for whether the toolbars are pinned.

I have just two "ribbon" toolbars called vHome and vView. They are opened by the labels 'Home' and 'View' on the main toolbar. Normally you would just use the toggle feature to turn them on or off but the only way I could think to make them pinnable was to code a similar capability with vars. Here is the code for the Home toolbar label/button:

[code]@toggle:if $lst:vHome

@ifset:$lst:vHome //if toolbar is open, close it
@set lst:vPin //clear the pin var
@set lst:vHome //clear the vHome toolbar var
Toolbar NAME=vHome CLOSE //close the toolbar

@ifset:else //if toolbar is closed, open it
Toolbar NAME=vHome LINE=1 LOCAL //open the toolbar
@set lst:vHome=On //set var
@set lst:vView //clear vars for all other ribbon toolbars
Toolbar NAME=vView CLOSE //close all other ribbon toolbars
[/code]

And then on the toolbar you have the pin icon far right which has the following code:

@ifset:$lst:vPin    //if pinned
@set lst:vPin    //clear the pin var
@set lst:vHome    //clear the vHome toolbar var
Toolbar NAME=vHome CLOSE    //close the toolbar

@ifset:else    //if NOT pinned
@set lst:vPin=On    //set the Pin var
@icon:toolbarUp,$lst:vPin    //change the icon (use a label for an icon from the icon set you are using)

@ifset:common
@toggle:update    //toggle to update the icon

Then if you want the buttons on a toolbar to close the toolbar if it is not pinned, add the following code after the button command (adjusting the vHome var and toolbar name as appropriate):

@ifset:$lst:vPin
@ifset:else    //if NOT pinned
@set lst:vHome    //clear the toolbar var
Toolbar vHome CLOSE    //close the toolbar

It's a bit of effort to set-up, but I couldn't think of a more efficient way to do it.[/quote]
None I can understand. I am not sure what happened to me, I guess I have become stupid years and years. Could you please elaborate the steps? I suppose you made new toolbars for the vHome and vView initially?