Mike,
Why use sys(1270) for this? It is a problematic function in that there is a finite probability that the mouse is no longer over the button by time you get around to handling it.
Are you trying to work around some problem you are seeing? If we know the problem there may be a better solution.
>Can anyone give me some examples of how to use the SYS(1270) command. What I want to know is how do I check to see if the user is clicking on the cancel button and wants to leave. Do I compare SYS(1270) to the name of the command button? The name of the command button is exitcancel. I tried SYS(1270) = exitcancel and that doesn't work. What is the correct way to check if a mouse cursor is on the cancel button...