realbasic-nug
[Top] [All Lists]

Re: Nice Editor (text and RTF)?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Nice Editor (text and RTF)?
From: Terry Ford <tmford at shaw dot ca>
Date: Mon, 30 May 2005 11:21:53 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BEB8A934 dot 15571%william at realsoftware dot com> <a40e6bb524a60ad69d48637832e5e3f0 at earthlink dot net> <020301c56221$377b56c0$6601a8c0 at whoscalling dot net> <021501c56224$f33775d0$6601a8c0 at whoscalling dot net> <a05100302bebbccedf7d5 at [192 dot 168 dot 1 dot 5]> <7c68fbb6a405e10c943939f0fd55849e at desuetude dot com> <022001c5622b$57d8d0f0$6601a8c0 at whoscalling dot net> <6090A580-F1DC-47F7-84F2-9B644657BF1C at tallent dot com> <3AE8DD07-5C57-4B08-9024-B77968A868B4 at mac dot com> <1D44FE21-1372-47A9-A134-D1890F9A9EC3 at shaw dot ca> <E0A1BFD3-D81A-4322-A2D5-A0083D1B947B at mac dot com> <01fa01c56535$ea73d920$6601a8c0 at whoscalling dot net>

On 30-May-05, at 9:37 AM, Ross at Webwolves wrote:

He's probably talking about Justified alignment..


Actually, I meant the ability to have independent alignment for each paragraph. For example, a centered headline, and body text flush left, all in the same edit field.

Ross,

Are you referring to within the IDE itself during development? I may be a bit confused about your goals and where/when you are attempting to do this.

The Editfield in Rb 5.5.5 can do this now at *runtime*. Setting alignment in the IDE does nothing thing for each EditField for Initial State Text while developing. It is always left aligned until runtime. It also applies that alignment to the entire field.

The StaticText Control will, however, show Alignment and styles *in the IDE* but this also applies to the entire control.

When working with Editfields now, there are all kinds of new features that use the StyledText Class.

"The StyledText class enables you to apply style attributes to text independently of an EditField and its properties. Also, the StyledText class gives you the ability to align paragraphs (left, center, and right). The properties and methods of the StyledText class can be accessed from an EditField via its StyledText property, but you can also open, manage, and save styled text that is not displayed in any control."

The Paragraph Class is also part of this along with style runs etc. The problem is that theses features seem to be scattered around and sometimes difficult to find. There are also very few examples of how to use them.

Justification (Alignment of Left and Right Text edges of text within an editfield) is not supported yet; probably because of the complexity involved with Fonts and sizes. As many have said before, "The EditField Control is *not* a word processor." ;-)

As far as RTF is concerned, if you wish to see this on Mac, add your me-too to the Feature Request at:

<http://www.realsoftware.com/feedback/viewreport.php?reportid=ggtkegot>

AFAIK, Mac still uses "WorldScript" for EditFields on Mac but RTF on Windows.

Also, StyledTextPrinter on Mac doesn't honor Alignment (Yet) when printing to screen or paper, but it does on Windows. There are gaps that will hopefully be dealt with in future releases of Rb.

Stefan, the WordGuise fellow, is going to work more on his Windows support after June 1st. I'm going to beta test for him, so hopefully I'll get to have my cake and eat it, too. :-)

I wish I had the time to test this myself but far too busy right now solving my own problems.

Best,

Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>