Checking status of checkboxes

8 messages Options
Embed this post
Permalink
charles61

Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
I have two sets of checkboxes. The first set consists of 11 checkboxes and the second set consists of 13 checkboxes. I want to script for the user to be able to go another marked card if one or more of the first set of checkboxes are checked  AND if one or more of the second set of checkboxes are checked.

In the following script I was able to set up the first condition for the first set of checkboxes so the user could go to a marked card:

on mouseUp
   switch
      case (the hilite of button "check1" = true )
         go first marked card
         break
         
      case (the hilite of button "check2" = true)
         go first marked card
         break
         
      case (the hilite of button "check3" = true)
         go first marked card
         break
         
      case (the hilite of button "check4" = true)
         go first marked card
         break
         
      case (the hilite of button "check5" = true)
         go first marked card
         break
         
      case (the hilite of button "check6" = true)
         go first marked card
         break
         
      case (the hilite of button "check7" = true)
         go first marked card
         break
         
      case (the hilite of button "check8" = true)
         go first marked card
         break
         
      case (the hilite of button "check9" = true)
         go first marked card
         break
         
      case (the hilite of button "check10" = true)
         go first marked card
         break
         
      case (the hilite of button "check11" = true)
         go first marked card
         break
      default
         answer information "Please check one of the disability areas."
   end switch
end mouseUp
   
My question is how do I add the second condition in my switch statements that one or more of the checkboxes are checked in the second set of checkboxes so that the user can go to the specify marked cards. By the way, the second set of checkboxes do not determine which marked cards the user can to. The second condition of the second checkboxes is only that one or more of the checkboxes are checked.
Mark Schonewille-3

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Hi charles61,

Make a group of the first 11 checkboxes. Call this group "Marked".  
Group the remaining 13 checkboxes too and call this second group  
"Switch".

Put the following script in your button:

on mouseUp
   if the hilitedButton of grp "Marked" is 0 then
     beep
     answer error "Please, select a category first"
   else if the hilitedButton of grp "Switch" is 0 then
     beep
     answer error "Please check one of the disability areas."
   else
     go first marked cd
   end if
end mouseUp

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 1 nov 2009, at 19:59, charles61 wrote:

>
> I have two sets of checkboxes. The first set consists of 11  
> checkboxes and
> the second set consists of 13 checkboxes. I want to script for the  
> user to
> be able to go another marked card if one or more of the first set of
> checkboxes are checked  AND if one or more of the second set of  
> checkboxes
> are checked.
>
> In the following script I was able to set up the first condition for  
> the
> first set of checkboxes so the user could go to a marked card:
>
> on mouseUp
>   switch
>      case (the hilite of button "check1" = true )
>         go first marked card
>         break
>
>      case (the hilite of button "check2" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check3" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check4" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check5" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check6" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check7" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check8" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check9" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check10" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check11" = true)
>         go first marked card
>         break
>      default
>         answer information "Please check one of the disability areas."
>   end switch
> end mouseUp
>
> My question is how do I add the second condition in my switch  
> statements
> that one or more of the checkboxes are checked in the second set of
> checkboxes so that the user can go to the specify marked cards. By  
> the way,
> the second set of checkboxes do not determine which marked cards the  
> user
> can to. The second condition of the second checkboxes is only that  
> one or
> more of the checkboxes are checked.


_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
charles61

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Mark,

Thanks so much! I try your suggestion and it works beautifully! I have always use true instead of 0 in scripting checkboxes. So, I also learn more about scripting groups and checkboxes!

I have thought of using groups but did not have an idea of how to do it.


Mark Schonewille-3 wrote:
Hi charles61,

Make a group of the first 11 checkboxes. Call this group "Marked".  
Group the remaining 13 checkboxes too and call this second group  
"Switch".

Put the following script in your button:

on mouseUp
   if the hilitedButton of grp "Marked" is 0 then
     beep
     answer error "Please, select a category first"
   else if the hilitedButton of grp "Switch" is 0 then
     beep
     answer error "Please check one of the disability areas."
   else
     go first marked cd
   end if
end mouseUp

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 1 nov 2009, at 19:59, charles61 wrote:

>
> I have two sets of checkboxes. The first set consists of 11  
> checkboxes and
> the second set consists of 13 checkboxes. I want to script for the  
> user to
> be able to go another marked card if one or more of the first set of
> checkboxes are checked  AND if one or more of the second set of  
> checkboxes
> are checked.
>
> In the following script I was able to set up the first condition for  
> the
> first set of checkboxes so the user could go to a marked card:
>
> on mouseUp
>   switch
>      case (the hilite of button "check1" = true )
>         go first marked card
>         break
>
>      case (the hilite of button "check2" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check3" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check4" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check5" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check6" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check7" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check8" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check9" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check10" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check11" = true)
>         go first marked card
>         break
>      default
>         answer information "Please check one of the disability areas."
>   end switch
> end mouseUp
>
> My question is how do I add the second condition in my switch  
> statements
> that one or more of the checkboxes are checked in the second set of
> checkboxes so that the user can go to the specify marked cards. By  
> the way,
> the second set of checkboxes do not determine which marked cards the  
> user
> can to. The second condition of the second checkboxes is only that  
> one or
> more of the checkboxes are checked.


_______________________________________________
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
charles61

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
In reply to this post by Mark Schonewille-3
Some javascript/style in this post has been disabled (why?)
Mark,

Thanks so much! I tried your suggestions and they works beautifully! I have always use true instead of 0 in scripting checkboxes. So, I also learn more about scripting groups and checkboxes! 

I have thought of using groups but did not have an idea of how to do it. 


Charles Szasz





On Nov 1, 2009, at 2:18 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

Hi charles61,

Make a group of the first 11 checkboxes. Call this group "Marked".  
Group the remaining 13 checkboxes too and call this second group  
"Switch".

Put the following script in your button:

on mouseUp
   if the hilitedButton of grp "Marked" is 0 then
     beep
     answer error "Please, select a category first"
   else if the hilitedButton of grp "Switch" is 0 then
     beep
     answer error "Please check one of the disability areas."
   else
     go first marked cd
   end if
end mouseUp

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 1 nov 2009, at 19:59, charles61 wrote:

>
> I have two sets of checkboxes. The first set consists of 11  
> checkboxes and
> the second set consists of 13 checkboxes. I want to script for the  
> user to
> be able to go another marked card if one or more of the first set of
> checkboxes are checked  AND if one or more of the second set of  
> checkboxes
> are checked.
>
> In the following script I was able to set up the first condition for  
> the
> first set of checkboxes so the user could go to a marked card:
>
> on mouseUp
>   switch
>      case (the hilite of button "check1" = true )
>         go first marked card
>         break
>
>      case (the hilite of button "check2" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check3" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check4" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check5" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check6" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check7" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check8" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check9" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check10" = true)
>         go first marked card
>         break
>
>      case (the hilite of button "check11" = true)
>         go first marked card
>         break
>      default
>         answer information "Please check one of the disability areas."
>   end switch
> end mouseUp
>
> My question is how do I add the second condition in my switch  
> statements
> that one or more of the checkboxes are checked in the second set of
> checkboxes so that the user can go to the specify marked cards. By  
> the way,
> the second set of checkboxes do not determine which marked cards the  
> user
> can to. The second condition of the second checkboxes is only that  
> one or
> more of the checkboxes are checked.

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Mark Schonewille-3

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Hi Charles,

The number (0 in this case) doesn't mean that one particular button is  
unhilited. The 0 means that no buttons in that group are hilited.  
Please, read up on hilitedButton in the documentation. The docs  
contain essential information.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 1 nov 2009, at 20:45, charles61 wrote:

>
> Mark,
>
> Thanks so much! I tried your suggestions and they works beautifully! I
> have always use true instead of 0 in scripting checkboxes. So, I also
> learn more about scripting groups and checkboxes!
>
> I have thought of using groups but did not have an idea of how to do  
> it.
>
>
> Charles Szasz
> [hidden email]

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
charles61

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Hi Mark,

I did check hilitedButton documentation in the dictionary. Thanks for bring me to my attention.

I do have another but similar question related to option boxes. How can you check if the user has made a selection in an option box?

Mark Schonewille-3 wrote:
Hi Charles,

The number (0 in this case) doesn't mean that one particular button is  
unhilited. The 0 means that no buttons in that group are hilited.  
Please, read up on hilitedButton in the documentation. The docs  
contain essential information.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 1 nov 2009, at 20:45, charles61 wrote:

>
> Mark,
>
> Thanks so much! I tried your suggestions and they works beautifully! I
> have always use true instead of 0 in scripting checkboxes. So, I also
> learn more about scripting groups and checkboxes!
>
> I have thought of using groups but did not have an idea of how to do  
> it.
>
>
> Charles Szasz
> cszasz@mac.com

_______________________________________________
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
Mark Schonewille-3

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Hi Charles,

That would be:
put the menuHistory of btn "Your Menu Option Button" into myChoice

Note that this returns the currently selected value, even if the user  
hasn't made a choice yet.

You could also use the label property of the menu option button, with  
the same result.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 7 nov 2009, om 03:08 heeft charles61 het volgende geschreven:

>
> Hi Mark,
>
> I did check hilitedButton documentation in the dictionary. Thanks  
> for bring
> me to my attention.
>
> I do have another but similar question related to option boxes. How  
> can you
> check if the user has made a selection in an option box?
>
>
> Mark Schonewille-3 wrote:
>>
>> Hi Charles,
>>
>> The number (0 in this case) doesn't mean that one particular button  
>> is
>> unhilited. The 0 means that no buttons in that group are hilited.
>> Please, read up on hilitedButton in the documentation. The docs
>> contain essential information.
>>
>> --
>> Best regards,
>>
>> Mark Schonewille
>>
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>>
>> Download Strõm Flow Chart Software
>> http://flowproject.economy-x-talk.com
>>
>> On 1 nov 2009, at 20:45, charles61 wrote:
>>
>>>
>>> Mark,
>>>
>>> Thanks so much! I tried your suggestions and they works  
>>> beautifully! I
>>> have always use true instead of 0 in scripting checkboxes. So, I  
>>> also
>>> learn more about scripting groups and checkboxes!
>>>
>>> I have thought of using groups but did not have an idea of how to do
>>> it.
>>>
>>>
>>> Charles Szasz
>>> [hidden email]

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
charles61

Re: Checking status of checkboxes

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Mark,

Thanks! I will try the label property.


Charles Szasz





On Nov 6, 2009, at 9:20 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

Hi Charles,

That would be:
put the menuHistory of btn "Your Menu Option Button" into myChoice

Note that this returns the currently selected value, even if the user  
hasn't made a choice yet.

You could also use the label property of the menu option button, with  
the same result.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 7 nov 2009, om 03:08 heeft charles61 het volgende geschreven:

>
> Hi Mark,
>
> I did check hilitedButton documentation in the dictionary. Thanks  
> for bring
> me to my attention.
>
> I do have another but similar question related to option boxes. How  
> can you
> check if the user has made a selection in an option box?
>
>
> Mark Schonewille-3 wrote:
>>
>> Hi Charles,
>>
>> The number (0 in this case) doesn't mean that one particular button  
>> is
>> unhilited. The 0 means that no buttons in that group are hilited.
>> Please, read up on hilitedButton in the documentation. The docs
>> contain essential information.
>>
>> --
>> Best regards,
>>
>> Mark Schonewille
>>
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>>
>> Download Strõm Flow Chart Software
>> http://flowproject.economy-x-talk.com
>>
>> On 1 nov 2009, at 20:45, charles61 wrote:
>>
>>>
>>> Mark,
>>>
>>> Thanks so much! I tried your suggestions and they works  
>>> beautifully! I
>>> have always use true instead of 0 in scripting checkboxes. So, I  
>>> also
>>> learn more about scripting groups and checkboxes!
>>>
>>> I have thought of using groups but did not have an idea of how to do
>>> it.
>>>
>>>
>>> Charles Szasz
>>> [hidden email]
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution