Changeset 144 for trunk


Ignore:
Timestamp:
Dec 4, 2009 5:01:08 PM (14 years ago)
Author:
toby
Message:

# on 2000/05/18 15:32:42, toby did:
add Tcl/tk logo, general editing
new example section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/expgui_cfg.html

    • Property rcs:date changed from 2000/05/17 20:27:05 to 2000/05/18 15:32:42
    • Property rcs:lines changed from +93 -21 to +23 -14
    • Property rcs:rev changed from 1.8 to 1.9
    r143 r144  
    1515ALIGN=LEFT></A>
    1616<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<hr>
     22
     23<CENTER>
    1724<H1>
    1825Customizing EXPGUI and Associated Programs</H1></CENTER>
     
    2128ways quite easily.
    2229This document describes how the GUI works and how to modify the menus without
    23 significant reprogramming. A little bit of programmaning in Tcl/Tk can go a
     30significant reprogramming. A little bit of programming in Tcl/Tk can go a
    2431long way in adding new features. See the
    2532<a HREF="#Customizing">Customizing</A> examples, below.
     
    6269button bar and definitions for each command. The contents of this file
    6370are designed to be modified and extended by users, either by editing the file,
    64 or by overridding definitions in the <TT>localconfig</TT> or
     71or by overriding definitions in the <TT>localconfig</TT> or
    6572<TT>.gsas_config</TT> files.
    6673
     
    228235
    229236<DT>peakinfo(min<i>n</i>) and peakinfo(max<i>n</i>)<DD>
    230 These variables dictact the placement vertical position for reflection
     237These variables dictate the placement vertical position for reflection
    231238markers, when manually placed (see expgui(autotick), below). To draw
    232239to the edge of the screen, use -Inf and Inf.
     
    513520to create this inner notebook when the "Constraints" notebook page is first
    514521shown. This in turn calls MakeAtomsConstraintsPane and DisplayAtomConstraints.
    515 No routine is needed to update this page each time the page
    516 is displayed.
     522To update this page each time it is displayed, DisplayConstraintsPane is
     523called.
    517524<LI>Edit file <tt>expgui</tt> to make the following changes:
    518525<UL>
    519526<P><LI>load the <tt>atomcons.tcl</tt> file:
    520527<PRE>
    521 # commands for costraints
     528# commands for constraints
    522529source [file join $expgui(scriptdir) atomcons.tcl]
    523530</PRE>
     
    528535set expgui(consFrame) [\
    529536            .n insert end consPane -text Constraints \
    530             -raisecmd "set expgui(pagenow) consFrame"\
     537            -raisecmd "set expgui(pagenow) consFrame; DisplayConstraintsPane"\
    531538            -createcmd MakeConstraintsPane]
     539lappend expgui(frameactionlist) "consFrame DisplayConstraintsPane"
    532540</PRE>
    533541Note that if we were displaying the atoms constraint page directly on
     
    535543<tt>-raisecmd DisplayAtomConstraints -createcmd MakeAtomsConstraintsPane</tt>
    536544<P>
    537 If the frame will need to be updated when histogram information changes,
    538 add the name of the frame and a command to execute into string
    539 expgui(frameactionlist), for example:
    540 <PRE>
    541     lappend expgui(frameactionlist) "consFrame DisplayConstraints"
     545Since the frame will need to be updated when information in the .EXP file
     546changes, the name of the frame and a command to execute are added into list
     547expgui(frameactionlist) using the <TT>lappend expgui(frameactionlist)</TT>
     548command.
    542549</PRE>
    543550</UL>
    544551</OL>
    545552<hr>
    546 GSAS is 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">
     553<A Href="http://www.ncnr.nist.gov/programs/crystallography/software/gsas.html">
     554GSAS</A>
     555is 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">
    547556Robert B. Von Dreele</A>, MS-H805,
    548557Los Alamos National Laboratory, Los Alamos, NM 87545. Problems, questions
Note: See TracChangeset for help on using the changeset viewer.