FocusedShape: IWxShape;
The FocusedShape property determines the shape, placed in a focal frame. Use the Tab button to call the frame.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
view : IWxView;
Shape : IWxShape;
Begin
view := ws.Views.Item(0);
Shape := view.FocusedShape;
Shape.Style.BackgroundBrushForeColor := GxColor.FromName("Red");
End Sub UserProc;
After executing the example, color of the object selected with clicking the Tab button is changed.
See also: