source: trunk/doc/expgui_cfg.html @ 480

Last change on this file since 480 was 461, checked in by toby, 12 years ago

# on 2001/10/18 23:17:12, toby did:
update archiving

  • Property rcs:author set to toby
  • Property rcs:date set to 2001/10/18 23:17:12
  • Property rcs:lines set to +2 -2
  • Property rcs:rev set to 1.20
  • Property rcs:state set to Exp
  • Property svn:keywords set to Author Date Revision Id
File size: 24.8 KB
Line 
1<HTML>
2   <META NAME="Author" CONTENT="Brian H. Toby">
3   <TITLE>Customizing EXPGUI and Associated Programs</TITLE>
4<HEAD>
5</HEAD>
6<BODY BGCOLOR="#FFFFFF">
7
8<A HREF=http://www.ncnr.nist.gov>
9<IMG SRC="http://www.ncnr.nist.gov/images/ncnrtrans.gif" 
10alt="Link to NIST Center for Neutron Research home page"
11ALIGN=RIGHT></A>
12<A HREF=http://www.nist.gov>
13<IMG SRC="http://www.ncnr.nist.gov/images/webidblue_2lineright.gif" 
14alt="Link to National Institute of Standards & Technology home page"
15ALIGN=LEFT></A>
16<CENTER>
17<A Href="http://www.ncnr.nist.gov/programs/crystallography/software/tclpkgs.html">
18<IMG SRC="tcltklogo100.gif" 
19alt="Link to Tcl/Tk information">
20</CENTER></A>
21<br clear=all><hr>
22
23<TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT>
24<TR><TH><A  Href="expgui.html">EXPGUI top</A> 
25</TH></TR></TABLE><BR CLEAR=ALL>
26
27<CENTER>
28<H1>
29Customizing EXPGUI and Associated Programs</H1></CENTER>
30
31The EXPGUI GSAS graphical user interface can be modified in many
32ways quite easily.
33This document describes how the GUI works and how to modify the menus without
34significant reprogramming. A little bit of programming in Tcl/Tk can go a
35long way in adding new features. See the
36<a HREF="#Customizing">Customizing</A> examples, below.
37
38<H3>EXPGUI</H3>
39The main GUI is created by file expgui, which in turn uses the following files
40sequentially:
41<UL>
42<LI><TT>readexp.tcl</TT>
43<LI><TT>gsascmds.tcl</TT>
44<LI><TT>gsasmenu.tcl</TT>
45</UL>
46Two additional files are read if they are found:
47<UL>
48<LI><TT>localconfig</TT>
49<LI><TT>.gsas_config</TT>
50</UL>
51<P>The first three files,
52(<TT>readexp.tcl</TT>, <TT>gsascmds.tcl</TT>, <TT>gsasmenu.tcl</TT>)
53must be located in the same directory where the <TT>expgui</TT> file is found.
54The <TT>localconfig</TT> file also is read from this directory, if it exists.
55The final file, <TT>.gsas_config</TT>, is read from the user's login directory (UNIX) or <TT>C:\</TT> (Windows).
56The <TT>localconfig</TT> and <TT>.gsas_config</TT> are intended to
57contain system-wide and user-level default values for parameters
58that are described in this document. Most routines have
59a "Save Options" command that writes some of the current parameters to
60file  <TT>.gsas_config</TT>. Note that information in <TT>.gsas_config</TT>
61overrides that in <TT>localconfig</TT>.
62No error occurs if either of these files are not found.
63
64<P>
65The <TT>readexp.tcl</TT> and <TT>gsascmds.tcl</TT> files contain
66tcl procedures that are
67used for more than one application, so it is convenient to place them
68in separate files. They are only of interest to someone trying to debug
69or add new functionality to expgui.
70<P>
71The <TT>gsasmenu.tcl</TT> file defines the contents of the
72menu bar, the contents of the
73button bar and definitions for each command. The contents of this file
74are designed to be modified and extended by users, either by editing the file,
75or by overriding definitions in the <TT>localconfig</TT> or
76<TT>.gsas_config</TT> files.
77
78The important variables defined in the <TT>gsasmenu.tcl</TT> file are:
79<DL><DL>
80<DT><TT>expgui(menunames)</TT><DD>
81This list defines the menu bar headings other than File, Options & Help
82<DT><TT>expgui_menulist</TT><DD>
83Each array element, e.g. expgui_menulist(file) and expgui_menulist(powder),
84defines commands to be added to a menu heading. Each command will appear
85as an array element in expgui_cmdlist.
86<DT><TT>expgui_cmdlist</TT><DD>
87Each array element, e.g. expgui_cmdlist(Save) or expgui_cmdlist(expnam)
88contains two items. The first defines a tcl procedure to be executed
89when the command is invoked, or "-" if no command will be invoked and
90the second contains help information describing what the command does.
91Note that when menu item is selected the variable cmd is set to the
92name of the command, so
93<PRE>
94    expgui_cmdlist(powpref) {{runGSASwEXP $cmd} {Powder data preparation}}
95</PRE>
96means that "runGSASwEXP powpref" will be invoked when powpref is invoked.
97. For example, when powpref is selected, the tcl command
98"runGSASwEXP $cmd" is invoked, where variable cmd is set to "powpref".
99<DT><TT>expgui(buttonlist)</TT><DD>
100This list defines the commands that will appear on the button bar where
101each item that appears on the button bar must have a matching pair of entries
102in expgui_cmdlist.
103Thus if the command
104<PRE>
105   set expgui(buttonlist) {expnam expedt genles ortep fourier forsrh forplot lstview}
106</PRE>
107is placed in the <TT>localconfig</TT> or <TT>.gsas_config</TT> files this will
108redefine the contents of the button bar.
109</DL></DL>
110
111In addition to the variables defined in the previous file, expgui, uses
112a small number of array elements for other configuration options. They are:
113<DL><DL>
114
115<DT><TT>expgui(scriptdir)</TT><DD>
116This determines where files such as <TT>readexp.tcl</TT>, etc.
117are located. This defaults to the location where <TT>expgui</TT> is located so
118it rarely needs to be changed.
119
120<DT><TT>expgui(gsasdir)</TT><DD>
121This contains the location of the GSAS directory, if it is not the
122parent director where expgui is found.
123This determines where a number of GSAS data files will be located. If expedt
124crashes when you try to add new atoms, this is probably wrong.
125
126<DT><TT>expgui(gsasexe)</TT><DD>
127This determines where the GSAS executable files are located.
128You might want to change this is you keep multiple versions of GSAS
129around or if you keep the GSAS files in a different location than
130the default or want to keep the tcl files somewhere other than
131in a subdirectory of the GSAS files.
132
133<DT><TT>expgui(bkgcolor1)</TT><DD>
134Sets the background color for the bottom box on the phase pane.
135The default value, #fdf, is a light violet that
136will probably drive some folks nuts, but is a good contrast to the yellow
137of the refinement flags.
138
139<DT><TT>liveplot(hst)</TT><DD>
140Sets the default histogram used for liveplot
141
142<DT><TT>liveplot(legend)</TT><DD>
143Sets the default value for display of the legend in liveplot
144
145<DT><TT>expgui(initstring)</TT><DD>
146Defines commands to be executed by EXPGUI after all other commands
147have been run. This is used to define initialization commands in
148the <TT>localconfig</TT> or <TT>.gsas_config</TT> files that cannot be
149run at the time when the files are sourced. <I>(added in EXPGUI v1.21)</I>
150</DL></DL>
151
152The following variables are written to <tt>.gsas_config</tt> when
153"Save Options" is used. These variables are all set from the GUI and therefore
154do not need to be edited manually.
155
156<DL><DL>
157<DT><TT>expgui(archive)</TT><DD>
158This defines the default state for the archive flag,
159where 0 is off and 1 is on. When archive is on, a copy of the .EXP file
160is saved before a new version of the file is saved in EXPGUI.
161
162<DT><TT>expgui(font)</TT><DD>
163This determines the base font used in the programs. You conceivably
164could want to use an integer value not present in the
165"Options/Screen Font" menu command.
166
167<DT><TT>expgui(asorttype)</TT><DD>
168This determines the atom sort mode.
169
170<DT><TT>expgui(hsorttype)</TT><DD>
171This determines the histogram sort mode.
172
173<DT><TT>expgui(filesort)</TT><DD>
174This determines the default file sorting mode for the expnam command.
175
176<DT><TT>expgui(autoexpload)</TT><DD>
177If set to 1, the experiment file is automatically reread after
178GSAS programs modify it.
179(UNIX only)
180
181<DT><TT>expgui(showexptool)</TT><DD>
182If set to 1, output from EXPTOOL is shown after the program is run.
183This is probably needed only for debugging purposes.
184
185<DT><TT>env(GSASBACKSPACE)</TT><DD>
186Used only for UNIX: This determines if the default definition
187for the backspace key is overridden; some UNIX systems need this so that
188expedt and other terminal-oriented programs work correctly and
189other systems do not. You can toggle this option using the
190"Override Backspace" option on the file menu to see what works for you.
191
192</DL></DL>
193
194
195<HR><H3><A NAME="import">Coordinate import routines for EXPGUI</A>
196<IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!">
197</H3>
198Currently two formats are supported, the Crystallographic Information File (CIF)
199and .CEL files from PowderCell.
200It is possible to define new formats for EXPGUI to use for importing
201phase/coordinate information. This is done by creating a file named
202<TT>import_</TT><I>xxxx</I><TT>.tcl</TT> (where <I>xxxx</I> is arbitrary)
203in the EXPGUI directory. See the file <TT>import_cell.tcl</TT> as an example.
204
205The file must contain four items:
206<UL>
207<LI>
208A description for the type of file to be read.
209<DL><DL><PRE>
210set description "PowderCell .CEL file"
211</PRE></DL>
212The text should not be too long, but use a return (\n) if needed:
213<DL><PRE>
214set description "My favorite coordinate\nfile from the GIGO pkg"
215</PRE></DL></DL>
216This description text shows up on the button for selecting a format.
217<P>
218<LI>
219A list of preferred file extensions.
220<DL><DL><PRE>
221set extensions .cel
222</PRE></DL>
223or
224<DL><PRE>
225set extensions {.jnk .junk}
226</PRE></DL></DL>
227In UNIX upper and lower case
228versions will be generated automatically, so do not worry about
229the case of the extension. Note that "*" (all files) is always added as well.
230<P>
231<LI>
232The name of the routine that will read the data file
233<DL><DL><PRE>
234set procname ReadPowderCellFile
235</PRE></DL></DL>
236<LI>
237A routine that takes the file name as an argument
238<DL><DL><PRE>
239proc ReadPowderCellFile {filename} {
240</PRE></DL></DL>
241and returns a list containing the following four items
242<OL>
243<P><LI>Space Group
244<DL><DL>
245The space group should be named and spaced appropriately for GSAS,
246e.g. P 21/c or P 21 21 21, not P21/c or P212121.
247</DL></DL>
248Note that GSAS requires that if a center of symmetry is present,
249this center defines the origin (Origin 2 settings, where more than one setting
250is given in the International Tables).
251<P><LI>Cell parameters
252<DL><DL>
253All six parameters should be specified in a list
254</DL></DL>
255<P><LI>Atom Coordinates
256<DL><DL>
257The atom coordinates should be specified as a list with a list element
258for each atom.
259The list contains the following items:
260<OL>
261<LI>Atom label
262<LI><I>x</I>
263<LI><I>y</I>
264<LI><I>z</I>
265<LI>Atom type
266<LI>Occupancy
267<LI>U<sub>iso</sub>
268</OL>
269If an item is not specified, it is left blank in the atom table, except for
270Occupancy and U<sub>iso</sub>, which default to 1.0 and 0.025, respectively.
271However, one must specify a null value, if an item will be skipped over.
272For example, use:
273<PRE>
274    "Li1 0 0 0 li 0.5"
275</PRE>
276or
277<PRE>
278    "{} 0 0 0 li 0.5"
279</PRE>
280but not
281<PRE>
282    "0 0 0 li 0.5"
283</PRE>
284
285</DL></DL>
286<P><LI>Warning Message (optional)
287<DL><DL>
288The warning message is displayed at the bottom of the
289Replace Atoms and Add Atoms box after the file is read. This can be used
290to warn the user about problems reading the file, for example if
291the space group symbol needs attention.
292</DL></DL>
293</OL>
294
295</UL>
296<HR><H3>LSTVIEW</H3>
297The <TT>localconfig</TT> and <TT>.gsas_config</TT> files are read, if present.
298The following options are available for customization in these files:
299<DL><DL>
300<DT><TT>txtvw(menulength)</TT><DD>
301This limits the number of entries that can
302exist in a menu. For example, the default is 25, so when more than 25 cycles
303are found in a .LST file, only the last 25 are listed in the
304"Go To"/cycle submenu.
305<DT><TT>txtvw(maxchars)</TT><DD>
306This limits the maximum number of
307characters that will be read from an existing .LST file to speed
308the start of the program. The default is ~1Mb
309for UNIX systems and ~200K for Windows.
310</DL></DL>
311
312The following variables are written to <tt>.gsas_config</tt> when
313"Save Options" is used. These variables can be set from the GUI and therefore
314do not need to be edited manually.
315
316<DL><DL>
317<DT><TT>txtvw(followcycle)</TT><DD>
318This sets the initial value for the
319"Auto Advance" button in the "Go To" menu. When this is true,
320the program will show the last cycle in the file. As new cycles are
321added, the "view" is advanced.
322
323<DT><TT>txtvw(font)</TT><DD>
324This sets the font used for LSTVIEW. See documentation on the font command in
325Tk for details on font naming.
326</DL></DL>
327
328One additional variable is present that I don't suggest using at present:
329<UL>
330<LI>plotvars: I am in the process of developing code that tracks
331and plots shifts and R values as a function cycle number. Setting plotvars to 1
332allows this code to be tested.
333</LI></UL>
334
335<hr><H3>LIVEPLOT</H3><A NAME="liveplot"></A>
336A description of the customization options for LIVEPLOT can be
337found in the
338<A HREF="liveplot.html#customize">
339LIVEPLOT description</A>.
340
341
342<HR>
343<H3>WIDPLT</H3>
344The widplt script is used to display the FWHM for one or more histograms
345from a .EXP file.
346At this point it only works for CW data.
347It is often convenient to add for reference the expected
348instrumental curves as options to the menu. This can be done by creating a
349file called widplot_<i>name</i>. For example, renaming the
350<tt>example_widplt_BT1</tt> file supplied with the distribution to
351<tt>widplt_BT1</tt> will cause the FWHM curves for the NIST BT-1 instrument
352to be added to the menu of defined FWHM values.
353<P>
354Creating such a file is easy. To add a entry define the following
355five array elements using a single, unique element name and then append that
356element name to variable datalist.
357Define
358<PRE>
359    set UVWP(Ge15) {398.5 -343.2  163.0 0}
360    set XY(Ge15) {0 0}
361    set wave(Ge15) 2.0775
362    set lblarr(Ge15) "BT-1 Ge(311) 15'"
363    set ttrange(Ge15) "5 160"
364    lappend datalist Ge15
365</PRE>
366Array element UVWP(item) contains the (Gaussian) GU, GV, GW and GP values,
367while XY(item) contains the (Lorentzian) LX and LY terms. Array element
368wave(item) contains a wavelength, array element lblarr(item) contains
369the text to be shown on the "Plot Contents" menu and ttrange(item)
370defines the range the function is valid.
371<P>
372The following variables are written to <tt>.gsas_config</tt> when
373"Save Options" is used. These variables are all set from the GUI and therefore
374do not need to be edited manually.
375
376<DL><DL>
377<DT><TT>graph(printout)</TT><DD>
378This is set to 1 if PostScript files
379will be printed and 0 if they will be written to disk (for Windows all
380files should be written to disk).
381
382<DT><TT>graph(outname)</TT><DD>
383This is the default for the file name used
384when PostScript files will be written to disk.
385
386<DT><TT>graph(outcmd)</TT><DD>
387This is the default for the command used
388to print PostScript files (Unix only).
389
390<DT><TT>graph(legend)</TT><DD>
391Sets the default value for display of the legend in liveplot and widplt.
392
393<DT><TT>graph(plotunits)</TT><DD>
394Sets the units used for displaying the data. Values are "d", "q", "",
395for d-space, Q and 2-theta, respectively.
396<DT><TT>graph(equivwave)</TT><DD>
397Sets the wavelength used for displaying data, if blank, no conversion is
398done and data are shown in their original wavelength.
399</DL></DL>
400
401<hr>
402<a name="Customizing"><H2>
403Customizing Example 1: Adding a new button to the button bar
404</H2></A>
405When a LeBail extraction is used to refine lattice constants, profile
406terms, ... It is always a good idea to run GENLES a few times after running
407POWPREF. This is because GENLES sets the extracted intensities back to their
408crystallographic values, during the first GENLES cycle after POWPREF has been
409run. Refining anything until the extracted intensities return to reasonable
410values is a really bad idea. Forturnately, running GENLES with the number of
411cycles set to zero gives the Le Bail extraction a head start.
412<P>
413The code below can be used to define a new command, <tt>leBail</tt>. The first
414command adds a command to the button bar and the second one defines what will
415be done when it is invoked (the number of cycles is set to zero and
416GENLES is run three times). It also defines the help entry. Note that commands must start with a lower case letter even though Armel LeBail's last name
417does not.
418
419<PRE>
420    lappend expgui(buttonlist) leBail
421    set expgui_cmdlist(leBail) {
422        {set entryvar(cycles) 0; runGSASwEXP "genles genles genles"}
423        {Converges GENLES with LeBail extractions;
424          Sets the number of cycles to zero and runs GENLES 3 times.}
425    }
426
427</PRE>
428To make this customization, put the above in the <TT>localconfig</TT> 
429file or the
430<TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>)
431file.
432<hr>
433<H2>
434Customizing Example 2: Putting DISAGL Results in a Separate Box
435</H2>
436Barbara Reisner has been asking me to put the output from DISAGL in a separate
437window. Sounds like a pretty reasonable request. Here is an example with code
438to do that as a customization option. Please note that this has now been
439incorporated into EXPGUI, so do not use this example.
440<PRE>
441  set expgui(disaglSeparateBox) 1
442  set expgui_cmdlist(disagl) {rundisagl {Hacked Distance/angle calculations}}
443  proc rundisagl {} {
444    global expgui txtvw tcl_version tcl_platform
445    if {$expgui(disaglSeparateBox) && $tcl_platform(platform) != "windows"} {
446        set root [file root $expgui(expfile)]
447        catch {file rename $root.LST $root.OLS}
448        runGSASwEXP disagl
449        catch {file rename $root.LST $root.DIS}
450        catch {file rename $root.OLS $root.LST}
451
452        # open a new window
453        catch {toplevel .disagl}
454        catch {eval grid forget [grid slaves .disagl]}
455        text .disagl.txt -width 100 -wrap none \
456                -yscrollcommand ".disagl.yscroll set" \
457                -xscrollcommand ".disagl.xscroll set"
458        if {$tcl_version >= 8.0} {.disagl.txt config -font $txtvw(font)}
459        scrollbar .disagl.yscroll -command ".disagl.txt yview"
460        scrollbar .disagl.xscroll -command ".disagl.txt xview" -orient horizontal
461        grid .disagl.xscroll -column 0 -row 2 -sticky ew
462        grid .disagl.txt -column 0 -row 1 -sticky nsew
463        grid .disagl.yscroll -column 1 -row 1 -sticky ns
464        grid columnconfigure .disagl 0 -weight 1
465        grid rowconfigure .disagl 1 -weight 1
466        wm title .disagl "DISAGL results $expgui(expfile)"
467        wm iconname .disagl "DISAGL $root"
468        set in [open $root.DIS r]
469        .disagl.txt insert end [read $in]
470        close $in
471        bind all <Control-KeyPress-c> {destroy .disagl}
472        bind .disagl <KeyPress-Prior> ".disagl.txt yview scroll -1 page"
473        bind .disagl <KeyPress-Next> ".disagl.txt yview scroll 1 page"
474        bind .disagl <KeyPress-Right> ".disagl.txt xview scroll 1 unit"
475        bind .disagl <KeyPress-Left> ".disagl.txt xview scroll -1 unit"
476        bind .disagl <KeyPress-Up> ".disagl.txt yview scroll -1 unit"
477        bind .disagl <KeyPress-Down> ".disagl.txt yview scroll 1 unit"
478        bind .disagl <KeyPress-Home> ".disagl.txt yview 0"
479        bind .disagl <KeyPress-End> ".disagl.txt yview end"
480        # don't disable in Win as this prevents the highlighting of selected text
481        if {$tcl_platform(platform) != "windows"} {
482            .disagl.txt config -state disabled
483        }
484    } else {
485        runGSASwEXP disagl
486    }
487  }
488
489if {$tcl_platform(platform) != "windows"} {
490  append expgui(initstring) {
491      $expgui(fm).option.menu add checkbutton  -label "DISAGL window" \
492              -variable expgui(disaglSeparateBox) -underline 0;
493  }
494}
495
496</PRE>
497To make this customization, put the above in the <TT>localconfig</TT> 
498file or the
499<TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>)
500file.
501<P>
502Note that the <tt>expgui(initstring)</tt> option became available in EXPGUI
503version 1.21. (Previous versions will ignore this). This code must be executed
504after all the menus and other GUI code has been run. When executed, it
505creates a checkbutton on the Options menu to
506turn the "separate DISAGL window mode" mode on and off.
507
508<hr><H2>
509Customizing Example 3: Adding a new page to EXPGUI
510</H2>
511The steps for creating support for additional functionality, implementation
512of atom constraints, is outlined here. Routines described here can be found in
513file <tt>atomcons.tcl</tt> unless otherwise noted.
514<OL>
515<LI>Create a routine to read and write the appropriate records
516from the .EXP file. In this case, a new routine, constrinfo,
517was added to file <tt>readexp.tcl</tt>.
518This takes considerable care and manual testing.
519<LI>Create a routine that places the appropriate widgets into a frame
520(in this case MakeAtomsConstraintsPane). This routine will be called only once.
521Note that in this example expcons(atommaster) is defined to be the name of the
522frame.
523<LI>Create a routine to display and edit the information shown in the
524frame. In this case, DisplayAtomConstraints. This routine will be called each
525time the page is displayed. Note that this routine and the previous can be
526tested in a separate toplevel until they work well.
527<LI>In this particular example, the previous frame is located on a notebook
528widget that in turn placed on a notebook page, so MakeConstraintsPane is used
529to create this inner notebook when the "Constraints" notebook page is first
530shown. This in turn calls MakeAtomsConstraintsPane and DisplayAtomConstraints.
531To update this page each time it is displayed, DisplayConstraintsPane is
532called.
533<LI>Edit file <tt>expgui</tt> to make the following changes:
534<UL>
535<P><LI>load the <tt>atomcons.tcl</tt> file:
536<PRE>
537# commands for constraints
538source [file join $expgui(scriptdir) atomcons.tcl]
539</PRE>
540<P><LI>Define a notebook page for the option. The -createcmd option
541is used only once, but the -raisecmd option is used every time
542the page is exposed.
543<PRE>
544set expgui(consFrame) [\
545            .n insert end consPane -text Constraints \
546            -raisecmd "set expgui(pagenow) consFrame; DisplayConstraintsPane"\
547            -createcmd MakeConstraintsPane]
548lappend expgui(frameactionlist) "consFrame DisplayConstraintsPane"
549</PRE>
550Note that if we were displaying the atoms constraint page directly on
551the main notebook widget, the previous command would have been
552<tt>-raisecmd DisplayAtomConstraints -createcmd MakeAtomsConstraintsPane</tt>
553<P>
554Since the frame will need to be updated when information in the .EXP file
555changes, the name of the frame and a command to execute are added into list
556expgui(frameactionlist) using the <TT>lappend expgui(frameactionlist)</TT>
557command.
558</PRE>
559</UL>
560</OL>
561
562<hr><H2>
563Customizing Example 4: Changing the fonts used in the GUI
564</H2>
565<B>Question: </B>
566<I>I am not happy with the fonts available via the Option/Screen Font
567menu option. Is there a way to select different font size(s)/families?
568</I>
569<UL>
570<B>Answer: </B>
571The fonts used in EXPGUI can be customized by adding some code to the
572<TT>localconfig</TT> file or the
573<TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>) file.
574By default, fonts are 14 point for the menus, buttons, labels,... and
57512 point for the histogram and atom lists.
576<P>
577If you add a command like this:
578<UL><PRE>
579option add *Coord.Listbox.Font "Courier -18 bold italic" 20
580</PRE></UL>
581<P>
582you will override the menu command and force the atom coordinates
583to be displayed at 18 points in a bold & italicied Courier font.
584(See the Tk documentation if this is not clear). The value 20 is a
585priority, which overrides the priority value of 10 in the
586standard initialization. Here are the options that can be specified:
587<DL><DL>
588<DT><TT>*Graph*Font</TT><DD>Used for Graph labels
589<DT><TT>*Graph.font</TT><DD>Used for Graph title
590<DT><TT>*Canvas.font</TT><DD>Used for notebook tabs
591<DT><TT>*Button.font</TT><DD>Used on most buttons
592<DT><TT>*Menu.font</TT><DD>Used on menu commands
593<DT><TT>*Menubutton.font</TT><DD>Used on "menu buttons" (e.g. Print options)
594<DT><TT>*Label.font</TT><DD>Used on labels
595<DT><TT>*Scale.font</TT><DD>Used on sliders (e.g. Marquardt damping)
596<DT><TT>*TitleFrame.font</TT><DD>Used on title frames (e.g. box labels such as
597the "Diffractometer Constants" label
598<DT><TT>*SmallFont.Button.font</TT><DD>Used for buttons with smaller letters
599<DT><TT>*Coord.Listbox.font</TT><DD>Used for coordinate listings, best as a
600mono-spaced font, such as Courier
601<DT><TT>*HistList.Listbox.font</TT><DD>Used for histogram listings
602<DT><TT>*MonoSpc.Label.font</TT><DD>Used in other places where a mono-spaced
603font is required
604</DL></DL>
605It should be noted that the appearance of fonts depends on many factors --
606the fonts installed on your computer, the screen size and resolution and your
607eyes, so it is wise to experiment with different values.
608</UL>
609<hr>
610<TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT>
611<TR><TH><A  Href="expgui.html">EXPGUI top</A> 
612</TH></TR></TABLE><BR CLEAR=ALL>
613
614<A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html">
615GSAS</A>
616is written by Allen C. Larson and <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://lansce.lanl.gov/lujan/staff12/vondreele.htm">
617Robert B. Von Dreele</A>, MS-H805,
618Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions
619or kudos concerning GSAS should be sent to Robert B. Von Dreele at <A HREF="MAILTO:vondreele@lanl.gov">vondreele@lanl.gov</A>
620
621<P>This GUI is written by Brian H. Toby of the NIST Center for Neutron Research,
622<A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV</A>.
623
624<P>GSAS is Copyright, 1984-1997, The Regents of the University of California.
625The GSAS software was produced under a U.S. Government contract (W-7405-ENG-36)
626by the Los Alamos National Laboratory, which is operated by the University
627of California for the U.S. Department of Energy. The U.S. Government is
628licensed to use, reproduce, and distribute this software. Permission is
629granted to the public to copy and use this software without charge, provided
630that this notice and any statement of authorship are reproduced on all
631copies. Neither the Government nor the University makes any warranty, express
632or implied, or assumes any liability or responsibility for the use of this
633software.
634
635<P>The GUI is not subject to copyright. Have fun.
636
637<P>Brian Toby (<A HREF="MAILTO:Brian.Toby@NIST.GOV">Brian.Toby@NIST.GOV)</A>
638<BR>
639$Revision: 461 $ $Date: 2009-12-04 23:06:33 +0000 (Fri, 04 Dec 2009) $
640</BODY>
641</HTML>
Note: See TracBrowser for help on using the repository browser.