FLTK logo

Re: [fltk.general] Search widget

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Search widget Ian MacArthur Sep 09, 2020  
 
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.