Palette redraw problem
scott at tactilemedia.com
Sat May 22 00:12:03 CDT 2004
Recently, "J. Landman Gay" wrote:
>> You've thrown down the gauntlet -- this sounds like a good challenge.
>> Can you explain why the palette needs to disappear when not top most?
> Sure. The palette is a tool palette. Another substack is an object
> editing area where the user can design stuff; mostly custom field
> objects, line graphics, and text entry -- sort of a page layout thing.
> The palette is only appropriate to that particular one-card editing
> substack, and in fact, I don't want the tools available elsewhere lest
> they start creating or removing objects in the cards of the mainstack
> (and I don't want to write all the scripts that would prevent that.) The
> editing stack and the palette are both substacks of the main stack.
> I seem to have hit an impasse. If you want to undertake this challenge,
> then I will enthusiastically root for you to win. :)
OK, I believe I've met the challenge, using the relocation technique. The
result is a bit like the behavior of the Mac app GraphicConverter.
Try this (message box):
go url "http://www.tactilemedia.com/download/palettetest.rev"
Create a new main stack and click back and forth between the palettetest
stack and your empty main stack (or the message box). The palette window
should hide and display depending on whether the test stack is front-most,
and you should be able to click/type within the palette while it is visible.
See the card script of the test stack for details. Appears to work as
desired on OSX (not tested on Windows).
Do I win?
Tactile Media, Development & Design
E: scott at tactilemedia.com
More information about the use-livecode