show/hide or open/close stack. What is good practice?

J. Landman Gay jacque at hyperactivesw.com
Mon Oct 26 17:36:56 EDT 2015


On 10/26/2015 3:50 AM, Tiemo Hollmann TB wrote:
> if I have stacks, which are frequently shown, like dialog windows, what is
> good practice. Open once and only show/hide, when using? Or should you close
> those kind of stacks always and toplevel/modal them again every time when
> needed? When I need to change anything in those stacks on the fly, like
> button labels, I open them only once and hide/show them when needed.
>
> Is this just a personal preference or is there a guideline on "how to" in
> LC?

It's mostly personal preference, but it depends on whether the stacks 
are substacks or not.

Substacks are always in RAM whether they are open or not, so it doesn't 
matter whether you close them or hide them.

Independent stacks take up RAM so if they are no longer needed I usually 
close and delete them.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list