Browse Subversion Repository
Contents of /moddlg.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: 1172 byte(s)
| 1 |
unit moddlg; |
| 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 SysUtils, Classes, Graphics, Forms, Controls, StdCtrls, Buttons, ExtCtrls, |
| 15 |
texthand,helpctex, LResources; |
| 16 |
|
| 17 |
type |
| 18 |
TMODDialog = class (TForm) |
| 19 |
OKBtn: TButton; |
| 20 |
CancelBtn: TButton; |
| 21 |
HelpBtn: TButton; |
| 22 |
RadioGroup1: TRadioGroup; |
| 23 |
RadioGroup2: TRadioGroup; |
| 24 |
Label1: TLabel; |
| 25 |
procedure HelpBtnClick(Sender: TObject); |
| 26 |
private |
| 27 |
{ Private 宣言 } |
| 28 |
public |
| 29 |
{ Public 宣言 } |
| 30 |
end; |
| 31 |
|
| 32 |
var |
| 33 |
MODDialog: TMODDialog; |
| 34 |
|
| 35 |
function confirmMod:integer; |
| 36 |
|
| 37 |
implementation |
| 38 |
{$R *.lfm} |
| 39 |
|
| 40 |
procedure TMODDialog.HelpBtnClick(Sender: TObject); |
| 41 |
begin |
| 42 |
Application.HelpContext(HelpContext); |
| 43 |
end; |
| 44 |
|
| 45 |
function confirmMod:integer; |
| 46 |
begin |
| 47 |
memo.lines.EndUpdate; |
| 48 |
selecttoken; |
| 49 |
memo.lines.BeginUpdate; |
| 50 |
with MODDialog do |
| 51 |
if (radiogroup2.itemindex=1) or (showmodal=mrOK) then |
| 52 |
result:=radiogroup1.itemindex |
| 53 |
else |
| 54 |
seterrillegal(token,IDH_MOD); |
| 55 |
end; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
initialization |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
end. |
| 64 |
|
| |