[comp.sys.mac.hypercard] Selections disappearing.

phil@scs.Carleton.CA (Phil Trubey) (12/14/87)

I am trying to do the following...

Say I have several buttons with dimmed out icons.  I would like
them to be replaced by normal undimmed icons whenever the user
has selected some text.

My idea of making this work was...
I have a card idle handler that checks to see if the user
has selected some text.  If so the handler sets the button's icon
to the undimmed icon, and if no text is selected, it sets the 
button's icon to the dimmed icon.

The problem is that setting a button's icon makes the selection
disappear. 

Questions:
Is there a way of setting a button's icon without making the
selection disappear?
 
Is there a better way to have dimmed out and non-dimmed buttons
than having two icons for the button?

Thanks in advance for any help...

Phil Trubey
School of Computer Science, Carleton University

UUCP:   phil@scs.uucp, ptrubey@clan.uucp   (...!watmath!clan!scs!phil)
BITNET: ptrubey@carleton
CDNnet: ptrubey@systems.carleton.cdn