This commit is contained in:
2025-01-27 05:30:56 +03:30
parent 974a516bec
commit 24d152b41d
3 changed files with 462 additions and 101 deletions
+50
View File
@@ -2948,6 +2948,56 @@ class XCPOIDrawer : public XCBase
return result;
}
/**
* Create Specific Box on Chart ...
*
* @param box: XBoxZone instance Reference ...
* @param clr: Color ...
* @param width: Integer ...
* @param fill: Boolean ...
* @param style: ENUM_LINE_STYLE member ...
*
* @return ( bool )
*/
bool CreateBox(
XBoxZone &box,
XCBoxObject *&object,
color clr = clrYellowGreen,
int width = 1,
bool fill = false,
ENUM_LINE_STYLE style = STYLE_SOLID //
)
{
//
bool result = false;
//
object = NULL;
//
result = box.IsValid();
if (!result)
{
return result;
}
//
result = CreateBox(
object,
box.upper,
box.lower,
box.from,
box.to,
clr,
width,
fill,
style //
);
//
return result;
}
/**
* Draw Specified Signal ...
*