Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0ee85f85
Commit
0ee85f85
authored
Sep 10, 2001
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change dialog windows.
parent
9abd0554
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
src/interfaces/odbc/dlg_specific.c
src/interfaces/odbc/dlg_specific.c
+11
-12
src/interfaces/odbc/psqlodbc.rc
src/interfaces/odbc/psqlodbc.rc
+8
-8
No files found.
src/interfaces/odbc/dlg_specific.c
View file @
0ee85f85
...
@@ -243,18 +243,17 @@ driver_optionsProc(HWND hdlg,
...
@@ -243,18 +243,17 @@ driver_optionsProc(HWND hdlg,
case
WM_INITDIALOG
:
case
WM_INITDIALOG
:
SetWindowLong
(
hdlg
,
DWL_USER
,
lParam
);
/* save for OK etc */
SetWindowLong
(
hdlg
,
DWL_USER
,
lParam
);
/* save for OK etc */
ci
=
(
ConnInfo
*
)
lParam
;
ci
=
(
ConnInfo
*
)
lParam
;
CheckDlgButton
(
hdlg
,
DRV_OR_DSN
,
0
);
if
(
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
])
if
(
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
])
{
{
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
}
}
else
else
{
{
CheckDlgButton
(
hdlg
,
DRV_OR_DSN
,
1
);
SetWindowText
(
hdlg
,
"Advanced Options (Connection)"
);
SetWindowText
(
hdlg
,
"Advanced Options (Connection)"
);
ShowWindow
(
GetDlgItem
(
hdlg
,
DRV_OR_DSN
),
SW_HIDE
);
ShowWindow
(
GetDlgItem
(
hdlg
,
DRV_OR_DSN
),
SW_HIDE
);
driver_optionsDraw
(
hdlg
,
ci
,
1
,
FALSE
);
}
}
driver_optionsDraw
(
hdlg
,
ci
,
1
,
FALSE
);
break
;
break
;
case
WM_COMMAND
:
case
WM_COMMAND
:
...
@@ -262,7 +261,7 @@ driver_optionsProc(HWND hdlg,
...
@@ -262,7 +261,7 @@ driver_optionsProc(HWND hdlg,
{
{
case
IDOK
:
case
IDOK
:
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
driver_options_update
(
hdlg
,
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
)
?
ci
:
NULL
,
driver_options_update
(
hdlg
,
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
)
?
NULL
:
ci
,
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
]);
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
]);
case
IDCANCEL
:
case
IDCANCEL
:
...
@@ -271,12 +270,12 @@ driver_optionsProc(HWND hdlg,
...
@@ -271,12 +270,12 @@ driver_optionsProc(HWND hdlg,
case
IDDEFAULTS
:
case
IDDEFAULTS
:
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
driver_optionsDraw
(
hdlg
,
NULL
,
2
,
TRUE
);
else
{
{
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
driver_optionsDraw
(
hdlg
,
ci
,
0
,
FALSE
);
driver_optionsDraw
(
hdlg
,
ci
,
0
,
FALSE
);
}
}
else
driver_optionsDraw
(
hdlg
,
NULL
,
2
,
TRUE
);
break
;
break
;
case
DRV_OR_DSN
:
case
DRV_OR_DSN
:
...
@@ -285,14 +284,14 @@ driver_optionsProc(HWND hdlg,
...
@@ -285,14 +284,14 @@ driver_optionsProc(HWND hdlg,
mylog
(
"DRV_OR_DSN clicked
\n
"
);
mylog
(
"DRV_OR_DSN clicked
\n
"
);
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
{
{
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
driver_optionsDraw
(
hdlg
,
ci
,
ci
?
1
:
0
,
ci
==
NULL
);
}
}
else
else
{
{
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
driver_optionsDraw
(
hdlg
,
ci
,
ci
?
1
:
0
,
ci
==
NULL
);
}
}
}
}
break
;
break
;
...
...
src/interfaces/odbc/psqlodbc.rc
View file @
0ee85f85
...
@@ -132,10 +132,10 @@ BEGIN
...
@@ -132,10 +132,10 @@ BEGIN
EDITTEXT DRV_CONNSETTINGS,61,165,225,25,ES_MULTILINE |
EDITTEXT DRV_CONNSETTINGS,61,165,225,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "OK",IDOK,59,201,50,14,WS_GROUP
DEFPUSHBUTTON "OK",IDOK,59,201,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,12
9
,201,50,14
PUSHBUTTON "Cancel",IDCANCEL,12
4
,201,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
9
9,201,50,15
PUSHBUTTON "Defaults",IDDEFAULTS,1
8
9,201,50,15
CONTROL "
DSN
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
CONTROL "
Common
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
43,208,3
0,10
BS_NOTIFY | WS_TABSTOP,2
33,208,4
0,10
END
END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
...
@@ -249,10 +249,10 @@ BEGIN
...
@@ -249,10 +249,10 @@ BEGIN
EDITTEXT DRV_CONNSETTINGS,50,185,225,25,ES_MULTILINE |
EDITTEXT DRV_CONNSETTINGS,50,185,225,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "OK",IDOK,45,220,50,14,WS_GROUP
DEFPUSHBUTTON "OK",IDOK,45,220,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,11
5
,220,50,14
PUSHBUTTON "Cancel",IDCANCEL,11
0
,220,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
8
5,220,50,15
PUSHBUTTON "Defaults",IDDEFAULTS,1
7
5,220,50,15
CONTROL "
DSN
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
CONTROL "
Common
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
43,224,3
0,10
BS_NOTIFY | WS_TABSTOP,2
33,224,4
0,10
END
END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment