home *** CD-ROM | disk | FTP | other *** search
- Hist - shade demonstration program
-
- This plots simple histograms. Drag files containing numbers separated by
- spaces newlines or commas to the hist icon.
-
- The filer needs to have seen the !Tcl directory before it will run
- It needs RISCOS 3.1 or greater.
-
- Suitable example data is contained in the file !Hist.Data. It was generated
- by the tclsh script "makedata".
-
- ================================================================================
-
- The program gives a simple example of how to save draw files in shade.
- It illustrates how to use tags, so that the same dialog box can be used from
- more than one draw window.
-
- The dialog box saveBox calls "savedrag" if the icon is dragged, and "saveclick"
- if the OK button is clicked. It is attached to the diagram menu in the call
- to w_draw diag$diag create in procedure "dragproc". The menu entry has both a
- dialog box and a click item. Clicking on it calls procedure "saveMclick". This
- saves if the filename has been set already, and opens the box if it has not.
-
- Notice draw windows are created with names diag1 diag2 ...
-
- "savedrag" just calls the w_draw <name> save command with the supplied filename
- and window name.
-
- It saves the filename in a global array entry so that it can be reused.
-
- This array entry is initialised to the default in the "dragproc" procedure.
-
- "saveclick" first checks that the supplied filename contains a '.' .
-