checkbox appearance change

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

checkbox appearance change

Post by vedus » Sun Aug 25, 2013 2:51 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: checkbox appearance change

Post by Mark » Sun Aug 25, 2013 4:13 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7395
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: checkbox appearance change

Post by jacque » Sun Aug 25, 2013 6:42 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: checkbox appearance change

Post by vedus » Mon Aug 26, 2013 10:49 am

thank you guys ;)

Post Reply