You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7345 8e941d3f-bd1b-0410-a28a-d453659cc2b4
56 lines
994 B
ObjectPascal
56 lines
994 B
ObjectPascal
unit RootMethodUnit;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|
ExtCtrls, StdCtrls;
|
|
|
|
type
|
|
|
|
{ TRootMethodFrm }
|
|
|
|
TRootMethodFrm = class(TForm)
|
|
Bevel1: TBevel;
|
|
Bevel2: TBevel;
|
|
CancelBtn: TButton;
|
|
ReturnBtn: TButton;
|
|
MethodGroup: TRadioGroup;
|
|
procedure FormActivate(Sender: TObject);
|
|
procedure ReturnBtnClick(Sender: TObject);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
Choice : integer;
|
|
end;
|
|
|
|
var
|
|
RootMethodFrm: TRootMethodFrm;
|
|
|
|
implementation
|
|
|
|
uses
|
|
Math;
|
|
|
|
{ TRootMethodFrm }
|
|
|
|
procedure TRootMethodFrm.FormActivate(Sender: TObject);
|
|
begin
|
|
CancelBtn.Constraints.MinWidth := Max(CancelBtn.Width, ReturnBtn.Width);
|
|
ReturnBtn.Constraints.MinWidth := CancelBtn.Constraints.MinWidth;
|
|
end;
|
|
|
|
procedure TRootMethodFrm.ReturnBtnClick(Sender: TObject);
|
|
begin
|
|
Choice := MethodGroup.ItemIndex + 1;
|
|
end;
|
|
|
|
initialization
|
|
{$I rootmethodunit.lrs}
|
|
|
|
end.
|
|
|