A problem with radio buttons group...

charles61 cszasz at mac.com
Tue Jul 13 17:34:33 EDT 2010


I have two groups of button sets, part1 and part2. Each group has two
buttons: Part1 group: buttons 1a and 1b; and Part2 group: buttons 2a and 2b. 

The following script is on a single card with the card script setting groups
of buttons to zero when the user gets to the card. I get the desire effect
of showing a certain message ("noman") when both buttons 1a and 2a are
highlighted or another message ("man") when either button 1b or 2b is
highlighted. 

But here is my problem. Before the user selects a second button from the
second group, I get the message "man" which is not supposed to appear until
both choices are made in the two button groups. How can I correct this
script so that the message is Not shown UNTIL after both buttons are shown?

switch
      case (hilite of button "part1a" of group "part1" = true and hilite of
button "part2a" of group "part2"  = true)
         show field "noman"
         hide field "man"
         break
      case (hilite of button "part1a" of group "part1" = false and hilite of
button "part2a" of group "part2"  = true)
         show field "man"
         hide field "noman"
         break
      case (hilite of button "part1a" of group "part1" = false and hilite of
button "part2a" of group "part2"  = false)
         show field "man"
         hide field "noman"
         break
      case (hilite of button "part1a" of group "part1"  = true and hilite of
button "part2a" of group "part2"  = false)
         show field "man"
         hide field "noman"
         break
   end switch
-- 
View this message in context: http://runtime-revolution.278305.n4.nabble.com/A-problem-with-radio-buttons-group-tp2288022p2288022.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list