|
|
On 9 Sep 2020, at 19:56, Greg Ercolano wrote:
>
> On 2020-09-09 11:49, holm.h... wrote:
>> Thanks for the code and the suggestions. I will experience with the code and see if I can get it to work out.
>>
>> Btw. another question. Would it be possible to activate the callback of a Fl_Button due to the "roller-mouse-button" ?
>
> Hmm, doesn't it already do that?
>
> If I run the 'test/buttons' application and click the middle mouse
> (roller mouse button) on the button, it 'clicks'.
>
> Maybe I'm missing something about your question though.
>
Hmm, my guess would be that Håvard wants to make the button respond to the scroll wheel motion, rather than the click?
That being the case, it’s pretty easy to subclass the button and catch the FL_MOUSEWHEEL events in the handle and do something suitable with them...
Or, if it is the click, then the handle would be for FL_MIDDLE_MOUSE.
Or maybe that’s not it at all?
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/60E1593F-2784-405E-B918-7556FC154EF1%40gmail.com.
[ Direct Link to Message ] | |
|
| |