Best way to do palettes?

Shao Sean shaosean at
Mon Aug 19 01:43:00 EDT 2002

if you want to show/hide the palette without closing it just use the
following commands:
  show stack "myPaletteStack"
  hide stack "myPaletteStack"

you will need to trap the "closeStackRequest" in your palette to make sure
that you hide it and not close it (but make sure you have a way to allow it
to close properly when the end-user quits your application)..

to see if the palette is open, just check like so:
  if ("myPaletteStack" is among the lines of the openStacks) then
    put "my palette is open"
    put "my palette is closed"
  end if


More information about the Use-livecode mailing list