home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 4 Bible
/
Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso
/
source
/
COLORDLG
/
MAIN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-04-04
|
626b
|
35 lines
unit Main;
interface
uses
Windows, SysUtils, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ColorDlg, Buttons, StdCtrls;
type
TMainForm = class(TForm)
CloseBitBtn: TBitBtn;
TestBitBtn: TBitBtn;
procedure TestBitBtnClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.TestBitBtnClick(Sender: TObject);
begin
with ColorDlgForm do
if ShowModal = mrOk then
ShowMessage(Format('Color value = $%-.6x', [ColorResult]));
end;
end.