DisplayFocusFrame: Boolean;
The DisplayFokusFrame property determines whether the focus is displayed. If this property is set to True, the focus is displayed; if the property is set to False, the focus is not displayed. The property is set to True by default.
Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and the UiWorkspace component that is used as a data source for the WorkspaceBox1 component.
Add links to the Andy, ExtCtrls, Forms, Ui, and Workspace system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
WorkspaceBox1.View.BeginUpdate;
WorkspaceBox1.View.FocusedShape := WorkspaceBox1.View.Workspace.Shapes.Item(1);
WorkspaceBox1.View.EndUpdate;
End Sub Button1OnClick;
After executing the examples with the specified settings, after clicking the button the user gets the following result:
See also: