home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / samples.z / TabForm5.wxf < prev    next >
Encoding:
Text File  |  1996-09-16  |  3.9 KB  |  213 lines

  1. Save Format v1.3
  2. @begin Form "TabForm5"
  3.  Exported 0;
  4.  
  5.  @begin Object "WModelessDialog"
  6.   WSChild 1;
  7.   WSExControlParent 1;
  8.   WSVisible 1;
  9.   Font "8.MS Sans Serif";
  10.   FormPositionType "Centered";
  11.   @begin Event "Create"
  12.    GencodeSrcLine 154;
  13.    FunctionName "TabForm5::TabForm5_Create";
  14.   @end;
  15.   @begin UserFunction "TabForm5()"
  16.    Compiler 1;
  17.    GencodeSrcLine 170;
  18.    FunctionName "TabForm5::TabForm5()";
  19.   @end;
  20.   @begin UserFunction "~TabForm5()"
  21.    Compiler 1;
  22.    GencodeSrcLine 174;
  23.    FunctionName "TabForm5::~TabForm5()";
  24.   @end;
  25.   ResID 104;
  26.   DesignName TabForm5;
  27.   TabIndex 0;
  28.   DesignRect 198,159,239,219;
  29.  @end;
  30.  
  31.  @begin Object "WLabel"
  32.   WSSLeftNoWordWrap 1;
  33.   WSSNotify 1;
  34.   WCCSNoResize 1;
  35.   WCCSNoParentAlign 1;
  36.   WSChild 1;
  37.   WSMinimizeBox 1;
  38.   WSGroup 1;
  39.   WSVisible 1;
  40.   Text "&2. Choose an output format.";
  41.   AutoSize "1";
  42.   ResID 101;
  43.   DesignName label_2;
  44.   TabIndex 0;
  45.   DesignRect 10,40,87,8;
  46.  @end;
  47.  
  48.  @begin Object "WListBox"
  49.   WLBSNotify 1;
  50.   WLBSHasStrings 1;
  51.   WLBSNoIntegralHeight 1;
  52.   WCCSTop 1;
  53.   WCCSNoDivider 1;
  54.   WSVScroll 1;
  55.   WSBorder 1;
  56.   WSChild 1;
  57.   WSMaximizeBox 1;
  58.   WSTabStop 1;
  59.   WSExClientEdge 1;
  60.   WSVisible 1;
  61.   @begin Event "Select"
  62.    GencodeSrcLine 178;
  63.    FunctionName "TabForm5::lb_OutputFormat_Select";
  64.   @end;
  65.   ResID 102;
  66.   DesignName lb_OutputFormat;
  67.   TabIndex 1;
  68.   DesignRect 10,50,215,75;
  69.   @begin ComponentData "lb_OutputFormat"
  70. @begin-code ListBoxInitialText
  71.  
  72. N:1.3E3R0P0
  73. N:$*.2(),R0
  74.  
  75. @end-code;
  76.   @end;
  77.  @end;
  78.  
  79.  @begin Object "WLabel"
  80.   WSSLeftNoWordWrap 1;
  81.   WSSNotify 1;
  82.   WCCSNoResize 1;
  83.   WCCSNoParentAlign 1;
  84.   WSChild 1;
  85.   WSVisible 1;
  86.   Text "&1. Type a number.";
  87.   AutoSize "1";
  88.   ResID 103;
  89.   DesignName label_Number;
  90.   TabIndex 2;
  91.   DesignRect 10,10,57,8;
  92.  @end;
  93.  
  94.  @begin Object "WMaskedTextBox"
  95.   WTextBoxAutoHScroll 1;
  96.   WSBorder 1;
  97.   WSChild 1;
  98.   WSMaximizeBox 1;
  99.   WSTabStop 1;
  100.   WSExClientEdge 1;
  101.   WSVisible 1;
  102.   InputMask "";
  103.   UseCurrentDate "0";
  104.   OutputFormat "";
  105.   PromptChar "'_'";
  106.   ResID 104;
  107.   DesignName mtextb_1;
  108.   TabIndex 3;
  109.   DesignRect 10,20,215,13;
  110.  @end;
  111.  
  112.  @begin HPPPrefixBlock
  113. @begin-code HPPPrefix
  114.  
  115. // Declarations added here will be included at the top of the .HPP file
  116.  
  117. @end-code;
  118.   GencodeSrcLine 11;
  119.  @end;
  120.  
  121.  @begin CPPPrefixBlock
  122. @begin-code CPPPrefix
  123.  
  124. // Code added here will be included at the top of the .CPP file
  125.  
  126. //  Include definitions for resources.
  127. #include "WRes.h"
  128.  
  129. @end-code;
  130.   GencodeSrcLine 10;
  131.  @end;
  132.  
  133.  @begin ClassContentsBlock
  134. @begin-code ClassContents
  135.  
  136.     public:
  137.         // add your public instance data here
  138.     private:
  139.         // add your private instance data here
  140.     protected:
  141.         // add your protected instance data here
  142.  
  143. @end-code;
  144.   GencodeSrcLine 49;
  145.  @end;
  146.  
  147. @begin-code GeneratedClassContents
  148.  
  149.         TabForm5();
  150.         ~TabForm5();
  151.  
  152. @end-code;
  153.  
  154. @begin-code Code "TabForm5::TabForm5()"
  155.  
  156. @@CLASSNAME@::@CLASSNAME@()
  157. {
  158.     
  159. }
  160.  
  161. @end-code;
  162.  
  163. @begin-code Code "TabForm5::~TabForm5()"
  164.  
  165. @@CLASSNAME@::~@CLASSNAME@()
  166. {
  167.     
  168. }
  169.  
  170. @end-code;
  171.  
  172. @begin-code Code "TabForm5::TabForm5_Create"
  173.  
  174. WBool @CLASSNAME@::TabForm5_Create(
  175.     WObject *               source,
  176.     WCreateEventData *      event )
  177. {
  178.     WString text;
  179.     
  180.     mtextb_1->SetInputMask( "*************************" );
  181.     
  182.     text = "N:$*.2(),R0";
  183.     lb_OutputFormat->Select( text );            
  184.     mtextb_1->SetOutputFormat( text );
  185.         
  186.     mtextb_1->SetText( "12345" );
  187.     
  188.     return FALSE;
  189. }
  190.  
  191. @end-code;
  192.  
  193. @begin-code Code "TabForm5::lb_OutputFormat_Select"
  194.  
  195. WBool @CLASSNAME@::lb_OutputFormat_Select(
  196.     WObject *           source,
  197.     WEventData *        event )
  198. {
  199.     WString text;
  200.     int     index;
  201.     
  202.     index = lb_OutputFormat->GetSelected();
  203.     if( index != -1 ) {
  204.         text = lb_OutputFormat->GetText( index );
  205.         mtextb_1->SetOutputFormat( text );
  206.     }
  207.     
  208.     return FALSE;
  209. }
  210.  
  211. @end-code;
  212. @end;
  213.