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:
Per specificare l'angolo del grafico, da cui le coordinate X e Y vengono misurate in pixel, utilizzare ObjectSetInteger(ChartID, nome, OBJPROP_CORNER, chart_corner), Dove:
ID |
Descrizione |
|---|---|
CORNER_LEFT_UPPER |
Il centro delle coordinate è nell'angolo superiore sinistro del grafico |
CORNER_LEFT_LOWER |
Il centro delle coordinate è nell'angolo in basso a sinistra del grafico |
CORNER_RIGHT_LOWER |
Il centro di coordinate è nell'angolo in basso a destra del grafico |
CORNER_RIGHT_UPPER |
Il centro di coordinate è nell'angolo in alto a destra del grafico |
Esempio:
void CreateLabel(long chart_id,
|