BorderStyle: ControlBorderStyle;
The BorderStyle property determines component border style.
Default value is ControlBorderStyle.Single (the component is shown in 3D).
Executing the example requires a form that contains the UiRdsDictionary component with a loaded MDM dictionary.
Sub UserProc;
Var
RdsDict: RdsDictionaryBox;
Begin
UiRdsDictionary1.Active := False;
RdsDict := New RdsDictionaryBox.Create;
RdsDict.BorderStyle := ControlBorderStyle.Flat;
Debug.WriteLine("Icon index: " + RdsDict.RootImageIndex.ToString);
RdsDict.Source := UiRdsDictionary1 As IRdsDictionarySource;
RdsDict.RootImageIndex := 44;
RdsDict.Parent := self;
RdsDict.Width := self.Width - 50;
RdsDict.Height := self.Height - 50;
UiRdsDictionary1.Active := True;
End Sub UserProc;
After executing the example the RdsDictionaryBox component is added onto the form. The following parameters are defined for this component: data source, index of the root element icon, border style, height, and width. Index of default icon is displayed in the console window.
See also: