Code: Select all
global gPreviousBackdrop
on preOpenStack
put the backdrop into gPreviousBackdrop -- Stores the backdrop setting on opening the stack
set the backdrop to "128,128,128" -- Set the backdrop to a gray color
end preOpenStack
This works fine IF I first open LiveCode and then open the stack from within LiveCode. But if I double-click on the stack to open it from the Desktop, the code is ignored and the user's backdrop remains.
I've tried moving the code to the openStack handler, with the same results.
Any suggestions as to how to always be able to save the user's backdrop and use my own?