Best way to do palettes?

Shao Sean shaosean at unitz.ca
Mon Aug 19 01:43:00 CDT 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"
  else
    put "my palette is closed"
  end if


HTH




More information about the use-livecode mailing list