That's is essentially what I'm doing for my widgets. But note, for 2.6 I'm
re-assuming ownership of the widgets I write - no one seems to really want to maintain
other peoples widgets anyway. I've rewrote them and will be selling them (for
commercial use, free for non-commercial use) separately from dynapi. This of course
won't stop others from using 2.6 for their own widgets.
To give you an idea of the scale that my add-on pack (code named "Chameleon") will
represent, this is a quick list of the widgets I've more or less completed thus far:
Button, CheckBox, CheckBoxGroup (probably RadioButton also), ColumnList (needs work),
List, ListItem, SelectList, Menu, MenuBar, MenuItem, (probably CheckBoxMenuItem and
RadioMenuItem also), Slider, Range, ScrollBar, ScrollPane, PushPanel, TabPane,
TabItem, Window.
And I'll probably add to that a SplitPane, ButtonBar, TreeView, and TreeList. I've
only written 1 theme for most of them, but plan to have complete sets of windows95,
XP, Swing, and MacOS themes for a final release along with some other neat ideas I
have.
For each one of these widgets there's a common theme system using a setTheme() method.
And in each of the theme js files it hooks itself up as the default theme for that
widget so you don't need to to call setTheme() for each instance of the widget unless
you want it to be different from the default.
I don't have a master "theme manager" per se, I'm doing it on a per widget basis for
now only because that's what I started Window with and it seemed to work well.
Having a theme system is definately a better way than I used to do it (merely a
setImages() method).
Regards,
Dan Steinman
On Mon, Nov 26, 2001 at 01:47:33PM -0800, Raymond Irving wrote:
> Hello,
>
> Does any one know if DynAPI 2.6.0 will have a theme
> manager?
>
> I was just thuinking that a theme manager could be
> used to change to theme of a collection of widgets.
>
> example:
>
> let's say the all buttons created from the button
> widget was assigned to a theme group call buttonTheme.
> By call the theme manager (e.g.
> ThemeManager.setTheme("buttonTheme",newtheme)) we
> could change the theme of all the buttons that are
> part of that group.
>
> The same could go for labels, scrollbars, panels, etc.
>
> This could be useful when working with changable or
> customizable themes.
>
>
> --
> Raymond
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[email protected]/
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/