PRE>
library viewer
library ansic    # Not all VILFile libraries will use ansic, but 
                 # our example code does.  (It uses strncpy())

resource THEVIEWERUI           object read-only shared

export TVOPEN
export TVDETACH
export TVCHANGEDOCUMENT
export TVCLOSE

export MyViewerDialogClass
</PRE>

<H3>Declaring UI</H3>

<A NAME="FSLib.htm_ViewerDialog"></A>

<P>The typical VILFile library will use UI gadgetry to display the 
   contents of a document.  The top object of this gadgetry should 
   