|
|
On Wed, 23 Jun 2021, 18:14 supsm17 wrote:
Is it possible to get the currently selected button, or do I have to do that manually with callbacks?
There's a couple of ways to get that. Individual callbacks is certainly one way. Or you can store your buttons in an array then poll the array to see which is set. What I usually do is have the buttons share a callback (the user data id's each button) and store the last selected ID for easy access. But there's myriad other ways, which may well be better! -- Ian From my Fairphone FP3
--
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/CAGFM6dbJ9Cgyb_L5Q3qtdU4jn_HqjKC7Cc203fHah1uswsGaiA%40mail.gmail.com.
[ Direct Link to Message ] | |
|
| |