Making an "answer" text bigger

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AgentItay
Posts: 60
Joined: Mon Aug 24, 2015 8:54 pm

Making an "answer" text bigger

Post by AgentItay » Wed Nov 11, 2015 7:16 am

Hello, I have a school project which requires me to make a game, I decided to do it with livecode, but thing is, from the projector the "answer" text is barely visible, I tried to use the <font> html tag but it gives me an error for some reason.

Thanks in advance.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Making an "answer" text bigger

Post by dunbarx » Wed Nov 11, 2015 4:32 pm

Hi.

Since everything is a stack in LC, including the answer dialog, you sure can. Try this, and get familiar with HTML tags.

Code: Select all

on mouseUp
   answer "<p><font size='40' >Are you sure?</font></p>"
end mouseUp
Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Making an "answer" text bigger

Post by FourthWorld » Wed Nov 11, 2015 5:01 pm

When reporting an error to the readers here it's always helpful to note what the error was.

As Craig noted, htmlText can be used but only when provided in a fully valid form, that is beginning with "<p>" and ending with "</p>". In between you have the full capabilities of LiveCode's fields available to you - see the Dictionary entry for the htmlText property for details.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply