|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home GuiPack MarkSel Using TMarkSel|
|See also: Interface of SDL_MarkSel|
The MarkSel component has been designed to provide a simple means for the interactive selection of symbols defined in unit SDLbase:
These symbols are available either directly via the procedures DrawMarkOnCanvas and CreateMarkAsBitMap, or indirectly via the MarkAt methods of the units RChart, Rot3D, and PolChart, or the OnImageReqest event of TThumbnails.
The selection box may be configured in various ways. First, you have to decide how the symbol array is arranged by setting the properties NrOfColumns and NrOfRows. Second, you may decide not to show all available symbols but only part of them by adjusting their visibility (array property MarkVisible, and methods HideAllMarks and ShowAllMarks). Third, you may adjust the colors of the selection box: ColorBackGnd, ColorHiLiteBG, ColorHiLiteSymbol, ColorMarks, ColorSelBG, ColorSelFG.
In order to select a particular symbol you can either set the Selected property programmatically, or you can select a symbol by clicking on it. If you want to indicate "no selection" you should click the "no symbol" field in the top left corner of the selection box.