Re: text namespace
David Crawshaw <[email protected]> Thu, 10 Apr 2003 10:22:06 +1000
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, April 9, 2003, at 10:40 PM, Charles Goodwin wrote: > The problem is that people will want to be using different types of > 'text': > label - uneditable by default, just plain text with no bg > singleline - wrapped in a bevel, single line text > multiline - wrapped in a bevel, multiline text > richtext - editable richtext I've been thinking about this, and I think we should have: xwt.theme.text (text engine) xwt.widget.text (scrollable, beveled, etc) xwt.widget.label (selectable, uneditable) xwt.theme.richtext (richtext engine) xwt.widget.richtext (scrollable, beveled, etc) singleline/multiline are really states of a textfield, but a label is more than just a text with editable == false. On monopoly, a label has a transparent background. A editable == false text has a white background. This will be different for different themes, so we don't want a developer specifically setting text to have these properties. d _______________________________________________ http://lists.xwt.org/listinfo/dev