Commit b82b2db7 authored by Hiroshi Inoue's avatar Hiroshi Inoue

An improvement of User Interface(Setup dialog) by Dave Page.

parent 59e5d516
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
PSQLODBC.DLL - A library to talk to the PostgreSQL DBMS using ODBC. PSQLODBC.DLL - A library to talk to the PostgreSQL DBMS using ODBC.
Copyright (C) 1998; Insight Distribution Systems Copyright (C) 1998 Insight Distribution Systems
Copyright (C) 1998 - 2002 The PostgreSQL Global Development Group
Multibyte support was added by Sankyo Unyu Service, (C) 2001.
The code contained in this library is based on code written by The code contained in this library is based on code written by
Christian Czezatke and Dan McGuirk, (C) 1996. Christian Czezatke and Dan McGuirk, (C) 1996.
...@@ -26,9 +29,9 @@ ...@@ -26,9 +29,9 @@
02139, USA. 02139, USA.
How to contact the author: How to contact the authors:
email: byronn@insightdist.com (Byron Nikolaidis) email: pgsql-odbc@postgresql.org
***********************************************************************/ ***********************************************************************/
......
//Microsoft Developer Studio generated resource script. //Microsoft Developer Studio generated resource script.
// //
#include "resource.h" #include "resource.h"
#include "version.h"
#define APSTUDIO_READONLY_SYMBOLS #define APSTUDIO_READONLY_SYMBOLS
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
...@@ -9,12 +8,13 @@ ...@@ -9,12 +8,13 @@
// Generated from the TEXTINCLUDE 2 resource. // Generated from the TEXTINCLUDE 2 resource.
// //
#include "afxres.h" #include "afxres.h"
#include "version.h"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS #undef APSTUDIO_READONLY_SYMBOLS
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources // p (ض) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32 #ifdef _WIN32
...@@ -36,6 +36,7 @@ END ...@@ -36,6 +36,7 @@ END
2 TEXTINCLUDE DISCARDABLE 2 TEXTINCLUDE DISCARDABLE
BEGIN BEGIN
"#include ""afxres.h""\r\n" "#include ""afxres.h""\r\n"
"#include ""version.h""\r\n"
"\0" "\0"
END END
...@@ -53,321 +54,158 @@ END ...@@ -53,321 +54,158 @@ END
// Dialog // Dialog
// //
#ifdef MULTIBYTE
DLG_CONFIG DIALOG DISCARDABLE 65, 43, 299, 113
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
WS_SYSMENU
CAPTION "PostgreSQL Driver Setup"
FONT 10, "Terminal"
BEGIN
RTEXT "&Data Source:",IDC_DSNAMETEXT,3,9,49,8,NOT WS_GROUP
EDITTEXT IDC_DSNAME,59,9,72,12,ES_AUTOHSCROLL | WS_GROUP
RTEXT "Des&cription:",IDC_DESCTEXT,135,10,49,8,NOT WS_GROUP
EDITTEXT IDC_DESC,185,10,110,25,ES_AUTOHSCROLL
RTEXT "Data&base:",IDC_STATIC,15,24,37,8,NOT WS_GROUP
EDITTEXT IDC_DATABASE,59,24,72,12,ES_AUTOHSCROLL
RTEXT "&Server:",IDC_STATIC,23,38,29,8,NOT WS_GROUP
EDITTEXT IDC_SERVER,59,38,72,12,ES_AUTOHSCROLL
RTEXT "&Port:",IDC_STATIC,161,38,21,8
EDITTEXT IDC_PORT,185,38,37,12,ES_AUTOHSCROLL
RTEXT "&User Name:",IDC_STATIC,11,53,41,8
EDITTEXT IDC_USER,59,53,72,12,ES_AUTOHSCROLL
RTEXT "Pass&word:",IDC_STATIC,145,53,37,8
EDITTEXT IDC_PASSWORD,185,53,72,12,ES_PASSWORD | ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,27,88,40,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,81,88,40,14
GROUPBOX "Options (Advanced):",IDC_OPTIONS,141,72,140,35,
BS_CENTER
PUSHBUTTON "DataSource",IDC_DATASOURCE,149,89,50,14
PUSHBUTTON "Global",IDC_DRIVER,221,88,50,14
CTEXT "Please supply any missing information needed to connect.",
DRV_MSG_LABEL,25,4,238,10
END
DLG_OPTIONS_DRV DIALOG DISCARDABLE 0, 0, 306, 226
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Advanced Options (Driver)"
FONT 10, "Terminal"
BEGIN
PUSHBUTTON "Page 1",IDPREVPAGE,10,1,40,15
PUSHBUTTON "Page 2",IDNEXTPAGE,50,1,40,15
CTEXT "Set your site's defaults (for new DSNs).",
DRV_MSG_LABEL2,15,1,270,10, SS_CENTER | WS_GROUP, WS_EX_STATICEDGE
CONTROL "Disable Genetic &Optimizer",DRV_OPTIMIZER,"Button",
BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,13,18,116,10
CONTROL "Comm&Log (C:\\psqlodbc.log)",DRV_COMMLOG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,164,18,120,10
CONTROL "&KSQO (Keyset Query Optimization)",DRV_KSQO,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,30,144,10
CONTROL "&ReadOnly (Default)",DRV_READONLY,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,164,31,88,10
CONTROL "Recognize Unique &Indexes",DRV_UNIQUEINDEX,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,42,112,10
CONTROL "P&arse Statements",DRV_PARSE,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,164,44,80,10
CONTROL "&Use Declare/Fetch",DRV_USEDECLAREFETCH,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,54,84,10
CONTROL "Cancel as FreeStmt (Exp)",DRV_CANCELASFREESTMT,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,164,57,112,10
CONTROL "Mylog(Debug ouput)",DRV_DEBUG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,164,70,112,10
GROUPBOX "Unknown Sizes",IDC_STATIC,13,81,175,24
CONTROL "Maximum",DRV_UNKNOWN_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP | WS_TABSTOP,21,89,44,10
CONTROL "Don't Know",DRV_UNKNOWN_DONTKNOW,"Button",
BS_AUTORADIOBUTTON | WS_TABSTOP,72,89,56,10
CONTROL "Longest",DRV_UNKNOWN_LONGEST,"Button",
BS_AUTORADIOBUTTON | WS_TABSTOP,135,89,44,10
GROUPBOX "Data Type Options",IDC_STATIC,13,109,282,23
CONTROL "Text as LongVarChar",DRV_TEXT_LONGVARCHAR,"Button",
BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,15,120,92,10
CONTROL "Unknowns as LongVarChar",DRV_UNKNOWNS_LONGVARCHAR,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,112,120,108,10
CONTROL "Bools as Char",DRV_BOOLS_CHAR,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,225,120,68,10
LTEXT "&Cache Size:",IDC_STATIC,15,138,45,8
EDITTEXT DRV_CACHE_SIZE,61,134,35,12,ES_AUTOHSCROLL
LTEXT "Max &Varchar:",IDC_STATIC,99,138,49,8
EDITTEXT DRV_VARCHAR_SIZE,149,134,35,12,ES_AUTOHSCROLL
LTEXT "Max Lon&gVarChar:",IDC_STATIC,192,138,65,8
EDITTEXT DRV_LONGVARCHAR_SIZE,259,134,35,12,ES_AUTOHSCROLL
LTEXT "SysTable &Prefixes:",IDC_STATIC,23,149,36,20
EDITTEXT DRV_EXTRASYSTABLEPREFIXES,61,158,75,12,ES_AUTOHSCROLL
LTEXT "Connect &Settings:",IDC_STATIC,22,170,35,20
EDITTEXT DRV_CONNSETTINGS,61,170,225,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "Close",IDOK,39,201,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,104,201,50,15
PUSHBUTTON "Apply",IDAPPLY,169,201,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,234,201,50,15
END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 226
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Advanced Options (DataSource)"
FONT 10, "Terminal"
BEGIN
PUSHBUTTON "Page 2",IDNEXTPAGE,50,1,40,15
PUSHBUTTON "Page 1",IDPREVPAGE,10,1,40,15
CONTROL "&ReadOnly",DS_READONLY,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,25,18,48,10
CONTROL "Row &Versioning",DS_ROWVERSIONING,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,129,18,72,10
CONTROL "Show System &Tables",DS_SHOWSYSTEMTABLES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,33,88,10
CONTROL "Disallow &Premature",DS_DISALLOWPREMATURE,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,129,33,86,10
CONTROL "LF <-> CR/LF convert",DS_LFCONVERSION,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,48,92,10
CONTROL "True is -1",DS_TRUEISMINUS1,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,129,48,86,10
CONTROL "(Trial) Updatable cursors",DS_UPDATABLECURSORS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,63,112,10
GROUPBOX "Int8 As",IDC_STATIC,23,79,235,25
CONTROL "default",DS_INT8_AS_DEFAULT,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,30,89,47,10
CONTROL "bigint",DS_INT8_AS_BIGINT,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
70,89,35,10
CONTROL "numeric",DS_INT8_AS_NUMERIC,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
107,89,40,10
CONTROL "varchar",DS_INT8_AS_VARCHAR,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
149,89,40,10
CONTROL "double",DS_INT8_AS_DOUBLE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
190,89,40,10
CONTROL "int4",DS_INT8_AS_INT4,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
227,89,28,10
GROUPBOX "Protocol",IDC_STATIC,23,109,180,25
CONTROL "7.X,6.4+",DS_PG64,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,33,119,47,10
CONTROL "6.3",DS_PG63,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
83,119,26,10
CONTROL "6.2",DS_PG62,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
133,119,26,10
GROUPBOX "OID Options",IDC_STATIC,23,129,180,25
CONTROL "Show &Column",DS_SHOWOIDCOLUMN,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,33,140,59,10
CONTROL "Fake &Index",DS_FAKEOIDINDEX,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,141,140,55,10
LTEXT "Connect &Settings:",IDC_STATIC,10,170,35,25
EDITTEXT DS_CONNSETTINGS,50,170,200,20,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "Close",IDOK,51,195,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,126,195,50,14
PUSHBUTTON "Apply",IDAPPLY,201,195,50,14
END
DLG_OPTIONS_GLOBAL DIALOG DISCARDABLE 0, 0, 306, 90
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Global settings"
FONT 10, "Terminal"
BEGIN
CTEXT "Logging before establishing connections(the default for new DSNs also)",
DRV_MSG_LABEL,25,15,238,10
CONTROL "Comm&Log (C:\\psqlodbc.log)",DRV_COMMLOG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,30,120,10
CONTROL "Mylog(C:\\mylog_xxxx.log Detailed debug output)",DRV_DEBUG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,45,200,10
DEFPUSHBUTTON "Save",IDOK,39,70,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,104,70,50,15
END
#else
DLG_CONFIG DIALOG DISCARDABLE 65, 43, 292, 116 DLG_CONFIG DIALOG DISCARDABLE 65, 43, 292, 116
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION |
WS_SYSMENU WS_SYSMENU
CAPTION "PostgreSQL Driver Setup" CAPTION "PostgreSQL ODBC Driver (psqlODBC) Setup"
FONT 8, "MS Sans Serif" FONT 10, "Terminal"
BEGIN BEGIN
RTEXT "&Data Source:",IDC_DSNAMETEXT,5,10,50,12,NOT WS_GROUP RTEXT "&Data Source",IDC_DSNAMETEXT,5,11,50,12,NOT WS_GROUP
EDITTEXT IDC_DSNAME,57,10,72,12,ES_AUTOHSCROLL | WS_GROUP EDITTEXT IDC_DSNAME,57,10,72,12,ES_AUTOHSCROLL | WS_GROUP
RTEXT "Des&cription:",IDC_DESCTEXT,135,10,39,12,NOT WS_GROUP RTEXT "Des&cription",IDC_DESCTEXT,134,11,39,12,NOT WS_GROUP
EDITTEXT IDC_DESC,175,10,108,12,ES_AUTOHSCROLL EDITTEXT IDC_DESC,175,10,108,12,ES_AUTOHSCROLL
RTEXT "Data&base:",IDC_STATIC,17,25,38,12,NOT WS_GROUP RTEXT "Data&base",IDC_STATIC,16,26,38,12,NOT WS_GROUP
EDITTEXT IDC_DATABASE,57,25,72,12,ES_AUTOHSCROLL EDITTEXT IDC_DATABASE,57,25,72,12,ES_AUTOHSCROLL
RTEXT "&Server:",IDC_STATIC,27,40,29,12,NOT WS_GROUP RTEXT "&Server",IDC_STATIC,26,41,29,12,NOT WS_GROUP
EDITTEXT IDC_SERVER,57,40,72,12,ES_AUTOHSCROLL EDITTEXT IDC_SERVER,57,40,72,12,ES_AUTOHSCROLL
RTEXT "&Port:",IDC_STATIC,153,40,22,12 RTEXT "&Port",IDC_STATIC,151,41,22,12
EDITTEXT IDC_PORT,175,40,37,12,ES_AUTOHSCROLL EDITTEXT IDC_PORT,175,40,37,12,ES_AUTOHSCROLL
RTEXT "&User Name:",IDC_STATIC,17,55,39,12 RTEXT "&User Name",IDC_STATIC,16,56,39,12
EDITTEXT IDC_USER,57,55,72,12,ES_AUTOHSCROLL EDITTEXT IDC_USER,57,55,72,12,ES_AUTOHSCROLL
RTEXT "Pass&word:",IDC_STATIC,141,55,34,12 RTEXT "Pass&word",IDC_STATIC,139,57,34,9
EDITTEXT IDC_PASSWORD,175,55,72,12,ES_PASSWORD | ES_AUTOHSCROLL EDITTEXT IDC_PASSWORD,175,55,72,12,ES_PASSWORD | ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,25,90,40,14,WS_GROUP DEFPUSHBUTTON "OK",IDOK,25,87,40,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,80,90,40,14 PUSHBUTTON "Cancel",IDCANCEL,80,87,40,14
GROUPBOX "Options (Advanced):",IDC_OPTIONS,140,74,140,35, GROUPBOX "Options",IDC_OPTIONS,140,74,140,35,BS_LEFT
BS_CENTER PUSHBUTTON "Datasource",IDC_DATASOURCE,159,87,50,14
PUSHBUTTON "DataSource",IDC_DATASOURCE,160,90,50,14 PUSHBUTTON "Global",IDC_DRIVER,220,87,50,14
PUSHBUTTON "Global",IDC_DRIVER,220,90,50,14 CTEXT "Please supply any missing information required to connect.",
CTEXT "Please supply any missing information needed to connect.", DRV_MSG_LABEL,36,2,220,10
DRV_MSG_LABEL,36,5,220,15
END END
DLG_OPTIONS_DRV DIALOG DISCARDABLE 0, 0, 287, 250 DLG_OPTIONS_DRV DIALOG DISCARDABLE 0, 0, 287, 231
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Advanced Options (Driver)" CAPTION "Advanced Options (DataSource)"
FONT 8, "MS Sans Serif" FONT 10, "Terminal"
BEGIN BEGIN
PUSHBUTTON "Page 1",IDPREVPAGE,10,1,40,15 PUSHBUTTON "Page 1",IDPREVPAGE,5,5,40,15
PUSHBUTTON "Page 2",IDNEXTPAGE,50,1,40,15 PUSHBUTTON "Page 2",IDNEXTPAGE,49,5,40,15
CTEXT "Set your site's defaults (for new DSNs).",
DRV_MSG_LABEL2,15,1,270,10, SS_CENTER | WS_GROUP, WS_EX_STATICEDGE
CONTROL "Disable Genetic &Optimizer",DRV_OPTIMIZER,"Button", CONTROL "Disable Genetic &Optimizer",DRV_OPTIMIZER,"Button",
BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,15,18,97,10 BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,15,26,116,10
CONTROL "Comm&Log (C:\\psqlodbc.log)",DRV_COMMLOG,"Button", CONTROL "Comm&Log (C:\\psqlodbc_xxxx.log)",DRV_COMMLOG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,140,18,113,10 BS_AUTOCHECKBOX | WS_TABSTOP,149,26,131,10
CONTROL "&KSQO (Keyset Query Optimization)",DRV_KSQO,"Button", CONTROL "&KSQO(Keyset Query Optimization)",DRV_KSQO,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,15,33,124,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,41,132,10
CONTROL "&ReadOnly (Default)",DRV_READONLY,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,140,33,80,10
CONTROL "Recognize Unique &Indexes",DRV_UNIQUEINDEX,"Button", CONTROL "Recognize Unique &Indexes",DRV_UNIQUEINDEX,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,15,48,101,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,56,110,10
CONTROL "P&arse Statements",DRV_PARSE,"Button",BS_AUTOCHECKBOX | CONTROL "P&arse Statements",DRV_PARSE,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,140,48,80,10 WS_TABSTOP,149,41,80,10
CONTROL "&Use Declare/Fetch",DRV_USEDECLAREFETCH,"Button", CONTROL "&Use Declare/Fetch",DRV_USEDECLAREFETCH,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,15,63,80,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,71,83,10
CONTROL "Cancel as FreeStmt (Exp)",DRV_CANCELASFREESTMT,"Button", CONTROL "Cancel as FreeStmt (Exp)",DRV_CANCELASFREESTMT,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,140,63,105,10 BS_AUTOCHECKBOX | WS_TABSTOP,149,56,114,10
CONTROL "Mylog(Debug ouput)",DRV_DEBUG,"Button", CONTROL "MyLog (C:\\mylog_xxxx.log)",DRV_DEBUG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,140,78,112,10 BS_AUTOCHECKBOX | WS_TABSTOP,149,71,112,10
GROUPBOX "Unknown Sizes",IDC_STATIC,10,93,175,25 GROUPBOX "Unknown Sizes",IDC_STATIC,5,85,277,25
CONTROL "Maximum",DRV_UNKNOWN_MAX,"Button",BS_AUTORADIOBUTTON | CONTROL "Maximum",DRV_UNKNOWN_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP | WS_TABSTOP,15,104,45,10 WS_GROUP | WS_TABSTOP,15,96,45,10
CONTROL "Don't Know",DRV_UNKNOWN_DONTKNOW,"Button", CONTROL "Don't Know",DRV_UNKNOWN_DONTKNOW,"Button",
BS_AUTORADIOBUTTON | WS_TABSTOP,70,104,53,10 BS_AUTORADIOBUTTON | WS_TABSTOP,105,96,53,10
CONTROL "Longest",DRV_UNKNOWN_LONGEST,"Button", CONTROL "Longest",DRV_UNKNOWN_LONGEST,"Button",
BS_AUTORADIOBUTTON | WS_TABSTOP,130,104,50,10 BS_AUTORADIOBUTTON | WS_TABSTOP,215,95,50,10
GROUPBOX "Data Type Options",IDC_STATIC,10,123,270,25 GROUPBOX "Data Type Options",IDC_STATIC,5,115,277,25
CONTROL "Text as LongVarChar",DRV_TEXT_LONGVARCHAR,"Button", CONTROL "Text as LongVarChar",DRV_TEXT_LONGVARCHAR,"Button",
BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,15,133,80,10 BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,15,125,90,10
CONTROL "Unknowns as LongVarChar",DRV_UNKNOWNS_LONGVARCHAR, CONTROL "Unknowns as LongVarChar",DRV_UNKNOWNS_LONGVARCHAR,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,105,133,100,10 "Button",BS_AUTOCHECKBOX | WS_TABSTOP,105,125,105,10
CONTROL "Bools as Char",DRV_BOOLS_CHAR,"Button",BS_AUTOCHECKBOX | CONTROL "Bools as Char",DRV_BOOLS_CHAR,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,215,133,60,10 WS_TABSTOP,215,125,67,10
LTEXT "&Cache Size:",IDC_STATIC,10,148,40,10 LTEXT "&Cache Size:",IDC_STATIC,14,183,52,8
EDITTEXT DRV_CACHE_SIZE,50,153,35,12,ES_AUTOHSCROLL EDITTEXT DRV_CACHE_SIZE,69,181,35,12,ES_AUTOHSCROLL
LTEXT "Max &Varchar:",IDC_STATIC,90,140,45,10 LTEXT "Max &Varchar:",IDC_STATIC,13,161,54,8
EDITTEXT DRV_VARCHAR_SIZE,135,153,35,12,ES_AUTOHSCROLL EDITTEXT DRV_VARCHAR_SIZE,70,160,35,12,ES_AUTOHSCROLL
LTEXT "Max Lon&gVarChar:",IDC_STATIC,180,140,60,10 LTEXT "Max Lon&gVarChar:",IDC_STATIC,125,161,67,8
EDITTEXT DRV_LONGVARCHAR_SIZE,240,153,35,12,ES_AUTOHSCROLL EDITTEXT DRV_LONGVARCHAR_SIZE,199,160,35,12,ES_AUTOHSCROLL
LTEXT "SysTable &Prefixes:",IDC_STATIC,15,155,35,20 LTEXT "SysTable &Prefixes:",IDC_STATIC,125,183,61,18
EDITTEXT DRV_EXTRASYSTABLEPREFIXES,50,174,75,12,ES_AUTOHSCROLL EDITTEXT DRV_EXTRASYSTABLEPREFIXES,199,181,71,12,ES_AUTOHSCROLL
RTEXT "Connect &Settings:",IDC_STATIC,10,180,35,20 DEFPUSHBUTTON "OK",IDOK,5,212,50,14,WS_GROUP
EDITTEXT DRV_CONNSETTINGS,50,193,225,25,ES_MULTILINE | PUSHBUTTON "Cancel",IDCANCEL,81,211,50,15
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN PUSHBUTTON "Apply",IDAPPLY,156,212,50,14
DEFPUSHBUTTON "Close",IDOK,25,228,50,14,WS_GROUP PUSHBUTTON "Defaults",IDDEFAULTS,232,211,50,15
PUSHBUTTON "Cancel",IDCANCEL,90,228,50,15 GROUPBOX "Miscellanous",IDC_STATIC,5,145,277,58
PUSHBUTTON "Apply",IDAPPLY,155,228,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,220,228,50,15
END END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 216 DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 287, 231
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Advanced Options (DataSource)" CAPTION "Advanced Options (DataSource)"
FONT 8, "MS Sans Serif" FONT 10, "Terminal"
BEGIN BEGIN
PUSHBUTTON "Page 2",IDNEXTPAGE,50,1,40,15 PUSHBUTTON "Page 2",IDNEXTPAGE,49,5,40,15
PUSHBUTTON "Page 1",IDPREVPAGE,10,1,40,15 PUSHBUTTON "Page 1",IDPREVPAGE,5,5,40,15
CONTROL "&ReadOnly",DS_READONLY,"Button",BS_AUTOCHECKBOX | CONTROL "&Read Only",DS_READONLY,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,25,18,53,10 WS_GROUP | WS_TABSTOP,15,26,102,10
CONTROL "Row &Versioning",DS_ROWVERSIONING,"Button", CONTROL "Row &Versioning",DS_ROWVERSIONING,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,130,18,85,10 BS_AUTOCHECKBOX | WS_TABSTOP,149,26,85,10
CONTROL "Show System &Tables",DS_SHOWSYSTEMTABLES,"Button", CONTROL "Show System &Tables",DS_SHOWSYSTEMTABLES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,33,85,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,41,100,10
CONTROL "Disallow &Premature",DS_DISALLOWPREMATURE,"Button", CONTROL "Disallow &Premature",DS_DISALLOWPREMATURE,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,130,33,85,10 BS_AUTOCHECKBOX | WS_TABSTOP,149,41,85,10
CONTROL "LF <-> CR/LF convert",DS_LFCONVERSION,"Button", CONTROL "LF <-> CR/LF conversion",DS_LFCONVERSION,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,48,92,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,56,106,10
CONTROL "True is -1",DS_TRUEISMINUS1,"Button", CONTROL "True is -1",DS_TRUEISMINUS1,"Button",BS_AUTOCHECKBOX |
BS_AUTOCHECKBOX | WS_TABSTOP,130,48,86,10 WS_TABSTOP,149,56,86,10
CONTROL "(Trial) Updatable Cursors",DS_UPDATABLECURSORS,"Button", CONTROL "Updatable Cursors",DS_UPDATABLECURSORS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,25,63,102,10 BS_AUTOCHECKBOX | WS_TABSTOP,15,71,87,10
GROUPBOX "Int8 As",IDC_STATIC,15,78,248,25 GROUPBOX "Int8 As",IDC_STATIC,5,85,277,25
CONTROL "default",DS_INT8_AS_DEFAULT,"Button",BS_AUTORADIOBUTTON | WS_GROUP,20, CONTROL "default",DS_INT8_AS_DEFAULT,"Button",BS_AUTORADIOBUTTON |
88,35,10 WS_GROUP,12,95,40,10
CONTROL "bigint",DS_INT8_AS_BIGINT,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "bigint",DS_INT8_AS_BIGINT,"Button",BS_AUTORADIOBUTTON |
63,88,35,10 WS_TABSTOP,55,95,35,10
CONTROL "numeric",DS_INT8_AS_NUMERIC,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "numeric",DS_INT8_AS_NUMERIC,"Button",BS_AUTORADIOBUTTON |
106,88,40,10 WS_TABSTOP,98,95,40,10
CONTROL "varchar",DS_INT8_AS_VARCHAR,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "varchar",DS_INT8_AS_VARCHAR,"Button",BS_AUTORADIOBUTTON |
149,88,40,10 WS_TABSTOP,141,95,40,10
CONTROL "double",DS_INT8_AS_DOUBLE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "double",DS_INT8_AS_DOUBLE,"Button",BS_AUTORADIOBUTTON |
192,88,40,10 WS_TABSTOP,184,95,40,10
CONTROL "int4",DS_INT8_AS_INT4,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "int4",DS_INT8_AS_INT4,"Button",BS_AUTORADIOBUTTON |
235,88,25,10 WS_TABSTOP,227,95,29,10
GROUPBOX "Protocol",IDC_STATIC,15,109,180,25 GROUPBOX "Protocol",IDC_STATIC,5,115,277,25
CONTROL "7.X,6.4+",DS_PG64,"Button",BS_AUTORADIOBUTTON | WS_GROUP,25, CONTROL "7.X,6.4+",DS_PG64,"Button",BS_AUTORADIOBUTTON |
118,35,10 WS_GROUP,44,126,35,10
CONTROL "6.3",DS_PG63,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "6.3",DS_PG63,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
75,118,26,10 117,126,26,10
CONTROL "6.2",DS_PG62,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP, CONTROL "6.2",DS_PG62,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,
130,118,26,10 191,126,26,10
GROUPBOX "OID Options",IDC_STATIC,15,140,180,25 GROUPBOX "OID Options",IDC_STATIC,5,145,277,25
CONTROL "Show &Column",DS_SHOWOIDCOLUMN,"Button",BS_AUTOCHECKBOX | CONTROL "Show &Column",DS_SHOWOIDCOLUMN,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,25,150,59,10 WS_GROUP | WS_TABSTOP,53,157,59,10
CONTROL "Fake &Index",DS_FAKEOIDINDEX,"Button",BS_AUTOCHECKBOX | CONTROL "Fake &Index",DS_FAKEOIDINDEX,"Button",BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP,115,150,51,10 WS_GROUP | WS_TABSTOP,155,156,51,10
RTEXT "Connect &Settings:",IDC_STATIC,10,174,35,25 LTEXT "Connect &Settings:",IDC_STATIC,5,182,62,17
EDITTEXT DS_CONNSETTINGS,50,174,200,20,ES_MULTILINE | EDITTEXT DS_CONNSETTINGS,71,178,211,27,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "Close",IDOK,51,196,50,14,WS_GROUP DEFPUSHBUTTON "OK",IDOK,5,212,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,126,196,50,14 PUSHBUTTON "Cancel",IDCANCEL,81,212,50,14
PUSHBUTTON "Apply",IDAPPLY,201,196,50,14 PUSHBUTTON "Apply",IDAPPLY,156,212,50,14
END END
DLG_OPTIONS_GLOBAL DIALOG DISCARDABLE 0, 0, 306, 90 DLG_OPTIONS_GLOBAL DIALOG DISCARDABLE 0, 0, 306, 87
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Global settings" CAPTION "Global settings"
FONT 8, "MS Sans Serif" FONT 10, "Terminal"
BEGIN BEGIN
CTEXT "Logging before establishing connections(the default for new DSNs also)", CONTROL "Comm&Log (C:\\psqlodbc_xxxx.log - Communications log)",
DRV_MSG_LABEL,25,15,238,10 DRV_COMMLOG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,24,
CONTROL "Comm&Log (C:\\psqlodbc.log)",DRV_COMMLOG,"Button", 263,10
BS_AUTOCHECKBOX | WS_TABSTOP,13,30,120,10 CONTROL "Mylog (C:\\mylog_xxxx.log - Detailed debug output)",
CONTROL "Mylog(C:\\mylog_xxxx.log Detailed debug output)", DRV_DEBUG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,22,42,
DRV_DEBUG,"Button", BS_AUTOCHECKBOX | WS_TABSTOP,13,45,200,10 264,10
DEFPUSHBUTTON "Save",IDOK,39,70,50,14,WS_GROUP DEFPUSHBUTTON "OK",IDOK,82,68,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,104,70,50,15 PUSHBUTTON "Cancel",IDCANCEL,172,67,50,15
GROUPBOX "Pre-connection/default logging options",IDC_STATIC,5,5,
296,58
END END
#endif
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
...@@ -375,56 +213,37 @@ END ...@@ -375,56 +213,37 @@ END
// //
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifdef MULTIBYTE
GUIDELINES DESIGNINFO DISCARDABLE GUIDELINES DESIGNINFO DISCARDABLE
BEGIN BEGIN
DLG_CONFIG, DIALOG DLG_CONFIG, DIALOG
BEGIN BEGIN
BOTTOMMARGIN, 112 BOTTOMMARGIN, 115
END END
DLG_OPTIONS_DRV, DIALOG DLG_OPTIONS_DRV, DIALOG
BEGIN BEGIN
LEFTMARGIN, 7 LEFTMARGIN, 5
RIGHTMARGIN, 301 RIGHTMARGIN, 282
TOPMARGIN, 5 TOPMARGIN, 5
BOTTOMMARGIN, 206 BOTTOMMARGIN, 226
END END
DLG_OPTIONS_DS, DIALOG DLG_OPTIONS_DS, DIALOG
BEGIN BEGIN
LEFTMARGIN, 5 LEFTMARGIN, 5
RIGHTMARGIN, 260 RIGHTMARGIN, 282
TOPMARGIN, 7 TOPMARGIN, 5
BOTTOMMARGIN, 154 BOTTOMMARGIN, 226
END
END
#else
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
DLG_CONFIG, DIALOG
BEGIN
BOTTOMMARGIN, 115
END
DLG_OPTIONS_DRV, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 280
TOPMARGIN, 7
BOTTOMMARGIN, 219
END END
DLG_OPTIONS_DS, DIALOG DLG_OPTIONS_GLOBAL, DIALOG
BEGIN BEGIN
LEFTMARGIN, 5 LEFTMARGIN, 5
RIGHTMARGIN, 260 RIGHTMARGIN, 301
VERTGUIDE, 55 TOPMARGIN, 5
TOPMARGIN, 7 BOTTOMMARGIN, 82
BOTTOMMARGIN, 154
END END
END END
#endif // MULTIBYTE
#endif // APSTUDIO_INVOKED #endif // APSTUDIO_INVOKED
...@@ -452,11 +271,7 @@ BEGIN ...@@ -452,11 +271,7 @@ BEGIN
BLOCK "040904e4" BLOCK "040904e4"
BEGIN BEGIN
VALUE "Comments", "PostgreSQL ODBC driver\0" VALUE "Comments", "PostgreSQL ODBC driver\0"
#ifdef MULTIBYTE
VALUE "CompanyName", "Insight Distribution Systems & Sankyo Unyu Service (MULTIBYTE support)\0"
#else
VALUE "CompanyName", "Insight Distribution Systems\0" VALUE "CompanyName", "Insight Distribution Systems\0"
#endif
VALUE "FileDescription", "PostgreSQL Driver\0" VALUE "FileDescription", "PostgreSQL Driver\0"
VALUE "FileVersion", POSTGRES_RESOURCE_VERSION VALUE "FileVersion", POSTGRES_RESOURCE_VERSION
VALUE "InternalName", "psqlodbc\0" VALUE "InternalName", "psqlodbc\0"
...@@ -489,7 +304,7 @@ BEGIN ...@@ -489,7 +304,7 @@ BEGIN
IDS_MSGTITLE "Invalid DSN" IDS_MSGTITLE "Invalid DSN"
END END
#endif // English (U.S.) resources #endif // p (ض) resources
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
......
/* {{NO_DEPENDENCIES}} */ //{{NO_DEPENDENCIES}}
/* Microsoft Developer Studio generated include file. */ // Microsoft Developer Studio generated include file.
/* Used by psqlodbc.rc */ // Used by psqlodbc.rc
/* */ //
#define IDS_BADDSN 1 #define IDS_BADDSN 1
#define IDS_MSGTITLE 2 #define IDS_MSGTITLE 2
#define DLG_OPTIONS_DRV 102 #define DLG_OPTIONS_DRV 102
...@@ -67,14 +67,13 @@ ...@@ -67,14 +67,13 @@
#define DRV_MSG_LABEL2 1073 #define DRV_MSG_LABEL2 1073
#define IDAPPLY 1074 #define IDAPPLY 1074
/* Next default values for new objects */ // Next default values for new objects
/* */ //
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS #ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 105 #define _APS_NEXT_RESOURCE_VALUE 105
#define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1075 #define _APS_NEXT_CONTROL_VALUE 1075
#define _APS_NEXT_SYMED_VALUE 101 #define _APS_NEXT_SYMED_VALUE 101
#endif /* */ #endif
#endif
#endif /* */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment