Download MetaTrader 5

Experts: InputResizer: edit indicator and EA settings comfortably

To add comments, please log in or register
Order a robot or an indicator for MetaTrader. The Freelance service will help you!
MetaQuotes Software Corp.
Moderator
181214
MetaQuotes Software Corp. 2011.06.23 11:32 

InputResizer: edit indicator and EA settings comfortably:

A small utility making MT4 input windows resizable.

Author: MaryJane

Rustamzhan Salidzhanov
7684
Rustamzhan Salidzhanov 2011.06.23 18:25  
excelent! +10
MaryJane
29
MaryJane 2011.06.23 18:47  
xrust:
excelent! +10

Thanks! Any suggestions for improvements are welcome.
o_o
Moderator
23695
o_o 2011.06.24 11:50  

Is real cool! Bravo!

+10000

Леонид
1782
Леонид 2011.06.24 23:44  
Super! If you have added a field for comments in front of each line ...
Robert Simon
44
Robert Simon 2011.06.25 13:21  
Thanks!

For Hungarian peoples: (cause Tab caption and window caption doesnt match...)

extern string Chart_Tab = "Bemenő Változók"; //"Input Parameters";
extern string Tester_Tab = "Bemenők"; //"Inputs";
extern string OK_Button = "OK";
extern string Cancel_Button = "Cancel";
extern string Reset_Button = "Törlés"; //"Reset";
extern string Load_Button = "Betöltés"; //"Load";
extern string Save_Button = "Mentés"; //"Save";

ps: i think better way to use PermVar library instead of global vars, it could be global over multiple MT clients...
ps2: ohh and got some miss placed char. :D

m = GlobalVariableGet(gvName + "m");
GlobalVariableSet(gvName + "z", IsZoomed(pWnd));

MaryJane
29
MaryJane 2011.06.25 20:16  
symr:

m = GlobalVariableGet(gvName + "m");
GlobalVariableSet(gvName + "z", IsZoomed(pWnd));


Thanks for the bug report :-) ..corrected and waiting for moderator approval.

Re the PermVar library: good idea but I will not do it; this would require to bundle the library with it and I want to keep it as simple as possible. Most users running multiple MT4 clients will run InputResizer on a client that's always on, global variables of that client will store the data for all MT4 instances on the PC. I'm planning to code this utility as a native Win32 application (running in the system tray); it really doesn't make any sense to have it running inside MT4, in any mql4 form.

Preet Gill
43
Preet Gill 2011.06.26 11:32  

great job, this is really helpful stuff

Вадим
12
Вадим 2011.06.27 05:19  

For Russian localization:

Chart_Tab=Входные параметры

Tester_Tab=Входные параметры

OK_Button=ОК

Cancel_Button=Отмена

Reset_Button=Сброс

Load_Button=Загрузить

Save_Button=Сохранить

Very useful unit, thank's!

Golomolo
125
Golomolo 2011.06.27 18:53  
always wished for something like this, thanks a lot.
Robert Simon
44
Robert Simon 2011.06.28 17:42  

Hi!

Sorry for that but find some bugs-bunny... :P

- Maximize window wont work if u close it when its maximized and than reopen it
- The code not working properly in multi monitor systems, because the GetWindowRect returns negative values eg.: {-1127, 371,-553,679} sorry for that, NVM, it's my fault, working great with multiple mons...

#import "user32.dll"
  int GetSystemMetrics(int nIndex);
#import
#define SM_CMONITORS      0x80
#define HWND_TOPMOST      -1
#define HWND_NOTOPMOST    -2
if (GetSystemMetrics(SM_CMONITORS) > 1) {
  log("Multiple monitor systems");
  SetWindowPos(pWnd, HWND_TOPMOST, ....);
} else { 
  log("Single monitor systems");
  SetWindowPos(pWnd, HWND_NOTOPMOST, ....);
}


- Sometimes some version of MT got a localization bug, and some button not always got a same caption (eg.: Cancel - (hungarian : "Mégse"))
- i think try to get a ControlID via GetControlID API and we wont need to set the localization button captions. MT doesnt shuffle control IDs.


12
To add comments, please log in or register