mouse events with ui objects suggestion


    Sep 29 2008 | 6:31 am
    Sending a number to a slider, will have the slider report that number. Changing the output of slider with the mouse, also will report a number. Given the output, there's no way (or at least I think) to make a distinction between mousing events and thru events. I've tried to solve this a number of times, when working on user interfaces. It would be great if it were possible to send a message to any ui object to tell it to prepend a certain identifier to it's output whether it is the result of mouse activity. Below patch would then be possible.
    _
    johan

    • Sep 29 2008 | 7:33 am
      Hello.
      I'm not sure of what you want to achieve but here is a workaround to
      find out whether an UI was moved with the mouse or not
      Ciao
    • Sep 29 2008 | 8:28 am
      > I'm not sure of what you want to achieve but here is a workaround to
      > find out whether an UI was moved with the mouse or not
      There you go. I missed the birth of hover. Thanks for pointing it out, that gets me going. With a smile to the dev team: my proposed option is very user friendly :)
      _
      johan
    • Sep 29 2008 | 9:00 am
      I cant recall all situations in which I needed this but this is an example: a slider duplicating the function of another, both producing result and avoiding the set message.
      _
      johan
    • Sep 29 2008 | 9:40 am
      jvkr schrieb:
      > Below patch would then be possible.
      It is without actually (if I understood you correct),
      you need to break the feedback, that's all:
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com
    • Sep 29 2008 | 7:14 pm
      Quote: Stefan Tiedje wrote on Mon, 29 September 2008 11:40
      ----------------------------------------------------
      > jvkr schrieb:
      > > Below patch would then be possible.
      >
      > It is without actually (if I understood you correct),
      > you need to break the feedback, that's all:
      That is super elegant. Still I'm happy with my solution, which I know is gonna help me out in many other cases.
      thanks Stefan
      _
      johan
    • Sep 30 2008 | 5:44 am
      Also, don't forget about the [grab] object. It is very useful for intercepting the normal output from an object.
      Here's a simple way to distinguish mouse events from thru events:
    • Sep 30 2008 | 9:40 am
      On 30 sept. 08, at 07:44, Adam Murray wrote:
      > Also, don't forget about the [grab] object. It is very useful for
      > intercepting the normal output from an object.
      Here's another example:
      ej
    • Sep 30 2008 | 6:23 pm
      !! nice one Adam ;)
      (I am such a fan of [grab]... and I didn't even think about it...
      hope *he* won't be angry at me =))
      Ciao