Hi Sean, the EWidgetMessageTypes enum is just to provide nice nmemonics for the message types. The kC_MSGMAX id was not used and I've removed it from the enum. Casting to the EWidgetMessageTypes enum is ok. However to prevent any clash with future system widgets I propose that user defined message types are >1000. For sub-messages the range is always 1-255. I've added this user message type requirement (>1000) to the documentation (in the new header WidgetMessageTypes.h). Cheers, Fons. > > Hi Rooters > > To take advantage of MK_MSG I used statements such as, > > #define M_NEW_1DHISTO ((EWidgetMessageTypes) 9) > > Casting an integer outside the range of the enumeration worked (at least > on my platform) but I gather this is not the way to go. > > The comment in the source (TGWidget.h) > > //--- Widget messages and submessages > // (sub messages must be in the range 1-255) > // (these should be on a separate include file) > > seems to indicate that sub-messages can be valued up to 255 but > the enumeration has a max val of 8 ? > > thanks for any help > > Sean > _____________________________________________ > > Sean Kelly > Dept. of Physics > University of California Los Angeles > office tel. (310)-825-6035 > fax (310)-206-4397 > voice mail (310)-259-3747 > _____________________________________________ > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET