[comp.sys.mac.hypercard] Button help needed...

consp22@bingsuns.cc.binghamton.edu (Darren Handler) (06/01/90)

|>on mouseUp
|>  hide card field "fieldname"
|>end mouseUp
|>
|>on mouseDown
|>  show card field "fieldname"
|>end mouseDown
|>
|>However, if the user presses the mouse button down and then drags the
|>pointer out of the button, the button script doesn't receive the mouseUp,
|>and consequently, my handler doesn't handle, so to speak.  How can I get
|>the behavior I want from my buttons?  Do I have my handlers in the wrong
|>place?  Do I need to Pass the mouseUp somewhere?  Help!

Or you could use the mouseEnter and mouseExit commands which would
eliminate the mouse click needs.  All you have to do is pass the pointer
over the button and presto!!
                                   
-------------------------------------------------------------------------------
|  Consp22@Bingsuns.pod.binghamton.edu  |  SUNY-B Computer Consultants -      |
|  Consp22@Bingvaxu.cc.binghamton.edu   |  Trying to keep the world safe from |
|---------------------------------------|  the SUNY-B Computer users.         |
|  Consultant/Techie - World Computers  |-------------------------------------|
|  Computer Cons. - SUNY Binghamton     |     Darren `Mac Hack' Handler       |
|-----------------------------------------------------------------------------|
I don't know if I am going to heaven or hell, I just hope God grades on a curve