home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 October
/
PCWorld_2000-10_cd2.bin
/
Borland
/
interbase
/
IBConsole_src.ZIP
/
ibconsole
/
frmuDlgClass.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2000-07-24
|
2KB
|
89 lines
{
* The contents of this file are subject to the InterBase Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License.
*
* You may obtain a copy of the License at http://www.Inprise.com/IPL.html.
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License. The Original Code was created by Inprise
* Corporation and its predecessors.
*
* Portions created by Inprise Corporation are Copyright (C) Inprise
* Corporation. All Rights Reserved.
*
* Contributor(s): ______________________________________.
}
unit frmuDlgClass;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TDialog = class(TForm)
procedure FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
function FormHelp(Command: Word; Data: Integer;
var CallHelp: Boolean): Boolean;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
FErrorState: boolean;
public
{ Public declarations }
function GetErrorState: boolean;
procedure SetErrorState;
end;
var
Dialog: TDialog;
implementation
{$R *.DFM}
uses
zluContextHelp;
type
TFontClass = class (TControl); { needed to get at font property to scale }
const
ScreenWidth: LongInt = 1600;
ScreenHeight: LongInt = 1200;
procedure TDialog.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_ESCAPE then
ModalResult := mrCancel;
end;
function TDialog.FormHelp(Command: Word; Data: Integer;
var CallHelp: Boolean): Boolean;
begin
CallHelp := False;
Result := WinHelp(WindowHandle,CONTEXT_HELP_FILE,HELP_CONTEXT,GENERAL_PREFERENCES);
end;
procedure TDialog.FormCreate(Sender: TObject);
begin
FErrorState := false;
end;
function TDialog.GetErrorState: boolean;
begin
result := FErrorState;
end;
procedure TDialog.SetErrorState;
begin
FErrorState := true;
end;
end.