I have created a new unit like so and it should be a custom TShape.
unit MachineShape;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, extctrls,myDataModule,Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TMachine = class(TShape)
count : Integer;
private
{ Private declarations }
public
{ Public declarations }
procedure PlaceShape(sizeW,sizeH :integer; name, order,asset : string);
end;
implementation
Procedure PlaceShape(sizeW,sizeH :integer; name, order,asset : string);
begin
end;
end.
next i pass this to the procedure
MachineShape.TMachine.PlaceShape(44,49,'CM402','first','123/33/123');
How do i set in the procedure to set the shape size as 44 width and 49 height?
I have tried to do TMachine.Width but it does not work? thanks glen