Checkboxes

Mark Wieder mwieder at ahsoftware.net
Sat May 3 15:59:42 EDT 2014


Dar-

Saturday, May 3, 2014, 12:23:53 PM, you wrote:

> Today we can say this:

>   if the mouse is “down” then 


That's a different kind of thing. "the mouse" is a state, not a
control. As a state it can have one of two current conditions. By
asking what the mouse "is" you are querying its current condition, but
by asking the same thing of a control (a button, etc) you are not
explicitly asking for the state of one of its properties, but rather
querying the control object itself:

if button "Quiet" -- references an object
if the mouse      -- references the mouse state

mapping the checked/unchecked state of a checkbox button onto the
object reference requires a whole new level of metaprogramming and
parser inference.

-- 
-Mark Wieder
 ahsoftware at gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.





More information about the Use-livecode mailing list