Formatting the text of an "ask" prompt

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
ichserbe
Posts: 3
Joined: Thu Jul 26, 2007 10:30 pm

Formatting the text of an "ask" prompt

Post by ichserbe » Sat Jan 26, 2008 12:04 am

Is there a way to format the text font and color and the bacgkground color of an "ask" prompt?

I know that an "answer" prompt may be formatted like this:

answer ( "<font color=" & thecolor & "> lalalala </font>") .....

but the same does not work for the ask prompt.

I have also tried taking the "formattedtext" of a field to put as the string that is displayed as the ask prompt, but it seems to strip the formatting from it anyway.

Any help is appreciated, thanks!

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Sat Jan 26, 2008 9:32 pm

I think I remember having this issue also. I think I ended up applying HTMLText to the dialog.

ichserbe
Posts: 3
Joined: Thu Jul 26, 2007 10:30 pm

Post by ichserbe » Mon Jan 28, 2008 2:14 am

Thanks, I have since found the solution. All you have to do is set the properties of the stack "ask dialog" or "answer dialog".

Post Reply