Greetings,
I'm a graphics designer attempting to learn LiveCode - completely new.
My question: when skinning a button with your own images (initial, rollover, onclick), is it possible to proportionally resize the images used when the stack is resized? I know one can resize graphics directly, but graphics used in skinned buttons?
Thanks and regards,
-m
Button icon resizing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Button icon resizing
Hi mbot023,
Unfortunatelly, resizing icon of a btn is not directly possible in LiveCode.
That is possible if you resize the image used by the button, the icon is resized.
Best regards
Jean-Marc
Unfortunatelly, resizing icon of a btn is not directly possible in LiveCode.
That is possible if you resize the image used by the button, the icon is resized.
Best regards
Jean-Marc
https://alternatic.ch
Re: Button icon resizing
Hi mbot023,
1. welcome to the forum
2. exactly as Jean-Marc said, you need to resize the IMAGES that are displayed inside of buttons as icons!
Here a little trick to update your buttons correctly AFTER you resized an image used as an icon.
a.lock screen ## ALWAYS!
b. resize you image(s)
c. "update" the button:
...
set the icon of btn "your button here" to the icon of btn "your button here"
...
This will force a redraw of the icon in the buttons after you resized the image.
Best
Klaus
1. welcome to the forum

2. exactly as Jean-Marc said, you need to resize the IMAGES that are displayed inside of buttons as icons!
Here a little trick to update your buttons correctly AFTER you resized an image used as an icon.
a.lock screen ## ALWAYS!

b. resize you image(s)
c. "update" the button:
...
set the icon of btn "your button here" to the icon of btn "your button here"
...
This will force a redraw of the icon in the buttons after you resized the image.
Best
Klaus
Re: Button icon resizing
d. unlock screen
Unlock the screen when you're done. Locking and unlocking the screen should be done in pairs, since locking calls will nest. The screen will unlock properly after the last nested "unlock" call.
Unlock the screen when you're done. Locking and unlocking the screen should be done in pairs, since locking calls will nest. The screen will unlock properly after the last nested "unlock" call.
Re: Button icon resizing
Perfect! Sounds like a good solution -- I'll give it a try.
Thanks!
-m
Thanks!
-m