GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Adding a button for delete with bypassing the recycle bin

In addition to the delete button on the tool bar, I would like to add an additional button that also does a delete, but bypasses the recycle bin.
Is there a standard button to provide that function, or do I have to build
a custom button?

Thanks
~Paul

The command to use is:

Delete FROMFOCUS NORECYCLE

Rather than have another button if you hold down the SHIFT key when deleting with the normal delete button then it will bypass the recycle bin.

[quote="leo"]The command to use is:

Delete FROMFOCUS NORECYCLE

That is a good piece of the puzzle, but I was hoping for a bit more guidance.
I think you Dopus experts have long forgotten what it was like to start out knowing nothing. I read the section in "Getting to know Dopus" which covers the exact topic I need (creating a custom button), but the demo uses a "new button" button which I don't have. After much searching in the manual I found (under "New-Predefined):

:: New Button
:: This creates a brand new button, with no function defined. You need
:: to fill out the function and set the name and (optionally) ToolTip
:: (label) and icon settings for the button.

However this gives me no clue how to actually "do it". What menus
do I go to to find stuff like this. The only "New" I found was in the file
menu, which had many options - but of course none had anything to
do with creating a new button.

~Seriously confused nubee

Have a look in the Tutorials section on this forum; particularly [Toolbar Editing (video tutorial))

That tutorial doesn't really tell you how to create a new button unless
you happened to have some definition for the button that you download
and paste into the toolbar. In my case, I just had the delete command
(suggested by leo above) but not the complete button definition.

I think you guys just want a new user to suffer like you had to. Otherwise
it would seem almost as easy just to tell me how a new button is added
to the toolbar.

I eventually found a way - create some useless button by dragging one of
the file commands to the toolbar. Then select the button, and "Edit", and
modify it's command (with the one leo suggested) and choose a new
icon and tooltips, and I'm done. Seems a bit round about, but maybe
this is the method that the Dopus creaters intended? Certainly nobody
has suggested a better way.

~Paul

You only watched the first part of the video then...

Besides, it's not difficult...

Right click the toolbar, select customize then right click the toolbar again and select New -> New Button.

I still think Shift clicking the normal button is easier than wasting screen real estate on another delete button...

[quote="steve"]You only watched the first part of the video then...
Besides, it's not difficult...
Right click the toolbar, select customize then right click the toolbar again and select New -> New Button. [/quote]

Hmm, somehow I missed that in the video.
Oh, I see it is a mode kind of thing
(since right clicking on the toolbar doesn't always do the same thing).
I'm not sure they had to confuse me that way. No matter,
now I can do it easily. Thanks!

[quote="steve"]
I still think Shift clicking the normal button is easier than wasting screen real estate on another delete button...[/quote]

I like to do a lot with the mouse. I don't always want to go
to the keyboard. Also, my 2nd computer is a convertable
slate, and in slate mode hitting a key is difficult at best.
But this is why Dopus is so configurable.
We all work in slightly different ways.

~Paul

[quote="pmennen"]Oh, I see it is a mode kind of thing
(since right clicking on the toolbar doesn't always do the same thing).
I'm not sure they had to confuse me that way. No matter,
now I can do it easily. Thanks![/quote]

You can only edit toolbars while in Customize mode because it means when you're using the program normally you don't have to worry about making accidental changes.

I bet most people who have used programs that don't let you lock their toolbars, or even allow buttons on toolbars to be moved at all times, have had the fun of accidentally moving stuff around when trying to do something else, then having to work out what happened and how to undo it. :slight_smile:

(Parts of the toolbar also change appearance when you enter Customize mode. For example, some buttons in Customize mode will turn into (i.e. generate) several buttons outside of Customize mode. The Go DRIVEBUTTONS command is an example: One button turns into one button per drive.)

[quote="steve"]...I still think Shift clicking the normal button is easier than wasting screen real estate on another delete button...[/quote]Hello Steve...

Er, yes, which is why my Delete button is a three-button button:

LMB - delete to recycle bin (Delete SHIFT)
RMB - delete without recycle bin (Delete NORECYCLE)
MMB - remove from a collection (Delete REMOVECOLLECTION)

I am pretty sure that I got that from someone here in the forum, but can't remember who it was.

@PMENNEN: If you are still following this thread, it is worthwhile reading about three-button buttons.