FLTK logo

[fltk.general] Radio buttons in menus

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

Radio buttons in menus Eric Sokolowsky 11:29 Apr 15  
 
I'm trying to figure out how to set one specific radio button in a section of my menu.

I am dynamically generating the menu entries in question, by using the menu bar's "insert" method. The menu entries are displayed correctly.

I see the "setonly" method in the Fl_Menu_ class, but it takes a Fl_Menu_Item* as a parameter, and the only methods that return a menu item all return "const Fl_Menu_Item*" pointers. How am I supposed to find the right pointer without casting away the const, which, I assume, is there for a good reason?

Eric

--
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/CAPiqgzM%2BuGwE4K4up_SjdKDkbwAoqZiyE01xHMqzenxZYto48g%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'.