Hi,
Just create a small image and set the contents depending on the state
which you keep in a Custom Property.
Something like this would do it:
on mouseUp
local myCurrentState
put the cpCurrentState of me into myCurrentState
if myCurrentState = empty then
put 0 into myCurrentState
end if
add 1 to myCurrentState
if myState > 3 then
put 1 into myState
end if
switch myCurrentState
case 1
set the fileName of me to "File1"
break
case 2
set the fileName of me to "File2"
break
case 3
set the fileName of me to "File3"
break
end switch
set cpCurrentState of me to myCurrentState
end mouseUp
Of course you don't need to use an image file you could just use an
Icon, but this should serve as a basis.
Hope this Helps
All the Best
Dave
On 23 Feb 2007, at 14:01, Mark Powell wrote:
I know there is debate among HIF designers that such a thing should
exist in the first place, but let's assume that one has a good reason
for it:
My question is, is there any Rev-native way of doing tri-state
checkboxes? Where a checkbox can have an ON, OFF, or "equivocal"
setting that signifies something between ON and OFF. If not Rev-
native,
has anyone cooked up their own solution whose look and feel is
cross-platform compatible (so that the tri-state checkbox can be
ganged
alongside conventional Rev-native checkboxes, and not stand out like a
sore thumb)?
I am on 2.8.0
Mark
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution