Download MetaTrader 5

Force ENDEDIT for an "OBJ_EDIT"

To add comments, please log in or register
Follow the news. View our company's official channel!
Eric Venturi-Bloxs
1100
Eric Venturi-Bloxs 2014.04.21 03:57 

Dear All,

Is there a way in the new MT4 to force ENDEDIT for an "OBJ_EDIT" without pressing the ENTER key and without external DLL intervention ?

I mean with a specific chart event or any other way.

Thank you for your help.

Eric
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.21 08:22  

The motive of obj_edit is to have input inserted when necessary.

Doesn't it defeat the purpose of knowing the input is entered correctly when pressing ENTER key?


However, you could try endedit with timeout and see what happen.

Eric Venturi-Bloxs
1100
Eric Venturi-Bloxs 2014.04.21 11:04  
deysmacro:

The motive of obj_edit is to have input inserted when necessary.

Doesn't it defeat the purpose of knowing the input is entered correctly when pressing ENTER key?


However, you could try endedit with timeout and see what happen.


I am not trying to end the edit before it is entered correctly. My need is when any chart event occurs (that also mean that the editing is done), to set a function that will confirm automatically the end of the editing ... essentially in case the ENTER key wasn't pressed.

Thank you for your help.

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.21 11:10  
Let see what our senior would say about this.
qjol
3243
qjol 2014.04.21 23:20  
Eric_:


Is there a way in the new MT4 to force ENDEDIT for an "OBJ_EDIT" without pressing the ENTER key and without external DLL intervention ?

I mean with a specific chart event or any other way.


what about WinApi Send An "ENTER" key ?
Eric Venturi-Bloxs
1100
Eric Venturi-Bloxs 2014.04.22 14:35  
qjol:
what about WinApi Send An "ENTER" key ?
I am trying to find a solution without external DLL. Thank you for your help.
qjol
3243
qjol 2014.04.22 15:41  
Eric_:
I am trying to find a solution without external DLL. Thank you for your help.


good luck
Eric Venturi-Bloxs
1100
Eric Venturi-Bloxs 2014.04.22 16:25  
qjol:

good luck

Thank you !


I think something can be done with EventChartCustom but I have to admit that I didn't get how this function works. If a master in this new MT4 could give me some clues, it would be greatly appreciated.

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.22 16:46  

Your request is becoming more advanced, so, you may need to ask someone code it for you.

https://www.mql5.com/en/job

Ex Ovo Omnia
3145
Ex Ovo Omnia 2014.04.22 16:54  
Eric_:

Thank you !


I think something can be done with EventChartCustom but I have to admit that I didn't get how this function works. If a master in this new MT4 could give me some clues, it would be greatly appreciated.


I am afraid you cannot achieve it by EventChartCustom. It is really custom event and you cannot use it for natural event, that would be registered by objects on a chart. I noticed that in 628 the edit already ends up when a mouse clicks nearly anywhere, if it helps you. BTW, I wonder what happens if you read and set text to object while in edit.
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.22 17:01  
BTW, I wonder what happens if you read and set text to object while in edit.

Properly coded and it will use predefined value until that value is changed and confirmed when the enter key pressed.

123
To add comments, please log in or register