[MonoDevelop] Form Inheritance in the GUI Designer

László Monda laci at monda.hu
Tue Sep 18 09:28:41 EDT 2007


Hey Graeme,

You can do something like this with Stetic, the integrated MonoDevelop
GUI designer, but it involves writing some code.

You should create a dialog or window which stands on the top of the form
hierarchy you want to create and you should put EventBox widgets where
you want to customize your top level form.  Then create custom Widgets
in Stetic and add them to the EventBox widgets in the constructor of
your descendant classes.

I use this method in my application, Ultimate Commander and it works
well.  You can check my code out by following the project URL in my
signature.

On Tue, 2007-09-18 at 15:11 +0200, Graeme Geldenhuys wrote:
> Hi,
> 
> I'm new to MonoDevelop so excuse me if the question has been asked before.
> 
> Does the GUI Designer in MonoDevelop support Form Inheritance?  By
> that I mean the following. For example, this is what I have done
> numerous times in Borland Delphi's IDE and would like to know if it is
> possible with MonoDevelop.  I use Form Inheritance in Delphi a lot!
> 
> Example:
> I create a Basic Form, which knows how to save and restore it's
> position. I then create a Basic Edit form which descends from Basic
> Form and which implements functionality to edit a Object.  I then
> create a 3rd form for example called Person Edit Form, that descends
> from Basic Edit form and that implements the Person specific fields to
> edit.
> 
> Each of these 3 forms can be design with the GUI Designer. In the
> basic Edit Form I introduced 2 buttons (Save & Cancel) and in the
> third Person Edit Form I can see those two buttons. I can change them,
> but not delete them.
> 
> It's like normal class inheritance, but visually with Forms.  Can
> MonoDevelop's GUI Designer handle something like this?
> 
> Regards,
>   - Graeme -
> 
> 
> -----------------------------------
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
-- 
Laci  <http://monda.hu>
Developer of the Ultimate Commander  <http://ultimatecommander.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070918/9bc4b2ab/attachment.bin 


More information about the Monodevelop-list mailing list