1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
TFormGoodies = Class(Tform)
private
procedure SetMonParam(Value : Integer);
Public
Property MonParam : integer write SetMonParam;
end;
...
TFormGoodies.SetMonParam(Value : Integer) ;
begin
// tu met ici toutes les actions à faire en fonction de value : genre modification de caption bouton, menu, etc
.....
end;
procedure TSDIAppForm.ButtonGoodiesClick(Sender: TObject);
var
FormGoodies : TFormGoodies;
begin
FormGoodies := TFormGoodies.Create(self);
FormGoodies.MonParam := 10;
...
end; |