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

  1. Save Format v1.3
  2. @begin Form "TabForm1"
  3.  Exported 0;
  4.  
  5.  @begin Object "WModelessDialog"
  6.   WSChild 1;
  7.   WSVisible 1;
  8.   Font "8.MS Sans Serif";
  9.   FormPositionType "Centered";
  10.   @begin Event "Close"
  11.    GencodeSrcLine 142;
  12.    FunctionName "TabForm1::TabForm1_Close";
  13.   @end;
  14.   @begin Event "Create"
  15.    GencodeSrcLine 155;
  16.    FunctionName "TabForm1::TabForm1_Create";
  17.   @end;
  18.   @begin UserFunction "TabForm1()"
  19.    Compiler 1;
  20.    GencodeSrcLine 164;
  21.    FunctionName "TabForm1::TabForm1()";
  22.   @end;
  23.   @begin UserFunction "~TabForm1()"
  24.    Compiler 1;
  25.    GencodeSrcLine 168;
  26.    FunctionName "TabForm1::~TabForm1()";
  27.   @end;
  28.   ResID 103;
  29.   DesignName TabForm1;
  30.   TabIndex 0;
  31.   DesignRect 47,178,55,103;
  32.  @end;
  33.  
  34.  @begin Object "WColorWell"
  35.   WSClipSiblings 1;
  36.   WSChild 1;
  37.   WSVisible 1;
  38.   @begin Event "LeftButtonDown"
  39.    GencodeSrcLine 172;
  40.    FunctionName "TabForm1::cwell_1_LeftButtonDown";
  41.   @end;
  42.   @begin Event "RightButtonDown"
  43.    GencodeSrcLine 186;
  44.    FunctionName "TabForm1::cwell_1_RightButtonDown";
  45.   @end;
  46.   ResID 101;
  47.   DesignName cwell_1;
  48.   TabIndex 0;
  49.   DesignRect 0,0,55,75;
  50.  @end;
  51.  
  52.  @begin Object "WPictureBox"
  53.   WSSIcon 1;
  54.   WSSNotify 1;
  55.   WCCSTop 1;
  56.   WCCSNoMoveY 1;
  57.   WCCSBottom 1;
  58.   WSClipSiblings 1;
  59.   WSChild 1;
  60.   WSExStaticEdge 1;
  61.   WSVisible 1;
  62.   ResID 102;
  63.   DesignName pictb_2;
  64.   TabIndex 1;
  65.   DesignRect 28,80,27,20;
  66.   @begin ComponentData "pictb_2"
  67.    Picture "<no picture>";
  68.   @end;
  69.  @end;
  70.  
  71.  @begin Object "WPictureBox"
  72.   WSSIcon 1;
  73.   WSSNotify 1;
  74.   WCCSTop 1;
  75.   WCCSNoMoveY 1;
  76.   WCCSBottom 1;
  77.   WSClipSiblings 1;
  78.   WSChild 1;
  79.   WSExStaticEdge 1;
  80.   WSVisible 1;
  81.   ResID 103;
  82.   DesignName pictb_1;
  83.   TabIndex 2;
  84.   DesignRect 0,80,27,20;
  85.   @begin ComponentData "pictb_1"
  86.    Picture "<no picture>";
  87.   @end;
  88.  @end;
  89.  
  90.  @begin HPPPrefixBlock
  91. @begin-code HPPPrefix
  92.  
  93. // Declarations added here will be included at the top of the .HPP file
  94.  
  95. @end-code;
  96.   GencodeSrcLine 10;
  97.  @end;
  98.  
  99.  @begin CPPPrefixBlock
  100. @begin-code CPPPrefix
  101.  
  102. // Code added here will be included at the top of the .CPP file
  103. #include "Form1.hpp"
  104.  
  105. //  Include definitions for resources.
  106. #include "WRes.h"
  107.  
  108. @end-code;
  109.   GencodeSrcLine 10;
  110.  @end;
  111.  
  112.  @begin ClassContentsBlock
  113. @begin-code ClassContents
  114.  
  115.     public:
  116.         // add your public instance data here
  117.     private:
  118.         // add your private instance data here
  119.     protected:
  120.         // add your protected instance data here
  121.  
  122. @end-code;
  123.   GencodeSrcLine 48;
  124.  @end;
  125.  
  126. @begin-code GeneratedClassContents
  127.  
  128.         TabForm1();
  129.         ~TabForm1();
  130.  
  131. @end-code;
  132.  
  133. @begin-code Code "TabForm1::TabForm1()"
  134.  
  135. @@CLASSNAME@::@CLASSNAME@()
  136. {
  137.     
  138. }
  139.  
  140. @end-code;
  141.  
  142. @begin-code Code "TabForm1::~TabForm1()"
  143.  
  144. @@CLASSNAME@::~@CLASSNAME@()
  145. {
  146.     
  147. }
  148.  
  149. @end-code;
  150.  
  151. @begin-code Code "TabForm1::TabForm1_Close"
  152.  
  153. WBool @CLASSNAME@::TabForm1_Close(
  154.     WObject *           source,
  155.     WEventData *        event )
  156. {
  157.     extern WForm *__MainForm;
  158.  
  159.     Destroy();
  160.     if( (WForm*) this == __MainForm ) {
  161.         WAppObject.Quit();
  162.     }
  163.     
  164.     return FALSE;
  165. }
  166.  
  167. @end-code;
  168.  
  169. @begin-code Code "TabForm1::TabForm1_Create"
  170.  
  171. WBool @CLASSNAME@::TabForm1_Create(
  172.     WObject *                 source,
  173.     WCreateEventData *        event )
  174. {
  175.     pictb_1->SetBackColor( ((Form1 *)__MainForm)->getForeColor() );
  176.     pictb_2->SetBackColor( ((Form1 *)__MainForm)->getBackColor() );
  177.     
  178.     return FALSE;
  179. }
  180.  
  181. @end-code;
  182.  
  183. @begin-code Code "TabForm1::cwell_1_LeftButtonDown"
  184.  
  185. WBool @CLASSNAME@::cwell_1_LeftButtonDown(
  186.     WObject *                source,
  187.     WMouseEventData *        event )
  188. {
  189.     WPoint      selected;
  190.     int         itemNumber;
  191.     
  192.     selected = cwell_1->GetSelected();
  193.     itemNumber = selected.y * cwell_1->GetColumnCount() + selected.x;
  194.     ((Form1 *)__MainForm)->setForeColor( cwell_1->GetColor( itemNumber ) );
  195.     pictb_1->SetBackColor( ((Form1 *)__MainForm)->getForeColor() );
  196.     
  197.     return FALSE;
  198. }
  199.  
  200. @end-code;
  201.  
  202. @begin-code Code "TabForm1::cwell_1_RightButtonDown"
  203.  
  204. WBool @CLASSNAME@::cwell_1_RightButtonDown(
  205.     WObject *                source,
  206.     WMouseEventData *        event )
  207. {
  208.     WPoint      selected;
  209.     int         itemNumber;
  210.     
  211.     selected = cwell_1->GetSelected();
  212.     itemNumber = selected.y * cwell_1->GetColumnCount() + selected.x;
  213.     ((Form1 *)__MainForm)->setBackColor( cwell_1->GetColor( itemNumber ) );
  214.     pictb_2->SetBackColor( ((Form1 *)__MainForm)->getBackColor() );
  215.     
  216.     return FALSE;
  217. }
  218.  
  219. @end-code;
  220. @end;
  221.