Moving the position of text ?

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
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Moving the position of text ?

Post by peter.s » Sat Aug 02, 2008 4:34 pm

Hi Guys,

Just when I think I'm getting the hang of it... the simplest thing stalls me!

I have some text in a text field which is just for the user to read (not to interact with) so I've spent some time with the font and layout of the field.

The problem is, one of the characters I use in the first line gets it's head chopped off by the top of the field. So I want to move the text down by about half a line - but I want to do this by script. I don't want to set the margin higher in the Property inspector.

I've tried a few things with no luck... any suggestions?

Cheers,

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Aug 02, 2008 5:49 pm

Hi Peter,

you are almost there:

Code: Select all

...
set the margins of fld "xyz" to XYZ
...
:-)

Check the docs for "margins".


Best

Klaus[/b]

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Post by peter.s » Sun Aug 03, 2008 4:36 am

Thank you yet again Klaus!

I was close but didn't realise it. Your hint led me in the right direction and it was easily resolved... too easy! :D

Peter

Post Reply