How to properly format text in sheet on OS X?

Klaus Major klaus at major-k.de
Sat Aug 16 08:59:01 EDT 2003


Hi Brian,

> Hi Folks,
>
> I am trying to properly format the text in an 'answer ... as sheet' 
> command.  I need to message text to conform to OS X's UI guidelines 
> which state that the 'message text' should use the emphasized bold 
> system font and the 'informative text' should use the small system 
> font.  Below is my command so far but the fonts don't seem to be 
> working:
>
> answer warning "<font face='Lucida Grande' size='13'><b>message 
> text</b><br><br></font><font face='Lucida Grande' 
> size='11'>informative text</font>" with "Continue" as sheet
>
> Can anyone help me get this working properly?
>
> Thanks, Brian

You have 2 choices (maybe more...)

1. Set the texsize of these lines of fld 1 of cd 1 of stack "Answer 
Dialog"
manually...

set the textsize of line 1 to (the num of lines of messagetext) of fld 
1...
...

2. Create your own "Answer Dialog" :-)
(Its is nothing more than a "modal" stack...)

Then you can use the global property "the dialogdata" to set
and get the value clicked in your custom "Answer Dialog"...

Drop a line if you need more info/assistance :-)


Regards

Klaus Major
klaus at major-k.de
www.major-k.de




More information about the use-livecode mailing list