Re: text namespace

Charles Goodwin <[email protected]> Thu, 10 Apr 2003 09:16:21 +0100
Newsgroups gmane.comp.java.xwt.general
Message-ID <308906BE5D07D5119285009027D61C5722F6E3@NTFPS1>
Don't you mean xwt.lib.[rich]text as the [rich]text engine?

-----Original Message-----
From: David Crawshaw [mailto:[email protected]]
Sent: 10 April 2003 01:22
To: [email protected]
Subject: Re: [xwt-dev] text namespace



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
_______________________________________________
http://lists.xwt.org/listinfo/dev