[MonoDevelop] Special icons in Monodevelop toolbox for custom widgets

Mike Kestner mkestner at gmail.com
Fri Sep 19 13:55:27 EDT 2008


On Fri, 2008-09-19 at 10:23 -0700, daniil00 wrote:

> > System.Drawing.ToolboxBitmapAttribute has a string ctor.  Maybe we could
> > parse that and use the value to access a resource.  Probably don't need
> > to restrict it to S.D.Bitmaps.  Could probably put anything loadable by
> > PixbufLoader in there.
> > 
> > Thoughts?
> > 
> 
> Or maybe add a as an resource a XML file called let's say "md-gui-icons.xml"
> where we can associate widgets with an icon. Something like
> <Icons>
>     <WidgetIcon widget-class="HollyWidgets.HLabel" widget-resource-icon
> ="hlabel.jpg" />
>     ...
> </Icons>
> I'm thinking at those guys who don't want to include System.Drawing on their
> projects.

Well, I'd rather not add another resource into the mix.  If you don't
mind the "edit a resource" approach, we already have the objects.xml
format.  It allows the setting of an icon for each object.

Mike



More information about the Monodevelop-list mailing list