[comp.sys.mac.hypercard] Highlighting of a Button

hume@cs.glasgow.ac.uk (Heather Hume) (01/12/89)

Does anybody know if there is a method to reverse the area of the screen 
covered by a transparent button.

I know there is an XCMD (highlight) which does this when the pointer is over 
the button, but do not know of anything which would highlight in this way
whenever I wanted it to.


   Heather Hume   
   University of Glasgow

jdevoto@Apple.COM (Jeanne A. E. DeVoto) (01/15/89)

In article <22845.8901111647@crete.cs.glasgow.ac.uk> hume@cs.glasgow.ac.uk (Heather Hume) writes:
>
>
>
>Does anybody know if there is a method to reverse the area of the screen 
>covered by a transparent button.

This can be done in HyperTalk by setting the hilite of the button to true.

jeanne devoto
jdevoto@apple.com

englandr@phoenix.Princeton.EDU (Scott Englander) (01/16/89)

In article <22845.8901111647@crete.cs.glasgow.ac.uk> hume@cs.glasgow.ac.uk (Heather Hume) writes:
>Does anybody know if there is a method to reverse the area of the screen 
>covered by a transparent button.
>I know there is an XCMD (highlight) which does this when the pointer is over 
>the button, but do not know of anything which would highlight in this way
>whenever I wanted it to.

Simple.  Use this script:

set the hilite of button "Reverse" to true

(or false).  "Reverse" is the name of the button.  
-- 

                                               - Scott

boz@eleazar.dartmouth.edu (John Boswell) (01/17/89)

My $0.02:

	You might try a "mousewithin" handler that does "set the highlight of me
to true" and a "mouseLeave" that does "set the highlight of me to false"
This would be slower than an XCMD, but it may work ok.


*************************************************************************
 John Boswell 			  	 	boz@eleazar.dartmouth.edu	
 Dept. of Chemistry		 		boz@dartCMS1.BITNET		
 Dartmouth College, Hangover, Nude Hampster  03755