disable checkbox with icon set hilite to false

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

disable checkbox with icon set hilite to false

Post by jmburnod » Sat Mar 07, 2015 11:14 am

Hi All,
Disable one checkbox works fine without icon
If I use Icon and hiliteicon, "disable btn My Button" sets the hilite of it to false (OS X, LC 6.7.0).
Is it a bug ?
Best regards
Jean-Marc
https://alternatic.ch

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

Re: disable checkbox with icon set hilite to false

Post by jacque » Sat Mar 07, 2015 9:21 pm

I tested from the message box with a single radio button and did not see this problem:

Code: Select all

set the hilite of btn 1 to true
disable btn 1
put the hilite of btn 1
If the radio button is part of a group and something changes the selected button, the original one will become unhilited. You can turn off the radioBehavior property of the group, but then you need to manage auto-hiliting yourself.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: disable checkbox with icon set hilite to false

Post by jmburnod » Sat Mar 07, 2015 10:54 pm

Jaque,
Yes. It works fine with a simple checkbox btn but not if we use icon and hiliteIcon.
I found a way to keep the hilite but we have to set the icon of btn with hiliteIcon
if the hilite of btn was true before disable it.
Best regards
Jean-Marc
Last edited by jmburnod on Thu Mar 12, 2015 6:28 pm, edited 1 time in total.
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: disable checkbox with icon set hilite to false

Post by jmburnod » Thu Mar 12, 2015 6:28 pm

Hi All,
Using a white grc with blendlevel is better and simpler than the way that I explained in my last post.
Best regards
Jean-Marc
https://alternatic.ch

Post Reply