<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95 (Thu Jan 19 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE> Quick Reference</TITLE>
</HEAD>
<BODY>
<meta name="description" value=" Quick Reference">
<meta name="keywords" value="vwebref">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
 <BR> <HR><A NAME=tex2html1488 HREF="node14.html"><IMG ALIGN=BOTTOM ALT="next" SRC="../icons/next.gif"></A>   <A NAME=tex2html1486 HREF="vwebref.html"><IMG ALIGN=BOTTOM ALT="up" SRC="../icons/up.gif"></A>   <A NAME=tex2html1480 HREF="node12.html"><IMG ALIGN=BOTTOM ALT="gif" SRC="../icons/prev.gif"></A>   <A NAME=tex2html1490 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="../icons/contents.gif"></A>      <BR>
<B> Next:</B> <A NAME=tex2html1489 HREF="node14.html"> V Programming Tools</A>
<B>Up:</B> <A NAME=tex2html1487 HREF="vwebref.html">V Reference Manual</A>
<B> Previous:</B> <A NAME=tex2html1481 HREF="node12.html"> C++ Coding Style </A>
<BR> <HR> <P>
<H1><A NAME=SECTION001300000000000000000> Quick Reference</A></H1>
<P>

<H1><A NAME=SECTION001310000000000000000> CommandObject</A></H1>
<P>
<PRE>//  CommandObject: &quot;#include &lt;v/v_defs.h&gt;&quot;

typedef struct CommandObject
  {
    CmdType cmdType;    // what kind of item is this
    ItemVal cmdId;      // unique id for the item
    ItemVal retVal;     // value returned when picked
    char* title;        // string
    void* itemList;     // used when cmd needs a list
    CmdAttribute attrs; // list of attributes
    int Sensitive;      // if item is sensitive or not
    ItemVal cFrame;     // Frame used for an item
    ItemVal cRightOf;   // Item placed left of this id
    ItemVal cBelow;     // Item placed below this one
    int size;           // Used for size information
  } CommandObject;
</PRE>
<P>
<H2><A NAME=SECTION001311000000000000000> CmdType</A></H2>
<P>
<PRE>                   (with suggested prefix for id names)
    C_EndOfList:   Used to denote end of command list
    C_Blank:       filler to help RightOfs, Belows work (blk)
    C_BoxedLabel:  a label with a box (bxl)
    C_Button:      Button (btn)
    C_CheckBox:    Checked Item (chk)
    C_ColorButton: Colored button (cbt)
    C_ColorLabel:  Colored label (clb)
    C_ComboBox:    Popup combo list (cbx)
    C_Frame:       General purpose frame (frm)
    C_Icon:        a display only Icon (ico)
    C_IconButton:  a command button Icon (icb)
    C_Label:       Regular text label (lbl)
    C_List:        List of items (lst)
    C_ProgressBar: Bar to show progress (pbr)
    C_RadioButton: Radio button (rdb)
    C_Slider:      Slider to enter value (sld)
    C_Spinner:     Spinner value entry (spn)
    C_TextIn:      Text input field (txi)
    C_Text:        wrapping text out (txt)
    C_ToggleButton: a toggle button (tbt)
    C_ToggleFrame: a toggle frame (tfr)
    C_ToggleIconButton:  a toggle Icon button (tib)
</PRE>
<P>
<H2><A NAME=SECTION001312000000000000000> CmdAttribute</A></H2>
<P>
<PRE>    CA_DefaultButton: Special Default Button
       [Used by: C_Button]
    CA_Hidden:        Starts out hidden
       [All controls]
    CA_Horizontal:    Horizontal orientation
       [C_ProgressBar, C_Slider]
    CA_Large:         Command larger than normal
       [C_List C_ProgressBar, C_Slider, C_Spinner, C_TextIn]
    CA_MainMsg:       Gets replacement message
       [C_Label]
    CA_NoBorder:      No border (frames, status bar)
       [C_Frame,C_ToggleFrame,C_Text,status bar]
    CA_NoLabel:       No label on progress bar
       [C_ProgressBar]
    CA_NoNotify:      Don't notify on all events
       [C_ComboBox,C_List,C_Spinner]
    CA_NoSpace:       No space between widgets
       [C_Frame,C_ToggleFrame]
    CA_None:          No special attributes
       [All controls]
    CA_Percent:       Use % on progress bar
       [C_ProgressBar]
    CA_Small:         Command smaller than normal
       [C_ProgressBar,C_TextIn]
    CA_Text:          A Text value box
       [C_Spinner]
    CA_Vertical:      Vertical orientation
       [C_ProgressBar, C_Slider]
</PRE>
<P>
<H2><A NAME=SECTION001313000000000000000> Useful symbolic values</A></H2>
<P>
<PRE>    NoList:           No list used
    NoFrame:          Not a member of a frame
    isSens:           Is sensitive
    notSens:          Not sensitive
    isChk:            Is checked
    notChk:           Not checked
    notUsed:          Not used
    noIcon:           No icon
</PRE>
<P>

<H1><A NAME=SECTION001320000000000000000> vApp</A></H1>
<P>
<PRE>//  vApp:  &quot;#include &lt;v/vapp.h&gt;&quot;

    class vApp : public vBaseItem
      {
      public:  //---------------------------------------- public
        vApp(char* appName);
        virtual ~vApp();

        // Methods to override

        virtual void AppCommand(vWindow* win, ItemVal id,
                                ItemVal retval, CmdType ctype);
        virtual void CloseAppWin(vWindow* win);
        virtual void Exit(void);
        virtual void KeyIn(vWindow* win, vKey key, unsigned int shift);
        virtual vWindow* NewAppWin(vWindow* win, char* name, int w, int h, 
                               vAppWinInfo* winInfo = 0);
        // Utility methods

        int DefaultHeight();
        int DefaultWidth();
        int IsRunning();
        void SendWindowCommandAll(ItemVal id, int val, CmdType ctype);
        void SetValueAll(ItemVal id, int val, ItemSetType setType);
        void SetStringAll(ItemVal id, char* str);
        const char* name();

        vAppWinInfo *getAppWinInfo(vWindow* Win);

        // platform dependent

        Display* display();           // To get the X display
        XtAppContext appContext();    // To get the context
      };

    extern vApp *theApp;     // Pointer to single global instance
    extern int AppMain(int argc, char** argv);  // Pseudo main program
</PRE>
<P>

<H1><A NAME=SECTION001330000000000000000> vBrush</A></H1>
<P>
<PRE>//  vBrush:  &quot;#include &lt;v/vbrush.h&gt;&quot;
    class vBrush
      {
      public:       //-------------------------------- public
        vBrush(unsigned int r = 0, unsigned int g = 0, unsigned int b = 0,
               int style = vSolid, int fillMode = vAlternate);
        ~vBrush();

        int operator ==(vBrush b2);
        int operator !=(vBrush b2);

        vColor GetColor();
        int GetFillMode();
        int GetStyle();
        void SetColor(vColor c);
        void SetFillMode(int fillMode);
        void SetStyle(int style);
      };
</PRE>
<P>

<H1><A NAME=SECTION001340000000000000000> vCanvasPane</A></H1>
<P>
<PRE>//  vCanvasPane:  &quot;#include &lt;v/vcanvas.h&gt;&quot;

    class vCanvasPane
      {
      public:   //---------------------------------------- public

        vCanvasPane(PaneType pt = P_Canvas);
        virtual ~vCanvasPane();

        virtual void ShowPane(int OnOrOff);

        // Cursor
        void SetCursor(VCursor id);
        VCursor GetCursor();
        void UnSetCursor(void);

        // Scrolling
        virtual void HPage(int Shown, int Top);
        virtual void VPage(int Shown, int Top);
        virtual void HScroll(int step);
        virtual void VScroll(int step);
        virtual void SetHScroll(int Shown, int Top);
        virtual void SetVScroll(int Shown, int Top);
        virtual int GetHScroll(int&amp; Shown, int&amp; Top);
        virtual int GetVScroll(int&amp; Shown, int&amp; Top);
        virtual void ShowHScroll(int OnOff);
        virtual void ShowVScroll(int OnOff);

        // Change messages
        virtual void FontChanged(vFont vf);

        // Events
        virtual void MouseDown(int x, int y, int button);
        virtual void MouseUp(int x, int y, int button);
        virtual void MouseMove(int x, int y, int button);
        virtual void EnterFocus();
        virtual void LeaveFocus();

        // Expose/redraw events
        virtual void Redraw(int x, int y, int width , int height);
        virtual void Resize(int newW, int newH);

        // Information
        virtual int GetWidth();
        virtual int GetHeight();

        // Drawing
        void Clear(void);
        virtual void ClearRect(int left, int top, int width, int height);
        virtual void DrawAttrText(int x, int y, char* text, const ChrAttr attr);
        virtual void DrawColorPoints(int x, int y, int nPoints, vColor* pts);
        virtual void DrawText(int x, int y, char* text);
        virtual void DrawEllipse(int x, int y, int width, int height);
        virtual void DrawIcon(int x, int y, vIcon&amp; icon);
        virtual void DrawLine(int x, int y, int xend , int yend);
        virtual void DrawPoint(int x, int y);
        virtual void DrawPolygon(int n, vPoint points[], int fillStyle = vAlternate);
        virtual void DrawRectangle(int x, int y, int width, int height);
        virtual void DrawRoundedRectangle(int x, int y, int width, int height, int radius);
        virtual void DrawRubberLine(int x, int y, int xend, int yend);
        virtual void DrawRubberEllipse(int x, int y, int width, int height);
        virtual void DrawRubberRectangle(int x, int y, int width, int height);
        virtual vBrush GetBrush(void);
        virtual void SetBrush(vBrush brush);
        virtual vFont GetFont(void);
        virtual void SetFont(vFont fnt);
        virtual int TextWidth(char* str);
        virtual int TextHeight(int&amp; ascent, int&amp; descent);
        vDC* GetDC();

        // Appearance
        virtual void SetScale(int mult, int div);
        virtual void GetScale(int&amp; mult, int&amp; div);
        virtual void SetBackground(vColor color);
        virtual void SetPen(vPen pen);
        vPen GetPen();
        void SetTranslate(int x, int y);
        void SetTransX(int x);
        void SetTransY(int y);
        void GetTranslate(int&amp; x, int&amp; y);
        int GetTransX();
        int GetTransY();

        // Platform dependent
        Widget DrawingWindow();
      };
</PRE>
<P>

<H1><A NAME=SECTION001350000000000000000> vCmdWindow</A></H1>
<P>
<PRE>//  vCmdWindow:  &quot;#include &lt;v/vcmdwin.h&gt;&quot;

    class vCmdWindow : public vWindow
      {
      public:           //----------------------------------- public
        vCmdWindow(char* name = &quot;+&quot;, int width = 0, int height = 0);
        virtual ~vCmdWindow();                         // Destructor

        virtual void CloseWin(void);    // callback for close button
      };
</PRE>
<P>

<H1><A NAME=SECTION001360000000000000000> vColor</A></H1>
<P>
<PRE>//  vColor:  &quot;#include &lt;v/vcolor.h&gt;&quot;

// Message constants for use in Color buttons (for color buttons, etc.)

        M_Black, M_Red, M_DimRed, M_Green, M_DimGreen, M_Blue, M_DimBlue,
        M_Yellow, M_DimYellow, M_Magenta, M_DimMagenta, M_Cyan, M_DimCyan,
        M_DarkGray, M_MedGray, M_White,
        M_ColorFrame

// Index constants into V &quot;standard&quot; color arrays: vStdColors, vColorNames.

        vC_Black, vC_Red, vC_DimRed, vC_Green, vC_DimGreen, vC_Blue, vC_DimBlue,
        vC_Yellow, vC_DimYellow, vC_Magenta, vC_DimMagenta, vC_Cyan, vC_DimCyan,
        vC_DarkGray, vC_MedGray, vC_White

    class vColor
      {
      public:    //---------------------------------------- public
        vColor(unsigned int rd = 0, unsigned int gr = 0, unsigned int bl = 0);
        ~vColor();

        int operator ==(vColor c2);
        int operator !=(vColor c2);
        int BitsOfColor();
        ResetColor(unsigned int rd = 0, unsigned int gr = 0, unsigned int bl = 0);
        Set(unsigned int rd = 0, unsigned int gr = 0, unsigned int bl = 0);
        Set(vColor&amp; c);
        void SetR(unsigned int rd = 0);
        void SetG(unsigned int gr = 0);
        void SetB(unsigned int bl = 0);

        unsigned int r();
        unsigned int g();
        unsigned int b();
      };

    extern vColor vStdColors[16];       // 16 &quot;standard&quot; colors
    extern char* vColorNames[16];       // and their names
</PRE>
<P>

<H1><A NAME=SECTION001370000000000000000> vDebugDialog</A></H1>
<P>
<PRE>//  vDebugDialog:  &quot;#include &lt;v/vdebug.h&gt;&quot;

    class vDebugDialog : public vModalDialog
      {
      public:    //---------------------------------------- public
        vDebugDialog(vBaseWindow* bw,char* title = &quot;Debugging Options&quot;);
        vDebugDialog(vApp* aw,char* title = &quot;Debugging Options&quot;);
        ~vDebugDialog();
        void SetDebug();
      };
</PRE>
<P>
<H2><A NAME=SECTION001371000000000000000> Command Line Switches</A></H2>
<P>
<DL ><DT>-vDebug SU<b>&lt;</b>list<b>&gt;</b>
<DD> Turn on System or User (or both) 
debug messages in list.
<DT>c
<DD> Command events (menu, dialog commands).
<DT>m
<DD> Mouse events.
<DT>w
<DD> Window events (resize, redraw).
<DT>b
<DD> Build events.
<DT>o
<DD> Other misc. events.
<DT>v
<DD> Bad values.
<DT>C
<DD> Constructors.
<DT>D
<DD> Destructors.
<DT>123
<DD> User items 1, 2, or 3.
<P>
 </DL>
<P>

<H1><A NAME=SECTION001380000000000000000> vDialog</A></H1>
<P>
<PRE>//  vDialog:  &quot;#include &lt;v/vdialog.h&gt;&quot;

    class vDialog
      {
      public:             //------------------------------------ public

        vDialog(vBaseWindow* creator, int modal = 0, char* title = &quot;&quot;);
        vDialog(vApp* creator, int modal = 0, char* title = &quot;&quot;);
        ~vDialog();

        WindowType wType();

        virtual void AddDialogCmds(CommandObject* cList);
        virtual void CancelDialog(void);
        virtual void CloseDialog(void);
        virtual void SetDialogTitle(char * title);
        virtual void DialogCommand(ItemVal id, ItemVal retval, CmdType ctype);
        virtual int GetTextIn(ItemVal id, char* strout, int maxlen);
        virtual int GetValue(ItemVal id);
        virtual void SetValue(ItemVal id, ItemVal val, ItemSetType setType);
        virtual void SetString(ItemVal id, char* str);
        int IsDisplayed(void);
        virtual void ShowDialog(const char* msg);
      };
</PRE>
<P>

<H1><A NAME=SECTION001390000000000000000> vFileSelect</A></H1>
<P>
<PRE>//  vFileSelect:  &quot;#include &lt;v/vfilesel.h&gt;&quot;

    class vFileSelect : protected vModalDialog
      {
      public:     //---------------------------------------- public
        vFileSelect(vBaseWindow* bw, char* title = &quot;File Select&quot;);
        vFileSelect(vApp* aw, char* title = &quot;File Select&quot;);
        ~vFileSelect();

        int FileSelect(const char* msg, char* filename, 
            const int maxlen, char** filter);
        int FileSelectSave(const char* msg, char* filename, 
            const int maxlen, char** filter);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013100000000000000000> vFont</A></H1>
<P>
<PRE>//  vFont:  &quot;#include &lt;v/vfont.h&gt;&quot;
    enum vFontID                // various font related ids
      {
        vfDefaultSystem,        // the default system font
        vfDefaultFixed,         // the system default fixed font
        vfDefaultVariable,      // the system default variable font
        vfSerif,                // serifed font - TimesRoman
        vfSansSerif,            // SansSerif - Swiss or Helvetica
        vfFixed,                // fixed font - Courier
        vfDecorative,           // decorative - dingbat
        vfOtherFont,            // for all other fonts
        vfNormal,               // normal style, weight
        vfBold,                 // boldface
        vfItalic,               // italic style
        vfEndOfList
      };

    class vFont         // make the font stuff a class to make it portable
      {
      public:           //---------------------------------------- public
        vFont(vFontID fam = vfDefaultFixed, int size = 10,
           vFontID sty = vfNormal, vFontID wt = vfNormal, int und = 0);
        ~vFont();

        vFontID GetFamily() { return _family; }
        int GetPointSize() { return _pointSize; }
        vFontID GetStyle() { return _style; }
        vFontID GetWeight() { return _weight; }
        int GetUnderlined() { return _underlined; }
        void SetFontValues(vFontID fam = vfDefaultFixed, int size = 10,
           vFontID sty = vfNormal, vFontID wt = vfNormal, int und = 0);
      };
#endif
</PRE>
<P>

<H1><A NAME=SECTION0013110000000000000000> vFontSelect</A></H1>
<P>
<PRE>//  vFontSelect:  &quot;#include &lt;v/vfontsel.h&gt;&quot;

    class vFontSelect : protected vModalDialog
      {
      public:       //---------------------------------------- public
        vFontSelect(vBaseWindow* bw, char* title = &quot;Select Font&quot;);
        vFontSelect(vApp* aw, char* title = &quot;Select Font&quot;);
       ~vFontSelect();

       int FontSelect(vFont&amp; font, const char* msg = &quot;Select Font&quot; );
      };
#endif
</PRE>
<P>

<H1><A NAME=SECTION0013120000000000000000> vIcon</A></H1>
<P>
<PRE>    // &lt;v/vicon.h&gt;

    class vIcon     // an icon
      {
      public:             //---------------------------------------- public
        vIcon(unsigned char* ic, int h, int w, int d = 1);
        ~vIcon();
        int height;             // height in pixels
        int width;              // width in pixels
        int depth;              // bits per pixel
        unsigned char* icon;    // ptr to icon array

      protected:        //--------------------------------------- protected
      private:          //--------------------------------------- private
      };
</PRE>
<P>

<H1><A NAME=SECTION0013130000000000000000> vMenu</A></H1>
<P>
<PRE>//  vMenu:  &quot;#include &lt;v/v_menu.h&gt;&quot;

    typedef struct vMenu
      {
        char* label;       // The label on the menu
        ItemVal menuId;    // A User assigned unique id
        unsigned
          sensitive : 1,   // If item is sensitive or not
          checked : 1;     // If item is checked or not
        char* keyLabel;    // Label for an accelerator key
        vKey accel;        // Value of accelerator key
        vMenu* SubMenu;    // Ptr to a submenu 
      } MenuItem;
</PRE>
<P>
<H2><A NAME=SECTION0013131000000000000000> Useful symbolic values</A></H2>
<P>
<PRE>    isSens:           Is sensitive
    notSens:          Not sensitive
    noSub:            No submenu
    isChk:            Is checked
    notChk:           Not checked
    noKey:            No accelerator specified
    noKeyLbl:         No accelerator label
</PRE>
<P>

<H1><A NAME=SECTION0013140000000000000000> vModalDialog</A></H1>
<P>
<PRE>//  vModalDialog:  &quot;#include &lt;v/vmodald.h&gt;&quot;

    class vModalDialog : public vDialog
      {
      public:   //---------------------------------------- public

        vModalDialog(vBaseWindow* creator, char* title = &quot;&quot;);
        vModalDialog(vApp* creator, char* title = &quot;&quot;);
        virtual ~vModalDialog();

        virtual ItemVal ShowModalDialog(const char* msg, ItemVal&amp; retval);

        // rest are inherited from vDialog
      };
</PRE>
<P>

<H1><A NAME=SECTION0013150000000000000000> vNoticeDialog</A></H1>
<P>
<PRE>//  vNoticeDialog:  &quot;#include &lt;v/vnotice.h&gt;&quot;

    class vNoticeDialog : protected vModalDialog
      {
      public:    //---------------------------------------- public
        vNoticeDialog(vBaseWindow* bw, char* title = &quot;Notice&quot;);
        vNoticeDialog(vApp* aw, char* title = &quot;Notice&quot;);
        ~vNoticeDialog();

        void Notice(char* msg);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013160000000000000000> vPen</A></H1>
<P>
<PRE>//  vPen:  &quot;#include &lt;v/vpen.h&gt;&quot;

    class vPen
      {
      public:    //---------------------------------------- public
        vPen(unsigned int r = 0, unsigned int g = 0,
             unsigned int b = 0, int width = 1, int style = vSolid);
        ~vPen();

        int operator ==(vPen p2);
        int operator !=(vPen p2);

        void SetStyle(int style);
        int GetStyle(void);
        void SetWidth(int width);
        int GetWidth();
        void SetColor(vColor c);
        vColor GetColor();
      };
</PRE>
<P>

<H1><A NAME=SECTION0013170000000000000000> vReplyDialog</A></H1>
<P>
<PRE>//  vReplyDialog:  &quot;#include &lt;v/vreply.h&gt;&quot;

    class vReplyDialog : protected vModalDialog
      {
      public:   //---------------------------------------- public
        vReplyDialog(vBaseWindow* bw, char* title = &quot;Reply&quot;);
        vReplyDialog(vApp *aw, char* title = &quot;Reply&quot;);

        int Reply(const char* msg, char* reply, const int maxlen);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013180000000000000000> vStatus</A></H1>
<P>
<PRE>//  vStatus:  &quot;#include &lt;v/v_defs.h&gt;&quot;

    typedef struct vStatus      // for status bars
      {
        char* label;            // text label
        ItemVal statId;         // id
        CmdAttribute attrs;     // attributes - CA_NoBorder, CA_None
        unsigned sensitive : 1; // if button is sensitive or not
        int width;              // to specify width (0 for default)
      } vButton;
</PRE>
<P>
<H2><A NAME=SECTION0013181000000000000000> Useful symbolic values</A></H2>
<P>
<PRE>    CA_NoBorder:      No border (frames, status bar)
    CA_None:          No special attributes
    isSens:           Is sensitive
    notSens:          Not sensitive
    noIcon:           No icon
</PRE>
<P>

<H1><A NAME=SECTION0013190000000000000000> vTextCanvasPane</A></H1>
<P>
<PRE>//  vTextCanvasPane:  &quot;#include &lt;v/vtextcnv.h&gt;&quot;

    class vTextCanvasPane : public vCanvasPane
      {
      public:  //---------------------------------------- public
        vTextCanvasPane();
        virtual ~vTextCanvasPane();

        // Window management/drawing

        virtual void Clear(void);
        virtual void ClearRow(const int r, const int c);
        virtual void ClearToEnd(const int r, const int c);
        int GetCols();
        int GetRows();
        void GetRC(int&amp; r, int&amp; c);
        void GotoRC(const int r, const int c);
        virtual void DrawAttrText(const char* text, const ChrAttr attr);
        virtual void DrawChar(const char chr, const ChrAttr attr);
        virtual void DrawText(const char* text);
        void HideTextCursor(void);
        void ShowTextCursor(void);

        // Scrolling
        void ScrollText(const int lineCount);

        // Events
        virtual void ResizeText(const int rows, const int cols);
        virtual void TextMouseDown(int row, int col, int button);
        virtual void TextMouseUp(int row, int col, int button);
        virtual void TextMouseMove(int row, int col, int button);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013200000000000000000> vTimer</A></H1>
<P>
<PRE>//  vTimer:  &quot;#include &lt;v/vtimer.h&gt;&quot;

    class vTimer
      {
      public:   //---------------------------------------- public
        vTimer();
        virtual ~vTimer();

        virtual int TimerSet(long interval);
        virtual void TimerStop(void);
        virtual void TimerTick(void);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013210000000000000000> V Utilities</A></H1>
<P>
<PRE>//  V Utilities:  &quot;#include &lt;v/vutil.h&gt;&quot;

    extern void LongToStr(long intg, char* str);
    extern void IntToStr(int intg, char* str);
    extern void vGetLocalTime(char* tm);
    extern void vGetLocalDate(char* tm);
</PRE>
<P>

<H1><A NAME=SECTION0013220000000000000000> vWindow</A></H1>
<P>
<PRE>//  vWindow:  &quot;#include &lt;v/vwindow.h&gt;&quot;

    enum WindowType
      { WINDOW, CMDWINDOW, DIALOG };  // Types of windows

    class vWindow
      {
      public:           //-------------------------------- public
        vWindow(char *name = &quot;+&quot;, int width = 0, int height = 0,
           WindowType wintype = WINDOW);    // Constructor

        virtual ~vWindow();                 // Destructor

        // Methods to Override

        virtual void KeyIn(vKey keysym, unsigned int shift);
        virtual void MenuCommand(ItemVal id);
        virtual void WindowCommand(ItemVal id, ItemVal retval, CmdType ctype);

        // Utility Methods

        const Widget vHandle();         // X only - native handle
        const char* name();             // the name set
        virtual void ShowWindow(void);
        WindowType wType();          // what kind of window we are

        virtual void AddPane(vPane* add_pane);
        virtual void CloseWin(void);
        virtual int GetValue(ItemVal id);
        virtual void RaiseWindow(void);
        virtual void SetString(ItemVal id, char* str);
        virtual void SetStringAll(ItemVal id, char* str);
        virtual void SetTitle(char* title);
        virtual void SetValue(ItemVal id, int val, ItemSetType setType);
        virtual void SetValueAll(ItemVal id, int val, ItemSetType setType);
        void ShowPane(vPane* wpane, int OnOrOff);
      };
</PRE>
<P>

<H1><A NAME=SECTION0013230000000000000000> vYNReplyDialog</A></H1>
<P>
<PRE>//  vYNReplyDialog:  &quot;#include &lt;v/vynreply.h&gt;&quot;

    class vYNReplyDialog : protected vModalDialog
      {
      public:     //---------------------------------------- public
        vYNReplyDialog(vBaseWindow* bw, char* title = &quot;Yes or No&quot;);
        vYNReplyDialog(vApp* aw, char* title = &quot;Yes or No&quot;);
        ~vYNReplyDialog();

        int AskYN(const char* msg);
      };
</PRE>
<P>
<BR> <HR>
<P><ADDRESS>
<I>Bruce Wampler <BR>
Thu Nov 14 09:25:45 MST 1996</I>
</ADDRESS>
</BODY>
