Tags in dialog boxes and the command: resetAll

Scott Rossi scott at tactilemedia.com
Sat Mar 21 14:10:02 EDT 2009


Recently, Richard Gaskin wrote:

>> So why does the answer dialog render HTML?  It should not.
> 
> How would you propose passing styled text to the answer command?

If it were up to me, the default would be unstyled raw source, and I would
add a flag that would cause stylizing to take place, perhaps "formatted" to
keep in sync with formattedWidth/height/etc.

answer [iconType] prompt [formatted] [with button1 [or buttons]] [titled
windowTitle] [as sheet]

But I realize this will never happen.


> In MC it's required
> that text passed to it begin with "<p>" and end with "</p>" or it will
> be treated as plain text.  This means you could either put "<html>" and
> "</html>" about whatever you want to display raw, or even just a space
> character in front of the text, and you'll show the tags in the content.
> 
> The "raw" option you proposed would be nice, but I wonder if just making
> the HTML flags sufficiently limited would suffice.

If the "<p>" tag is the only thing that triggers styling, then (for me) I
think this would suffice.  But would you suggest doing the same (wrapping in
HTML tags) for other types of code, ie XML?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design






More information about the use-livecode mailing list