Fl_Scrollbar / callback

9 views
Skip to first unread message

holm.h...@gmail.com

unread,
Jun 1, 2023, 12:54:56 PM6/1/23
to fltk.general

Hello,

I have a Fl_Scrollbar widget with
when(FL_WHEN_CHANGED) - to trigger callback

In the callback I would like to know the reason for the callback being triggered.
Is it triggered because the slider was dragged, or because it was released ?

How can I find the reason for the callback being triggered ?

best regards
Håvard

Bill Spitzak

unread,
Jun 1, 2023, 3:31:29 PM6/1/23
to fltkg...@googlegroups.com
You can check if any mouse buttons are held down

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/80683898-d0c4-422e-81ea-c6ac70b5a97dn%40googlegroups.com.

holm.h...@gmail.com

unread,
Jun 1, 2023, 5:19:46 PM6/1/23
to fltk.general

Good idea, but it seems like this check will be positive, both is I DRAG, or if I push/release.

Best regards
Håvard
Reply all
Reply to author
Forward
0 new messages