Browse Subversion Repository
Contents of /colordlg.pas
Parent Directory
| Revision Log
Revision 1 -
( show annotations)
( download)
( as text)
Mon Nov 7 12:03:00 2011 UTC
(12 years, 4 months ago)
by shiraishikazuo
File MIME type: text/x-pascal
File size: 1190 byte(s)
| 1 |
unit colordlg; |
| 2 |
|
| 3 |
{$IFDEF FPC} |
| 4 |
{$MODE DELPHI}{$H+} |
| 5 |
{$ENDIF} |
| 6 |
|
| 7 |
(***************************************) |
| 8 |
(* Copyright (C) 2003, SHIRAISHI Kazuo *) |
| 9 |
(***************************************) |
| 10 |
|
| 11 |
|
| 12 |
interface |
| 13 |
|
| 14 |
uses Types, Classes, Graphics, Forms, Controls, Buttons, |
| 15 |
StdCtrls, ExtCtrls, LResources; |
| 16 |
|
| 17 |
type |
| 18 |
TColorIndexDlg = class(TForm) |
| 19 |
OKBtn: TBitBtn; |
| 20 |
CancelBtn: TBitBtn; |
| 21 |
HelpBtn: TBitBtn; |
| 22 |
RadioGroup1: TRadioGroup; |
| 23 |
procedure HelpBtnClick(Sender: TObject); |
| 24 |
procedure FormCreate(Sender: TObject); |
| 25 |
private |
| 26 |
{ Private 宣言 } |
| 27 |
public |
| 28 |
procedure execute; |
| 29 |
end; |
| 30 |
|
| 31 |
var |
| 32 |
ColorIndexDlg: TColorIndexDlg; |
| 33 |
|
| 34 |
implementation |
| 35 |
uses graphsys,toolfrm, paintfrm; |
| 36 |
{$R *.lfm} |
| 37 |
|
| 38 |
|
| 39 |
procedure TColorIndexDlg.execute; |
| 40 |
begin |
| 41 |
if ShowModal=mrOk then |
| 42 |
begin |
| 43 |
MyPalette.PaletteNumber:=RadioGroup1.ItemIndex; |
| 44 |
PaintForm.initial; |
| 45 |
ToolBox.refresh |
| 46 |
end; |
| 47 |
end; |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
procedure TColorIndexDlg.HelpBtnClick(Sender: TObject); |
| 54 |
begin |
| 55 |
Application.HelpContext(HelpContext); |
| 56 |
end; |
| 57 |
|
| 58 |
procedure TColorIndexDlg.FormCreate(Sender: TObject); |
| 59 |
begin |
| 60 |
RadioGroup1.ItemIndex:=0; |
| 61 |
end; |
| 62 |
|
| 63 |
initialization |
| 64 |
|
| 65 |
|
| 66 |
end. |
| |