Page 1 of 1

Non-square/irregularly shaped buttons

Posted: Tue Jun 28, 2011 6:41 am
by yitzchok
Is it possible to have a non-square/irregularly shaped button, or a button using a non-square/irregularly shaped image (or an image with a transparent background), and only have the area with the image work and be visible?
Thanks!

Re: Non-square/irregularly shaped buttons

Posted: Tue Jun 28, 2011 11:54 am
by Klaus
Hi yitzchok,

yes, using (semi-) transparent PNG (or GIF) images will do what yo need.
They will only "react" when you click on the non-transparent parts.


Best

Klaus

Re: Non-square/irregularly shaped buttons

Posted: Tue Jun 28, 2011 1:11 pm
by yitzchok
I'll try that - thanks!
One more question-
Is it possible to change which image is being used for a button using code, while the program is running?
Thanks!

Re: Non-square/irregularly shaped buttons

Posted: Tue Jun 28, 2011 1:17 pm
by Klaus
Hi yitzchok,

yes, sure!
Just set the ICON of a button to the ID of the image you want to see in the button!
...
set the icon of btn "your button here" to 1004
...
You can also set the "hiliteIcon", "hoverIcon" etc. on the fly!


Best

Klaus