|
|
You could probably check this when draw() is called.
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 ] | |
|
| |