← Back to team overview

mudlet-makers team mailing list archive

Re: [Bug 1233106] [NEW] setLabelRightClickCallback() for triggering on right-clicks

 

We could add a new function, addLabelMouseBinding that worked off that
principle. We could have it accept the numerical representation of qt
events to make it compatible with everything qt offers.

sent from my phone
On Sep 30, 2013 7:13 AM, "Vadim Peretokin" <vperetokin@xxxxxxxxx> wrote:

> Public bug reported:
>
> See user request at
> http://forums.mudlet.org/viewtopic.php?f=5&t=92&start=360#p17888:
>
> > Can we get a setLabelRightClickCallback function, so we can have
> labels do something when you right click them?
>
> This opens up to the need for having a setLabelMiddleClickCallback, and
> then what do you do with many of the other buttons a mouse can have?
>
> It would be best to have a single function that reported which button
> was pressed - but unfortunately we can't tack it on as an argument to
> setLabelClickCallback because we already allow the user to pass an
> arbitrary amount of arguments, and doing anything else would stuff
> things up.
>
> ** Affects: mudlet
>      Importance: Wishlist
>          Status: New
>
> --
> You received this bug notification because you are subscribed to Mudlet.
> https://bugs.launchpad.net/bugs/1233106
>
> Title:
>   setLabelRightClickCallback() for triggering on right-clicks
>
> Status in Mudlet the MUD client:
>   New
>
> Bug description:
>   See user request at
>   http://forums.mudlet.org/viewtopic.php?f=5&t=92&start=360#p17888:
>
>   > Can we get a setLabelRightClickCallback function, so we can have
>   labels do something when you right click them?
>
>   This opens up to the need for having a setLabelMiddleClickCallback,
>   and then what do you do with many of the other buttons a mouse can
>   have?
>
>   It would be best to have a single function that reported which button
>   was pressed - but unfortunately we can't tack it on as an argument to
>   setLabelClickCallback because we already allow the user to pass an
>   arbitrary amount of arguments, and doing anything else would stuff
>   things up.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1233106/+subscriptions
>

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1233106

Title:
  setLabelRightClickCallback() for triggering on right-clicks

Status in Mudlet the MUD client:
  New

Bug description:
  See user request at
  http://forums.mudlet.org/viewtopic.php?f=5&t=92&start=360#p17888:

  > Can we get a setLabelRightClickCallback function, so we can have
  labels do something when you right click them?

  This opens up to the need for having a setLabelMiddleClickCallback,
  and then what do you do with many of the other buttons a mouse can
  have?

  It would be best to have a single function that reported which button
  was pressed - but unfortunately we can't tack it on as an argument to
  setLabelClickCallback because we already allow the user to pass an
  arbitrary amount of arguments, and doing anything else would stuff
  things up.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1233106/+subscriptions


Follow ups

References