Apply Fix on Signal Delays ...
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
// ///////////////////////////////////////////////////////
|
||||
// //
|
||||
// // SaherElm IT Center MQL5 Class Library
|
||||
// // --------------------------------------
|
||||
// // Name: XCButton
|
||||
// // 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 "../x-saherelm.base.class.mq5"
|
||||
|
||||
// //
|
||||
// // Definitions ...
|
||||
|
||||
// //
|
||||
// // Implementation ...
|
||||
|
||||
// //
|
||||
// // a Button Creation Class ...
|
||||
// class XCButton : XSCBase
|
||||
// {
|
||||
// //
|
||||
// // Public ...
|
||||
// public:
|
||||
// //
|
||||
// // Constructor(s) ...
|
||||
// void XCButton()
|
||||
// {
|
||||
// }
|
||||
|
||||
// //
|
||||
// // Deconstructor ...
|
||||
// void ~XCButton()
|
||||
// {
|
||||
// }
|
||||
|
||||
// //
|
||||
// // 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 //
|
||||
// )
|
||||
// {
|
||||
// //
|
||||
// // Object creation and property settings
|
||||
// bool result = false;
|
||||
|
||||
// //
|
||||
// result = ObjectCreate(0, name, OBJ_BUTTON, 0, 0, 0);
|
||||
// if (!result)
|
||||
// {
|
||||
// return result;
|
||||
// }
|
||||
|
||||
// //
|
||||
// ObjectSetInteger(0, name, OBJPROP_XDISTANCE, xDis);
|
||||
// ObjectSetInteger(0, name, OBJPROP_YDISTANCE, yDis);
|
||||
// ObjectSetInteger(0, name, OBJPROP_XSIZE, xSize);
|
||||
// ObjectSetInteger(0, name, OBJPROP_YSIZE, ySize);
|
||||
|
||||
// //
|
||||
// mName = name;
|
||||
|
||||
// //
|
||||
// return result;
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Destroy Class Instance ...
|
||||
// */
|
||||
// void Destroy()
|
||||
// {
|
||||
// ObjectDelete(0, mName);
|
||||
// }
|
||||
|
||||
// //
|
||||
// // Getter(s) / Setter(s) ...
|
||||
|
||||
// /**
|
||||
// * Set Object Border Color ...
|
||||
// *
|
||||
// * @param value: color
|
||||
// */
|
||||
// void SetBorderColor(color value)
|
||||
// {
|
||||
// ObjectSetInteger(0, mName, OBJPROP_BORDER_COLOR, value);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Set Object Background Color ...
|
||||
// *
|
||||
// * @param value: color
|
||||
// */
|
||||
// void SetBGColor(color value)
|
||||
// {
|
||||
// ObjectSetInteger(0, mName, OBJPROP_BGCOLOR, value);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Set Object Text ...
|
||||
// *
|
||||
// * @param value: text
|
||||
// */
|
||||
// void SetText(string value)
|
||||
// {
|
||||
// ObjectSetString(0, mName, OBJPROP_TEXT, value);
|
||||
// }
|
||||
|
||||
// //
|
||||
// // Protected ...
|
||||
// protected:
|
||||
// //
|
||||
// // Private ...
|
||||
// private:
|
||||
// //
|
||||
// // Props ...
|
||||
|
||||
// //
|
||||
// string mName; // Name of Object
|
||||
|
||||
// //
|
||||
// // Mouse state tracking variables ...
|
||||
// int mlbDownX;
|
||||
// int mlbDownY;
|
||||
// int mlbDownXDistance;
|
||||
// int mlbDownYDistance;
|
||||
// int mPreviousMouseState;
|
||||
|
||||
// //
|
||||
// bool mMovingState; // State for whether the object is moving
|
||||
|
||||
// //
|
||||
// string mAddedNames[]; // Array of added names
|
||||
// long mAddedXDisDiffrence[]; // Arrays to store added distance differences
|
||||
// long mAddedYDisDiffrence[]; // Arrays to store added distance differences
|
||||
// };
|
||||
Reference in New Issue
Block a user