MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Open &Close without setting?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23593] Open &Close without setting?
  • From: Jacqueline Zizi <jazi at club-internet.fr>
  • Date: Sun, 21 May 2000 18:12:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Suppose the user is making her way by clicking on buttons that open
several windows or
palettes. The following function :

toOpen [file_String] :=
  FrontEnd`Execute[
    NotebookOpen[FrontEnd`FileName[{ParentDirectory, "myApplication"},
                 file]]]

will allow  to open several palettes at a time: for example to open at
one moment 4 palettes
it suffice to put as ButtonFunction the FullForm of
toOpen  /@  {"palette1",
                      "palette2",
                      "palette3",
                      "palette4"};

This is convenient because it is very simple and does not care on
plateform beeing. Neither it cares about the number of windows to open.

How could I write a similar simple function to close some of opened
windows
from just giving their file names, without using any setting as nb =...?






  • Prev by Date: long-time calculation
  • Next by Date: BarChart Bug?
  • Previous by thread: Re: long-time calculation
  • Next by thread: BarChart Bug?