I had already thought about something like this, making
functionality-widgets.

A button widget would then contain only a single layer (the canvas) with the
events linked to it (onmousedown, up, etc..).. the basic functionality of
the widget.

You could then extend on this widget to make

* normal 3D buttons (adding border layers to the main canvas)
  * image button (could extend 3D button, and add dynimage to the canvas as
well)
* skin button add background-image to the canvas, and possibly image-borders

this should then be done for all widgets, so that you basically have one
main widget that contains the functionality, and other widgets extend on it
to define the looks and style of the widget (skinable/not-skinable would be
the thing aiming for)

The only problem is that the basic-functionality widget should catch all
events, so it would need some tinkering with precreation events.. and maybe
add an onfinalise event to the function-widget or something.

Pascal Bestebroer ([EMAIL PROTECTED])
Software ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Raides J.
> Verzonden: donderdag 11 januari 2001 14:02
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: [Dynapi-Dev] [Bug #128263]
> PathAnimation.stopAnimation()
> bug (& patch)
>
>
> > Raymond Smith wrote:
> >
> > You know what we need.  A super button widget.  I just
> noticed I have for js
> > calls for differing button type.  The ideal button would:
> >
> > 1) Contain the ability to;
> > a) be defined and colored ala HTML (button.js)
> > b) pull in images (ala ButtonImage), but have three states:
> static, mouseover
> > and clicked
> > c) act as a 'href clicked marker", ie.... have a chnage
> state per session if
> > it has been clicked once.
> > d) perform as a check box (boolean toggle, imagebutton.js)
> > e) and have the abilty to be skined and defined by multiple themes.
> >
> > I have all this spread across 4 differing widgets, once I
> integrate this into
> > a super hacked version of what little I know I will contribute it.
> >
> > Later


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to