How to format contents of an ANSWER dialog?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

How to format contents of an ANSWER dialog?

Post by genie » Wed Mar 05, 2014 7:58 am

Good day!

Is there a way to format the contents of an ANSWER DIALOG? (pop-up)

The text in pop-ups are always centered. Is there anything I can do to make some text left justify or right justify?


Thanks,
Genie

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: How to format contents of an ANSWER dialog?

Post by LCNeil » Wed Mar 05, 2014 10:57 am

Hi Genie,

You should be able to use htmlText for this purpose-

The following script will right justify any answer dialog text-

Code: Select all

answer "<p align="&"right"&">this is some text</p>"
The following forum post explains how to change other styles of the answer dialog-

http://ftp.runrev.com/forums/viewtopic. ... 43&p=19915

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”