TCPmaker : Visual Tour    Sending Messages to Screen Controls  

Unfortunately, merely setting the Toggle button's _alpha value to 0 using the Control Message API function mtSet_alpha() is not good enough.

We find that if we click in the apparently empty space where the Toggle button used to be(pointed to by the big red arrow in the screen shot below), the LED indicator lights up!

This tells us that, even though the Toggle button is not visible, it is still present, and clicking on that place will cause it to do something.

The reason we wanted to make it invisible was to make the Toggle button go away, so that clicking there wouldn't do anything. Evidently, just making the control invisible is not sufficient.

So now what do we do?

 

open full sized image

25 of 33
Copyright Notice and Author Information