Page 1 of 1

Short & long mouse clicks on a button for different actions

Posted: 2017-05-17, 09:46 UTC
by DrShark
I suggest to introduce the new native command
cm_EXECSHORTLONGCLICK <parameter 1>, <parameter 2>
If this command is a single command in the button, the short left mousebutton click on the button should execute the cm or em command defined in <parameter 1>. The long left mousebutton click should execute command defined in <parameter 2>.

Use cases:
1) there are different parameters used to start some app as user or as administartor. We don't want to waste the space of two buttons on this, but also the same time we want a quick access to one of the commands (this cannot be solved by moving our two buttons to a separate button bar because the short mouse click will just show the bar buttons).
2) it will be possible to assign the execution of some app on a short click, and a quick access to a bar with multiple related commands using long mouse click. If this suggestion will be implemented, after a long click it will be even possible to show that bar as a menu.

Posted: 2017-05-17, 10:11 UTC
by Horst.Epp
I would like to have the Ctrl and Shift modifier for clicking on a button.
This gives 3 functions on one button and is much simpler to use.

Posted: 2017-05-17, 11:03 UTC
by DrShark
Horst.Epp wrote:I would like to have the Ctrl and Shift modifier for clicking on a button.
This gives 3 functions on one button and is much simpler to use.
The command to accept these 3 functions as a parameters still may be required.
It seems that a button format is limited when a button is converted to em command. For example the information on the action for the button (switch to or show as menu) if a the Command field has just the path to a bar filename is stored in a bar file as iconic parameter, but the iconic parameter doesn't work for usercommands, so probably to avoid this limitation, the OPENBAR command was introduced.

This post has been edited