> Also any advice on my use of inheritance, its just that the new > window 'MapData' with the number pad and other buttons inherits from > DataGenerator which inherits from MainWindow (fluid class).
Hard to advise on your class hierarchy when we don't really know what you are trying to achieve, though... > So when i create a new instance of mapWin i also get a new mainWin, Now, in the absence of any other info., it sounds to me like your top level class is maybe wrong. It shouldn't contain a window unless all it's children want to have their own window, I suggest. I'd make the top level class only contain the parts that need to be common, then create subclasses of that which, if necessary, add a window object. Though I think I'd separate things more anyway - you seem to have GUI elements and data elements mixed in together - maybe that's right for your application, but I think I'd tend to have all the GUI specific stuff (windows and so on) in one place, and all the data and associated methods in a different class. > right now i am just deleting it in the mapWin constructor, would it be > possible to make the mainWin static? and thus avoid this? As noted above, this sounds to me a lot like your partitioning of objects to classes is not correct. You maybe need to rethink your hierarchy to clean this up and maybe then things will fall out more tidily. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

