Page 1 of 1
Images in buttons
Posted: Fri Dec 10, 2010 9:50 am
by glpunzi
Hi all,
It's possible to resize an image inside a button?
For example, I have an image of 256x256, and I want to put it in 64x64, or 32x32 without touiching the image with gimp for example.
It's possible to have the image at the left of the text button? ot must be up in the text?
Re: Images in buttons
Posted: Fri Dec 10, 2010 11:45 am
by Klaus
Hola Guiseppe,
glpunzi wrote:Hi all,
It's possible to resize an image inside a button?
No. Since the images inside of buttons are referenced in fact, you need to modify the original and referenced image.
It's possible to have the image at the left of the text button? ot must be up in the text?
Sure, set the "textalign" of the button to left (or right or center) in the Inspector -> Text Formatting for the button.
Best
Klaus
Re: Images in buttons
Posted: Fri Dec 10, 2010 12:14 pm
by glpunzi
Klaus wrote:Hola Guiseppe,
glpunzi wrote:Hi all,
It's possible to resize an image inside a button?
No. Since the images inside of buttons are referenced in fact, you need to modify the original and referenced image.
It's possible to have the image at the left of the text button? ot must be up in the text?
Sure, set the "textalign" of the button to left (or right or center) in the Inspector -> Text Formatting for the button.
Best
Klaus
Thanks a lot, I will check

Re: Images in buttons
Posted: Fri Dec 10, 2010 1:35 pm
by BvG
Yes it is possible.
All you need to do is to set the width and height of the image, for example:
Code: Select all
on mouseUp
set the rect of image 1 to 0,0,100,100
set the icon of me to the id of image 1
end mouseUp
Re: Images in buttons
Posted: Fri Dec 10, 2010 1:39 pm
by Klaus
Of course Björnke is right!
I meant that one can not scale an image inside a buttton
by changing any property of the button, sorry for the confusion!
Best
Klaus