Page 1 of 1

checkbox appearance change

Posted: Sun Aug 25, 2013 2:51 pm
by vedus
i am try to figure out what i do wrong :(
i try to change the checkbox appearance with my custom graphics as with .png
I change the icon and the hilite icon with custom made icons,the problem is when i change the icons the checkbox go to right side.
this is normal or bug?
the custom made icons is 17x17

Re: checkbox appearance change

Posted: Sun Aug 25, 2013 4:13 pm
by Mark
Hi,

This is normal. Just make an icon that can serve as checkbox and use a transparent button instead of a checkbox button. Use one icon for the unhilited and another for the hilited state. Use a script to set the hilite:

Code: Select all

on mouseUp
  set the hilite of me to not the hilite of me
end moueUp
Set the autoHilite of the button to false.

Kind regards,

Mark

Re: checkbox appearance change

Posted: Sun Aug 25, 2013 6:42 pm
by jacque
It's normal behavior but you can fix it. After you assign the icon, set the textalign of the button to "right" and it will switch back to what you expect. That way you can continue to use autohiliting.

Re: checkbox appearance change

Posted: Mon Aug 26, 2013 10:49 am
by vedus
thank you guys ;)