Page 1 of 1

Oner draw button

Posted: Mon Mar 08, 2010 4:45 pm
by ibe
problem.png
problem.png (9.71 KiB) Viewed 2282 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.

Re: Oner draw button

Posted: Mon Mar 08, 2010 9:46 pm
by Mark
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

Re: Oner draw button

Posted: Tue Mar 09, 2010 4:51 pm
by ibe
Thanks Mark, that did the trick. Not that obvious though.