Location: IGxPointF;
Location: Prognoz.Platform.Interop.Drawing.GxPointF;
The Location property determines the top left corner of the object, located on the table sheet.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Obj: ITabObject;
Size: IGxRectF;
Point: IGxPointF;
Begin
Size := New GxRectF.Create(0, 0, 10, 10);
Obj := UiTabSheet1.TabSheet.Objects.Add("PrxPicture", Size);
(Obj As IPrxPicture).Image := GxImage.FromFile("c:\Image.bmp");
Point := Obj.Location;
End Sub Button1OnClick;
As a result the image "c:\View.bmp" is created on the table sheet, then the coordinates of the top left corner of the image are placed to the «Point» variable
See also: