You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7886 8e941d3f-bd1b-0410-a28a-d453659cc2b4
53 lines
978 B
ObjectPascal
53 lines
978 B
ObjectPascal
unit scriptoptsunit;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|
ExtCtrls, StdCtrls;
|
|
|
|
type
|
|
|
|
{ Tscriptoptsfrm }
|
|
|
|
Tscriptoptsfrm = class(TForm)
|
|
CancelBtn: TButton;
|
|
ReturnBtn: TButton;
|
|
CheckGroup1: TCheckGroup;
|
|
procedure ReturnBtnClick(Sender: TObject);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
end;
|
|
|
|
var
|
|
scriptoptsfrm: Tscriptoptsfrm;
|
|
|
|
implementation
|
|
|
|
{ Tscriptoptsfrm }
|
|
|
|
procedure Tscriptoptsfrm.ReturnBtnClick(Sender: TObject);
|
|
var
|
|
scriptopts : textfile;
|
|
checked : integer;
|
|
|
|
begin
|
|
AssignFile(scriptopts, 'Options.SCR');
|
|
Rewrite(scriptopts);
|
|
if CheckGroup1.Checked[0] then checked := 1 else checked := 0;
|
|
Writeln(scriptopts,checked);
|
|
if CheckGroup1.Checked[1] then checked := 1 else checked := 0;
|
|
Writeln(scriptopts,checked);
|
|
closefile(scriptopts);
|
|
end;
|
|
|
|
initialization
|
|
{$I scriptoptsunit.lrs}
|
|
|
|
end.
|
|
|