Oner draw button

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
ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Oner draw button

Post by ibe » Mon Mar 08, 2010 4:45 pm

problem.png
problem.png (9.71 KiB) Viewed 2284 times
I am trying to make a simple button using my own images but want to use the 'Show name' property so that I can make a multilingual version of my project. The size of my image is 100*24 pixels. If I insert a new button, select the images I want to use with it, set style to opaque and remove the tick from 'Show name' the button displays as it should.

However, if I select 'Show name' the image I have is shifted up by 4-5 pixels. Is there something going on that I just don't understand. How can I get this to work properly. Any suggestions welcome.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Oner draw button

Post by Mark » Mon Mar 08, 2010 9:46 pm

ibe,

Experiment with the margins of the button. You'll find those in the Text pane of the property inspector. It is not necessary to set the margin to anything larger than the size of the image. When you open the property inspector, the margins may contain just one number, but you can replace it with four items, e.g. 0,32,0,8.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Re: Oner draw button

Post by ibe » Tue Mar 09, 2010 4:51 pm

Thanks Mark, that did the trick. Not that obvious though.

Post Reply