|
|
That should probably work, but for some reason the label (or box) doesn't show up when the type is changed. It still appears, but is just invisible. Am I missing something?
On Monday, May 2, 2022 at 2:34:18 PM UTC-7 Ian MacArthur wrote:
On 2 May 2022, at 19:17, supsm17 wrote:
>
> I have a Fl_Check_Button which has a label, I want some menu to pop up when I right click the label. I'm not sure if this could be accomplished with Fl_Menu, but for the right click I think I can use a boxless Fl_Button. Will I have to have a hidden Fl_Box?
Would you not just use an Fl_Menu_Button, with the box type and text set appropriately, as the label?
Just set the type to POPUP3 (well, I think it is POPUP3 for the right click... might be POPUP2...) and that’s basically the job done.
https://www.fltk.org/doc-1.4/classFl__Menu__Button.html#a2c0d1cab5522c531309169acf0e1517e
--
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/400d0b0f-bea5-4a69-b8ed-be31c3c0ccf9n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |