Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

CSelectFile - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

CSelectFile - library for MetaTrader 5

CSelectFile is a file selection graphical interface class. This class is created based on the standard library.
class method.
1. Create – Create a graphical interface.

 boolean create( long chart, // chart ID string name, // graphics window name integer x1, // X coordinate value of the upper left corner point . Integer y1, // Y coordinate value of the upper left corner point. Integer x2, // X coordinate value of the lower right point. Integer y2) // Y coordinate value of the lower right point.

2. ChartEvent - Chart event processing, returns the status of the pressed button: 0 - the button is not pressed, 1 - the ОК button is pressed, -1 - the cancel button is pressed.
3. Filename - Gets the name of the selected file.
4. FileFlag - Gets the flag of the file location.

CSelectFile - library for MetaTrader 5

1. Create dynamic object CSelectFile *fs=new CSelectFile().
2. Create a graphical interface (fs.Create(...)).
3. Wait for the file selection and press the button fs.ChartEvent(...) on the interface panel.
4. Get the file name fs.Filename() and the file location flag fs.FileFlag().
5. Delete dynamic objects (delete fs).


Attachment download

📎 class_selectfile.mqh (10.92 KB)

📎 test_selectfile.mq5 (1.98 KB)

Source: MQL5 #1074

Verification code Refresh