Closing palettes

Richmond richmondmathewson at gmail.com
Thu Mar 10 12:35:26 EST 2011


On 03/10/2011 07:22 PM, J. Landman Gay wrote:
> On 3/10/11 11:06 AM, Richmond wrote:
>> I have a palette that is a substack of a multi-card stack (i.e. nothing
>> screamingly original) called "FLOATER".
>>
>> On the palette I have a close 'iocn' and when the end-user clicks on it
>> it execute this script:
>>
>> on mouseUp
>> close stack "FLOATER"
>> end mouseUp
>>
>> which it does . . . . . which is all jolly well and fine, BUT . . . it
>> also returns the main
>> multi-card stack to card 1 every time; something I should like to 
>> prevent.
>
> It sounds like you have a handler somewhere in the mainstack that goes 
> to card 1, either on opencard, preopencard, or resumestack.
>
> Try locking messages before executing the "close stack" command in 
> your floater.
>
>
Love you!

on mouseUp
   set the lockMessages to true
   close stack "FLOATER"
   set the lockMessages to false
end mouseUp

works a charm!

"How wise one micht be makin inquiries at the Bellingham show"

Richmond.



More information about the use-livecode mailing list