Cleanup Workspace ...

This commit is contained in:
2024-11-15 10:50:11 +03:30
parent 45a0d9b5a5
commit 6557f4f1ce
1201 changed files with 15953471 additions and 0 deletions
@@ -0,0 +1,186 @@
///////////////////////////////////////////////////////
//
// SaherElm IT Center MQL5 Class Library
// --------------------------------------
// Name: XCEdit
// Description: provides all based classes for use ...
//
//
// Maintainer:
// ------------
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
//
//////////////////////////////////////////////////////
//
// Global Properties ...
#property library
#property copyright "Copyright 2023, SaherElm IT Center"
#property link "https://www.saherelm.ir"
#property version "1.00"
#property strict
//
#include "../XCObjects/x-saherelm.xcobject.class.mq5"
//
// Definitions ...
//
// Implementation ...
//
// a Label Creation Class ...
class XCEdit : public XCObject
{
//
// Public ...
public:
//
// Constructor(s) ...
void XCEdit()
{
}
//
// Deconstructor ...
void ~XCEdit()
{
}
//
// Actions ...
/**
* Create an Instance of Class Object ...
*
* @param name: Object Name
* @param xDis: X Distance
* @param yDis: Y Distance
* @param xSize: X Size
* @param ySize: Y Size
*/
bool Create(
string name,
int xDis,
int yDis,
int xSize,
int ySize,
long chartID = 0 //
)
{
//
// Object creation and property settings
bool result = false;
//
result = ObjectCreate(chartID, name, OBJ_EDIT, 0, 0, 0);
if (!result)
{
return result;
}
//
ObjectSetInteger(chartID, name, OBJPROP_XDISTANCE, xDis);
ObjectSetInteger(chartID, name, OBJPROP_YDISTANCE, yDis);
ObjectSetInteger(chartID, name, OBJPROP_XSIZE, xSize);
ObjectSetInteger(chartID, name, OBJPROP_YSIZE, ySize);
//
mName = name;
mChartID = chartID;
//
return result;
}
//
// Getter(s) / Setter(s) ...
/**
* Set Object Border Color ...
*
* @param value: color
*/
void BorderColor(color value)
{
ObjectSetInteger(mChartID, mName, OBJPROP_BORDER_COLOR, value);
}
/**
* Set Background Color of Object ...
*
* @param value: color
*/
void BGColor(color value)
{
ObjectSetInteger(mChartID, mName, OBJPROP_BGCOLOR, value);
}
/**
* Set Object Text Color ...
*
* @param value: color
*/
void Color(color value)
{
ObjectSetInteger(mChartID, mName, OBJPROP_COLOR, value);
}
/**
* Set Text of Object ...
*
* @param value: text
*/
void Text(string value)
{
ObjectSetString(mChartID, mName, OBJPROP_TEXT, value);
}
/**
* Get Current Text of Object ...
*
* @return ( string )
*/
string Text()
{
return ObjectGetString(mChartID, mName, OBJPROP_TEXT);
}
/**
* Set Font Size of Object ...
*
* @param value: size
*/
void FontSize(int value)
{
ObjectSetInteger(mChartID, mName, OBJPROP_FONTSIZE, value);
}
/**
* Set Font Name Of Object ...
*
* @param value: font name
*/
void Font(string value)
{
ObjectSetString(mChartID, mName, OBJPROP_FONT, value);
}
/**
* Set ReadOnly State of Object ...
*
* @param value: boolean value
*/
void ReadOnly(bool value)
{
ObjectSetInteger(mChartID, mName, OBJPROP_READONLY, value);
}
//
// Protected ...
protected:
//
// Private ...
private:
//
};