>>Staz (or whoever): >> >>I've been able to hide and show controls (buttons) in PG Pro using STAZ's >>"Show/Hide Objects" routines. Everything works fine for the exception of >>one thing, namely the cursor. When a checkbox is hidden, the cursor still >>changes to a hand as the cursor goes over where it was. In other words, the >>cursor doesn't know that the object is hidden. Any easy way to correct this? >> >>Thanks. >> >>tedd > >Hi tedd, > >I'd get the PG element# of the checkbox from PG's Develop Menu: > Develop/Object References/PG's Element# >and then, after "CASE _otherNullEvent" on PG's MAIN page > >CALL GETMOUSE(gMouseY) : theElem = FN pGpointInObj > >LONG IF theElem = _theCheckboxElem AND theCheckboxIsGray > CURSOR _arrowCursor > WHILE theElem = _theCheckboxElem > CALL GETMOUSE(gMouseY) : theElem = FN pGpointInObj > SOUND "Take a nap, FN pGcursor" > WEND >END IF > >This ABSOLUTELY will work! (If it doesn't, all the usual disclaimers >apply ;-) > >-Warren Warren: Thanks for the code. I was able to do what you suggested and it works. However, the real question I'm asking is: "How do you know if the checkbox is inactive?" In other words, where do you get the value for "theCheckboxIsGray"? I was thinking (dangerous for me) that each object must have a structure wherein things like "active" are kept. If so, then I could check the status of the object when determining what to do with the cursor. tedd ___________________________________________________________________ <mailto:tedd@...> http://sperling.com/