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....


Class: TPolChart
Declaration: procedure MarkAt (rad, phi: double; mk: byte);

The method MarkAt displays a symbol at the position [rad,phi] using the color DataColor. The shape of the symbol is defined by the parameter mk:

If the parameter mk is greater than MAXCANVASMARKS, a character corresponding to its ASCII code is displayed instead of a symbol. Digits can be drawn by setting mk to the codes 200..209 (200 = '0', 209 = '9').

Hint 1: Please note that some of the symbols are displayed by using pixel graphics. These symbols may be displayed in an unfavorable way (only tiny dots, or several thin lines) when using WMF for large printouts, i.e. for high resolution printers. The following symbols are affected:
    18  large shaded block
    25  large bold cross

Hint 2: Due to a bug in Delphi 2005 (.NET only) the filled symbols cannot be drawn correctly. This bug occurs only under the .NET environment, under Win32 the method MarkAt works as expected.

As of January 2005, there is no known work-around for this bug. If you need the full palette of symbols, you have to use Win32.

Hint 3: In order to select a symbol interactively you should use the component TMarkSel

Example: This method is used in the following example program (see for downloading the code): clock

Last Update: 2016-Feb-13