More questions regarding revPrintText II

J. Landman Gay jacque at hyperactivesw.com
Wed May 29 13:42:01 EDT 2002


On 5/29/02 8:20 AM, Rob Cozens wrote:
> 
> I created a simple web page with a field containing three lines of 
> text: line 1 is left justified, line 2 is center justified, and line 
> 3 is right justified.  When I view the page in Netscape, the 
> justification is as specified.  If I set the htmlText of a Rev field 
> to this text, all lines are left justified.  Replacing "<P 
> ALIGN="CENTER"> with <center> did not change the alignment.

Rev fields work pretty much the same way HyperCard fields do as far as 
text formatting. You can change the style of individual characters, but 
the overall text alignment affects only the entire field, and can't be 
set per chunk. If you want different alignments for various parts of the 
text, you have to fake it using different fields placed above or below 
each other.

The htmltext of a field is handy for lots of things, but it only 
supports those things which Rev fields support natively. In other words, 
htmltext doesn't support table structures, style sheets, tag parameters 
(like: <p align=center>) or other structural html features that are 
supported in browsers. Since fields can have only one overall alignment, 
htmltext doesn't support that either.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list