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?
Images in buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Images in buttons
Hola Guiseppe,
Best
Klaus
No. Since the images inside of buttons are referenced in fact, you need to modify the original and referenced image.glpunzi wrote:Hi all,
It's possible to resize an image inside a button?
Sure, set the "textalign" of the button to left (or right or center) in the Inspector -> Text Formatting for the button.It's possible to have the image at the left of the text button? ot must be up in the text?
Best
Klaus
Re: Images in buttons
Thanks a lot, I will checkKlaus wrote:Hola Guiseppe,
No. Since the images inside of buttons are referenced in fact, you need to modify the original and referenced image.glpunzi wrote:Hi all,
It's possible to resize an image inside a button?Sure, set the "textalign" of the button to left (or right or center) in the Inspector -> Text Formatting for the button.It's possible to have the image at the left of the text button? ot must be up in the text?
Best
Klaus

Re: Images in buttons
Yes it is possible.
All you need to do is to set the width and height of the image, for example:
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
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: Images in buttons
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
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