home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / samples.z / Textt.wxf < prev    next >
Encoding:
Text File  |  1996-06-10  |  5.1 KB  |  212 lines

  1. Save Format v1.3
  2. @begin Form "WinTextFileTips"
  3.  Exported 0;
  4.  
  5.  @begin Object "WDialog"
  6.   WSCaption 1;
  7.   WSSizeable 1;
  8.   WSDlgBorder 1;
  9.   WSSysMenu 1;
  10.   WSSystemMenu 1;
  11.   WSMinimizeBox 1;
  12.   WSMaximizeBox 1;
  13.   WSGroup 1;
  14.   WSTabStop 1;
  15.   WSResizeBorder 1;
  16.   WSVisible 1;
  17.   FormPositionType "Centered";
  18.   FormAbsTop "104";
  19.   FormAbsLeft "12";
  20.   FDXStructName "WinTextFileFDXStruct";
  21.   Font "8.MS Sans Serif";
  22.   Text "Using the Intersolv Text File ODBC Driver";
  23.   @begin Event "Create"
  24.    GencodeSrcLine 170;
  25.    FunctionName "WinTextFileTips::WinTextFileTips_Create";
  26.   @end;
  27.   @begin UserFunction "WinTextFileTips()"
  28.    Compiler 1;
  29.    GencodeSrcLine 184;
  30.    FunctionName "WinTextFileTips::WinTextFileTips()";
  31.   @end;
  32.   @begin UserFunction "~WinTextFileTips()"
  33.    Compiler 1;
  34.    GencodeSrcLine 188;
  35.    FunctionName "WinTextFileTips::~WinTextFileTips()";
  36.   @end;
  37.   ResID 107;
  38.   DesignName WinTextFileTips;
  39.   TabIndex 0;
  40.   DesignRect 8,103,260,265;
  41.  @end;
  42.  
  43.  @begin Object "WTextBox"
  44.   WTextBoxMultiLine 1;
  45.   WTextBoxAutoHScroll 1;
  46.   WTextBoxReadOnly 1;
  47.   WCCSNoResize 1;
  48.   WSHScroll 1;
  49.   WSVScroll 1;
  50.   WSBorder 1;
  51.   WSChild 1;
  52.   WSMinimizeBox 1;
  53.   WSGroup 1;
  54.   WSExClientEdge 1;
  55.   WSVisible 1;
  56.   FDXFieldName "textb_1_data";
  57.   FDXFieldType "WString";
  58.   ResID 101;
  59.   DesignName textb_1;
  60.   TabIndex 0;
  61.   DesignRect 5,5,240,219;
  62.  @end;
  63.  
  64.  @begin Object "WCommandButton"
  65.   WSChild 1;
  66.   WSMaximizeBox 1;
  67.   WSTabStop 1;
  68.   WSVisible 1;
  69.   Pressed "0";
  70.   FDXFieldName "cb_1_data";
  71.   FDXFieldType "WBool";
  72.   Text "&Help";
  73.   @begin Event "Click"
  74.    GencodeSrcLine 192;
  75.    FunctionName "WinTextFileTips::cb_TextTips_help_Click";
  76.   @end;
  77.   ResID 102;
  78.   DesignName cb_TextTips_help;
  79.   TabIndex 1;
  80.   DesignRect 200,229,45,14;
  81.  @end;
  82.  
  83.  @begin HPPPrefixBlock
  84. @begin-code HPPPrefix
  85.  
  86. // Declarations added here will be included at the top of the .HPP file
  87.  
  88. @end-code;
  89.   GencodeSrcLine 10;
  90.  @end;
  91.  
  92.  @begin CPPPrefixBlock
  93. @begin-code CPPPrefix
  94.  
  95. // Code added here will be included at the top of the .CPP file
  96.  
  97. //  Include definitions for resources.
  98. #include "WRes.h"
  99.  
  100. #include "applic.hpp"
  101.  
  102. static WChar *Tips[]={
  103.     "- This example uses the Intersolv 'OEM 2.12 32-Bit Text (*.*)'",
  104.     "  ODBC driver. This driver can be used with text files",
  105.     "  in a variety of formats (comma delimited, fixed, etc). The file",
  106.     "  in this example is delimited with '#' characters.",
  107.     "",
  108.     "- The Intersolv Text File driver does not support bound updates.",
  109.     "  That's the reason why the rows appear as read-only.",
  110.     "  You must execute Insert and Update statements to change",
  111.     "  data in tables.",
  112.     "",
  113.     "- Enter the name of the text file for the name of the table in",
  114.     "  the SQL statement. The directory the Intersolv driver uses",
  115.     "  to find the file is specified by the setting of the 'database'",
  116.     "  option in the ODBC Administrator. Alternatively, set the 'database'",
  117.     "  connection parameter in the transaction object to the directory",
  118.     "  containing the text file named in the SQL query.",
  119.     "",
  120.     "- You cannot specify the filename of the text file in the 'database'",
  121.     "  setting of the ODBC Administrator or the connection parameter",
  122.     "  of the transaction object. The text file is specified as",
  123.     "  the table name in the SQL statement.",
  124.     "",
  125.     "- All columns will display in the text box as strings rather than its",
  126.     "  native type since text box can only display strings.",
  127.     "",
  128.     "- The Intersolv Excel driver does not contain enough ODBC 2.0 support",
  129.     "  to enable the Optima++ SQL query editor to work properly. Queries",
  130.     "  can be entered manually and tested in the properties page of the",
  131.     "  query object.",
  132.  
  133.     NULL
  134. };
  135.     
  136.  
  137. @end-code;
  138.   GencodeSrcLine 10;
  139.  @end;
  140.  
  141.  @begin ClassContentsBlock
  142. @begin-code ClassContents
  143.  
  144.     public:
  145.         // add your public instance data here
  146.     private:
  147.         // add your private instance data here
  148.     protected:
  149.         // add your protected instance data here
  150.  
  151. @end-code;
  152.   GencodeSrcLine 44;
  153.  @end;
  154.  
  155. @begin-code GeneratedClassContents
  156.  
  157.         WinTextFileTips();
  158.         ~WinTextFileTips();
  159.  
  160. @end-code;
  161.  
  162. @begin-code Code "WinTextFileTips::WinTextFileTips()"
  163.  
  164. WinTextFileTips::WinTextFileTips()
  165. {
  166.     
  167. }
  168.  
  169. @end-code;
  170.  
  171. @begin-code Code "WinTextFileTips::~WinTextFileTips()"
  172.  
  173. WinTextFileTips::~WinTextFileTips()
  174. {
  175.     
  176. }
  177.  
  178. @end-code;
  179.  
  180. @begin-code Code "WinTextFileTips::WinTextFileTips_Create"
  181.  
  182. WBool WinTextFileTips::WinTextFileTips_Create(
  183.     WObject *                 source,
  184.     WCreateEventData *        event )
  185. {
  186.     int                     i;
  187.     WString                 str;
  188.     
  189.     for( i = 0; Tips[i] != NULL; ++i ) {
  190.         str.Concatf( "%s\r\n", Tips[i] );
  191.     }
  192.     textb_1->SetText( str );
  193.     
  194.     return FALSE;
  195. }
  196.  
  197. @end-code;
  198.  
  199. @begin-code Code "WinTextFileTips::cb_TextTips_help_Click"
  200.  
  201. WBool WinTextFileTips::cb_TextTips_help_Click(
  202.     WObject *           source,
  203.     WEventData *        event )
  204. {
  205.     Application->InvokeHelp( this, WHelpContents, 0, "wotxt09.hlp", GetHandle() );
  206.     
  207.     return FALSE;
  208. }
  209.  
  210. @end-code;
  211. @end;
  212.