Re: Clickable -- active/activated?
Charles Goodwin <[email protected]> Wed, 31 Dec 2003 11:41:30 +0000
| Newsgroups | gmane.comp.java.xwt.widgets |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
On Wed, 2003-12-31 at 05:51, David Crawshaw wrote: > Towards that end, what's the difference between active and activated? > The current documentation doesn't really give it away: > > active ---- : the active state > activated - : when activated but not necessarily active > > What would have to happen to make something active, and what would have > to happen to make something activated? 'active' is a physical state, activated is a meta state. On Press1, widget becomes active and activated. On Leave (without Release1) widget stays activated but is no longer active. On Enter (without Release1) widget becomes active. Also, since 'active' is a physical state - ie a trigger, it's value has no meaning. All the states work by having 'true' put to them (in fact, the value is meaningless - could be false or "" or anything) and this triggers to switch to the new state - active, hover, or normal. This makes the theme code nice and tidy, because you just trap those 3 to produce the visual results. - Charlie -- Charles Goodwin <[email protected]> Member of the XWT Foundation The future of the net - www.xwt.org