FLTK logo

Re: [fltk.coredev] Re: Fl_Scroll: Add possibility to get notified when scroll position changes?

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Fl_Scroll: Add possibility to get notified when scroll position changes? Bill Spitzak Sep 09, 2022  
 
You could probably check this when draw() is called.

On Fri, Sep 9, 2022 at 3:34 AM Jakub Holý <jakubholy.net@gmail.com> wrote:
I meant it not as a question but as a proposal to extend the existing api of Fl_Scroll, which only core devs can do.

I got now an advice to subclass it and leverage its scrollbar's callback, which sounds as a nice small solution. So perhaps there is no need to change anything.

On Friday, September 9, 2022 at 9:35:53 AM UTC+2 imacarthur wrote:
On Friday, 9 September 2022 at 08:28:23 UTC+1 jakub wrote:

I find myself needing to get notified and run custom code when scrolling is happening / stops. Currently there seems no way to achieve that. Perhaps it would be generally useful if Fl_Scroll had callback(s) triggered when its x/yposition changes.


This post is off-topic for this list (this list is about developing the library itself, not about developing using the library) and so this would be more appropriate in the  fltk.general list - though I note you have cross-posted there, so I'll pick this up over there...

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/c4adbf2c-7695-4ad3-be1b-004768cf7395n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/CAL-8oAhbqKpgJ3b%3DfFq%2BVGDyn-CSyfHw7Zsn1pJKO0AR%2BzjanA%40mail.gmail.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'.