CCalendarInputBox - MetaTrader 5 Library | MT5 EA Download

The IncGUI library's new CCalendarInputBox control element is designed for date and/or time input.
The CCalendarInputBox control can be used in different modes: date and time input, date input, time input.
The time can be entered up to minutes or seconds (optional). Additionally, the date and time can be modified by repositioning the vertical lines. In its normal state, this element is a text field with a button. The tab will open when the button is clicked.
A tab with numbered control elements is shown below.

The tab of the CCalendarInput control element
The application of a control element begins with a call to the Init() method, which indicates the following parameters:
Use ValueDateTime() (datetime format) and ValueString() (string format) to receive the current value. Use the SetValueDateTime() method to perform time program setting.
In different modes (date/time input), the control element has different widths corresponding to the length of the displayed value, but the width can be changed using the SetWidth() method. The control element uses two interdependent classes CCalendar (not used independently) and CCalendarInputBox. Both classes are added to the IncGUI_v4.mqh file (attached).
Additionally, the IncGUIv4mqh.chm file (IncGUI_v4.mqh library documentation) is prepared in the eIncGUI_v4_Test_CCalendarInputBox.mq5 Expert Advisor and the control element application example is attached here.
Attachment download
📎 eincgui_v4_test_ccalendarinputbox.mq5 (3.73 KB)
📎 incgui_v4.mqh (504.16 KB)
Source: MQL5 #542
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •