Palette redraw problem

Frank Leahy frank at backtalk.com
Fri May 21 20:01:43 EDT 2004


On May 21, 2004, at 10:42 PM, use-revolution-request at lists.runrev.com 
wrote:

> Recently, "J. Landman Gay" wrote:
>
>>>> I have stack that opens a tool palete. I want the palette to 
>>>> disappear
>>>> when the stack is not frontmost, and reappear when it is. I 
>>>> scripted a
>>>> suspendStack handler and a resumeStack handler to manage this:
>>>>
>>>> on suspendStack
>>>>  hide palette "myPalette"
>>>> end suspendStack
>>>>
>>>> on resumeStack
>>>>  show palette "myPalette"
>>>> end resumeStack
>>>>
>>>> This works exactly every other time the stack is suspended; that is,
>>>> the first time it hides, the second time it doesn't.
>
>

Sarah,

Is there a suspendStack and resumeStack in the palette?  What happens 
if you add "pass suspendStack" and "pass resumeStack"?  What about 
locking and unlocking messages around each hide/show call?

-- Frank



More information about the use-livecode mailing list