You've already forked lazarus-ccr
51 lines
842 B
ObjectPascal
51 lines
842 B
ObjectPascal
![]() |
unit PolynomialUnit;
|
||
|
|
||
|
{$mode objfpc}{$H+}
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
||
|
StdCtrls, contexthelpunit;
|
||
|
|
||
|
type
|
||
|
|
||
|
{ TPolynomialFrm }
|
||
|
|
||
|
TPolynomialFrm = class(TForm)
|
||
|
CancelBtn: TButton;
|
||
|
HelpBtn: TButton;
|
||
|
OKBtn: TButton;
|
||
|
PolyEdit: TEdit;
|
||
|
Label1: TLabel;
|
||
|
procedure FormShow(Sender: TObject);
|
||
|
procedure HelpBtnClick(Sender: TObject);
|
||
|
private
|
||
|
{ private declarations }
|
||
|
public
|
||
|
{ public declarations }
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
PolynomialFrm: TPolynomialFrm;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
{ TPolynomialFrm }
|
||
|
|
||
|
procedure TPolynomialFrm.FormShow(Sender: TObject);
|
||
|
begin
|
||
|
PolyEdit.Text := '1';
|
||
|
end;
|
||
|
|
||
|
procedure TPolynomialFrm.HelpBtnClick(Sender: TObject);
|
||
|
begin
|
||
|
ContextHelpForm.HelpMessage((Sender as TButton).tag);
|
||
|
end;
|
||
|
|
||
|
initialization
|
||
|
{$I polynomialunit.lrs}
|
||
|
|
||
|
end.
|
||
|
|