Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/3874-standardlibrary-controls-cbutton-cbuttoncreate.md
T
2026-06-23 21:47:51 +08:00

51 lines
954 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Create
Creates new CButton control.
```
virtual bool  Create(
   const long    chart,      // chart ID
   const string  name,       // name
   const int     subwin,     // chart subwindow
   const int     x1,         // coordinate
   const int     y1,         // coordinate
   const int     x2,         // coordinate
   const int     y2          // coordinate
   )
```
Parameters
chart
[in]  ID of the chart, at which the control is created.
name
[in]  Unique name of the control.
subwin
[in]  Subwindow of the chart, at which the control is created.
x1
[in]  X coordinate of the upper left corner.
y1
[in]  Y coordinate of the upper left corner.
x2
[in]  X coordinate of the lower right corner.
y2
[in]  Y coordinate of the lower right corner.
Return Value
true - successful, otherwise - false.