[MonoDevelop] Custom widget library

Lluis Sanchez lluis at ximian.com
Sun Sep 10 05:52:52 EDT 2006


El dom, 10-09-2006 a las 02:06 +0200, Piotr Budny escribió:
> Dnia sobota, 9 września 2006 19:49, Lluis Sanchez napisał:
> > Yes, custom widget properties and events are visible and can be edited
> > using the properties pad.
> 
> Hm, probably you don't understood me.
> I'd like to add new, my own, widget properties handled by my own methods.
> For example my widget contains Entry. I'd like to add new property WidgetID 
> (which would contain e.g. string) and I'd like to have MaxLen property 
> specified maximum length for that Entry (int).
> I'd like them to be visible from the Property editor in MainWindow designer 
> when I click on that custom widget as showed on the 
> http://chimera.one.pl/md1.png.
> 
> The only question is, what to add in *.cs for the widget, that would make MD 
> show my very own propertis in the stetic editor.

You don't need to do anything special. As I said, properties you declare
in your widget should automatically be shown in the properties editor
when you select it in a window. The same for events.

> 
> Regards,
> Piotr Budny
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list