|
The Chart Corner to Which an Object Is Attached
There is a number of graphical objects for which you can set a chart corner, relative to which the coordinates are specified in pixels. These are the following types of objects (in brackets object type identifiers are specified):
Object |
ID |
X/Y |
Width/Height |
Date/Price |
|||
---|---|---|---|---|---|---|---|
Text |
— |
— |
Yes |
— |
Yes |
Yes |
|
Label |
Yes |
Yes (read only) |
— |
Yes |
Yes |
Yes |
|
Button |
Yes |
Yes |
— |
Yes |
— |
— |
|
Bitmap |
— |
Yes (read only) |
Yes |
— |
Yes |
— |
|
Bitmap Label |
Yes |
Yes (read only) |
— |
Yes |
Yes |
— |
|
Edit |
Yes |
Yes |
— |
Yes |
— |
— |
|
Rectangle Label |
Yes |
Yes |
— |
Yes |
— |
— |
The following designations are used in the table:
In order to specify the chart corner, from which X and Y coordinates will be measured in pixels, use ObjectSetInteger(chartID, name, OBJPROP_CORNER, chart_corner), where:
ID |
Description |
---|---|
CORNER_LEFT_UPPER |
Center of coordinates is in the upper left corner of the chart |
CORNER_LEFT_LOWER |
Center of coordinates is in the lower left corner of the chart |
CORNER_RIGHT_LOWER |
Center of coordinates is in the lower right corner of the chart |
CORNER_RIGHT_UPPER |
Center of coordinates is in the upper right corner of the chart |
Example:
void CreateLabel(long chart_id,
|