28 |
|
|
29 |
|
unit IBDatabaseEdit; |
30 |
|
|
31 |
+ |
{$MODE Delphi} {$H-} |
32 |
+ |
|
33 |
|
interface |
34 |
|
|
35 |
|
uses |
36 |
< |
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, |
37 |
< |
StdCtrls, ExtCtrls, IBDatabase, IB, IBXConst; |
36 |
> |
{Windows,} Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, |
37 |
> |
StdCtrls, ExtCtrls, IBDataBase, IB, IBXConst, LResources; |
38 |
|
|
39 |
|
type |
40 |
+ |
|
41 |
+ |
{ TIBDatabaseEditForm } |
42 |
+ |
|
43 |
|
TIBDatabaseEditForm = class(TForm) |
44 |
|
Panel1: TPanel; |
45 |
|
DatabaseName: TEdit; |
67 |
|
Label7: TLabel; |
68 |
|
Label8: TLabel; |
69 |
|
Test: TButton; |
70 |
+ |
procedure CharacterSetCloseUp(Sender: TObject); |
71 |
|
procedure RemoteRbtnClick(Sender: TObject); |
72 |
|
procedure BrowseClick(Sender: TObject); |
73 |
|
procedure LocalRbtnClick(Sender: TObject); |
97 |
|
|
98 |
|
implementation |
99 |
|
|
94 |
– |
{$R *.DFM} |
100 |
|
|
101 |
< |
uses LibHelp, TypInfo; |
101 |
> |
uses {LibHelp,} TypInfo; |
102 |
|
|
103 |
|
function EditIBDatabase(ADatabase: TIBDatabase): Boolean; |
104 |
|
begin |
251 |
|
ServerName.Enabled := True; |
252 |
|
end; |
253 |
|
|
254 |
+ |
procedure TIBDatabaseEditForm.CharacterSetCloseUp(Sender: TObject); |
255 |
+ |
begin |
256 |
+ |
if (CharacterSet.Text <> 'None') then {do not localize} |
257 |
+ |
AddParam('lc_ctype', CharacterSet.Text) |
258 |
+ |
else |
259 |
+ |
DeleteParam('lc_ctype'); |
260 |
+ |
|
261 |
+ |
end; |
262 |
+ |
|
263 |
|
procedure TIBDatabaseEditForm.BrowseClick(Sender: TObject); |
264 |
|
begin |
265 |
|
with TOpenDialog.Create(Application) do |
296 |
|
|
297 |
|
procedure TIBDatabaseEditForm.FormCreate(Sender: TObject); |
298 |
|
begin |
299 |
< |
HelpContext := hcDIBDataBaseEdit; |
299 |
> |
// HelpContext := hcDIBDataBaseEdit; |
300 |
|
end; |
301 |
|
|
302 |
|
procedure TIBDatabaseEditForm.HelpBtnClick(Sender: TObject); |
321 |
|
|
322 |
|
procedure TIBDatabaseEditForm.CharacterSetChange(Sender: TObject); |
323 |
|
begin |
324 |
+ |
ShowMessage(CharacterSet.Text); |
325 |
|
if (CharacterSet.Text <> 'None') then {do not localize} |
326 |
|
AddParam('lc_ctype', CharacterSet.Text) |
327 |
|
else |
353 |
|
end; |
354 |
|
end; |
355 |
|
|
356 |
+ |
initialization |
357 |
+ |
{$i IBDatabaseEdit.lrs} |
358 |
+ |
|
359 |
|
end. |