home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / samples.z / Modal.wxf < prev    next >
Encoding:
Text File  |  1996-05-07  |  2.5 KB  |  142 lines

  1. Save Format v1.3
  2. @begin Form "Modal"
  3.  Exported 0;
  4.  
  5.  @begin Object "WDialog"
  6.   WSCaption 1;
  7.   WSDlgBorder 1;
  8.   WSSysMenu 1;
  9.   WSSystemMenu 1;
  10.   WSMinimizeBox 1;
  11.   WSMaximizeBox 1;
  12.   WSGroup 1;
  13.   WSTabStop 1;
  14.   WSVisible 1;
  15.   FormPositionType "DesignTime";
  16.   FormAbsTop "251";
  17.   FormAbsLeft "5";
  18.   FDXStructName "Form3FDXStruct";
  19.   Font "8.MS Sans Serif";
  20.   Text "Modal Dialog";
  21.   @begin UserFunction "Modal()"
  22.    Compiler 1;
  23.    GencodeSrcLine 128;
  24.    FunctionName "Modal::Modal()";
  25.   @end;
  26.   @begin UserFunction "~Modal()"
  27.    Compiler 1;
  28.    GencodeSrcLine 132;
  29.    FunctionName "Modal::~Modal()";
  30.   @end;
  31.   ResID 103;
  32.   DesignName Modal;
  33.   TabIndex 0;
  34.   DesignRect 5,251,199,72;
  35.  @end;
  36.  
  37.  @begin Object "WLabel"
  38.   WSSNotify 1;
  39.   WSChild 1;
  40.   WSExClientEdge 1;
  41.   WSVisible 1;
  42.   Text "This is a modal dialog.  This form is created when the 'Modal' button on the main form is clicked.  The main form creates this dialog using a 'Form Proxy'";
  43.   ResID 101;
  44.   DesignName description;
  45.   TabIndex 0;
  46.   DesignRect 5,5,140,45;
  47.  @end;
  48.  
  49.  @begin Object "WCommandButton"
  50.   WSChild 1;
  51.   WSMaximizeBox 1;
  52.   WSTabStop 1;
  53.   WSVisible 1;
  54.   Cancel "1";
  55.   Default "1";
  56.   Pressed "0";
  57.   FDXFieldName "cb_1_data";
  58.   FDXFieldType "WBool";
  59.   Text "OK";
  60.   @begin Event "Click"
  61.    GencodeSrcLine 136;
  62.    FunctionName "Modal::ok_Click";
  63.   @end;
  64.   ResID 102;
  65.   DesignName ok;
  66.   TabIndex 1;
  67.   DesignRect 150,5,40,14;
  68.  @end;
  69.  
  70.  @begin HPPPrefixBlock
  71. @begin-code HPPPrefix
  72.  
  73. // Declarations added here will be included at the top of the .HPP file
  74.  
  75. @end-code;
  76.   GencodeSrcLine 10;
  77.  @end;
  78.  
  79.  @begin CPPPrefixBlock
  80. @begin-code CPPPrefix
  81.  
  82. // Code added here will be included at the top of the .CPP file
  83.  
  84. //  Include definitions for resources.
  85. #include "WRes.h"
  86.  
  87. @end-code;
  88.   GencodeSrcLine 10;
  89.  @end;
  90.  
  91.  @begin ClassContentsBlock
  92. @begin-code ClassContents
  93.  
  94.     public:
  95.         // add your public instance data here
  96.     private:
  97.         // add your private instance data here
  98.     protected:
  99.         // add your protected instance data here
  100.  
  101. @end-code;
  102.   GencodeSrcLine 43;
  103.  @end;
  104.  
  105. @begin-code GeneratedClassContents
  106.  
  107.         Modal();
  108.         ~Modal();
  109.  
  110. @end-code;
  111.  
  112. @begin-code Code "Modal::Modal()"
  113.  
  114. Modal::Modal()
  115. {
  116.     
  117. }
  118.  
  119. @end-code;
  120.  
  121. @begin-code Code "Modal::~Modal()"
  122.  
  123. Modal::~Modal()
  124. {
  125.     
  126. }
  127.  
  128. @end-code;
  129.  
  130. @begin-code Code "Modal::ok_Click"
  131.  
  132. WBool Modal::ok_Click(
  133.     WObject *           source,
  134.     WEventData *        event )
  135. {
  136.     Close();
  137.     return FALSE;
  138. }
  139.  
  140. @end-code;
  141. @end;
  142.