[ROOT] TGPopupMenu rename, insert, remove item

From: David Faden (dfaden@iastate.edu)
Date: Thu Jun 28 2001 - 02:53:14 MEST


Hi,
   In working with ROOT's GUI menu classes, I've either run against a 
limitation in my knowledge or of ROOT. (I'm guessing it's the former.)
   I'd like to be able to dynamically rename items in a TGPopupMenu. (For 
example, I'd like to be able to change a generic name such as "Undo" to 
something more specific when a more specific name becomes available.)
   I'd also like to be able to insert and remove items from an already 
created TGPopupMenu. (For example, I'd would use this feature to maintain a 
list of open application windows.)
   If it is possible to do these things, I'd very much appreciate seeing 
any code you might have that demos them. If it isn't currently possible 
to dynamically insert, remove, and rename menu items (using the default 
ROOT classes), I'd appreciate pointers on how these things might be done.
   Thank you.

David



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET