Re: Text Color
- From: Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 24 Mar 2008 11:38:14 -0400
On Mar 24, 2008, at 10:55 AM, Brendan Murphy wrote:
Ron Benditt wrote:
What is the best way to initialize the display with a starting
color? I would think that the changeTextColor method would do it,
but it does not seem to work when I have nothing selected. I see
that for initializing the font and the font size, there are
defaultFont and defaultFontSize properties. Any chance of adding a
defaultFontColor property?
One way to do this is to fill in the DefaultParagraphStyle event.
See the FTDocument.createDefaultParagraphStyle method as an
example of what you should put in it. This gives you control of
the default paragraph style when new paragraphs are created.
Ah, I just tried that. That works very well for what I'm doing.
The DefaultFont/Size properties were their mainly for tab support
in order to give tabs proper dimensions. Yes I can give you a
default color property which would tie into the
createDefaultParagraphStyle method.
No great need for this. The DefaultParagraphStyle event seems to work
well.
Thanks!
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- References:
- Text Color
- From: Ron Benditt
- Re: Text Color
- From: Brendan Murphy
Other related posts:
- » Text Color
- » Re: Text Color
- » Re: Text Color
Ron Benditt wrote:
What is the best way to initialize the display with a starting color? I would think that the changeTextColor method would do it, but it does not seem to work when I have nothing selected. I see that for initializing the font and the font size, there are defaultFont and defaultFontSize properties. Any chance of adding a defaultFontColor property?
One way to do this is to fill in the DefaultParagraphStyle event. See the FTDocument.createDefaultParagraphStyle method as an example of what you should put in it. This gives you control of the default paragraph style when new paragraphs are created.
The DefaultFont/Size properties were their mainly for tab support in order to give tabs proper dimensions. Yes I can give you a default color property which would tie into the createDefaultParagraphStyle method.
- Text Color
- From: Ron Benditt
- Re: Text Color
- From: Brendan Murphy