Download MetaTrader 5

Force ENDEDIT for an "OBJ_EDIT"

To add comments, please log in or register
MQL5 Cloud Network is a distributed computing network. Just give it a try!
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 03:08 

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

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.04.21 11:50  
FerruFx:

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

What you need seems an CHANGE_EDIT event and it doesn't exist in mql5.
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 12:58  
angevoyageur:
What you need seems an CHANGE_EDIT event and it doesn't exist in mql5.
In fact, it isn't for mql5 but for the new mql4 ... which seems to be very similar to mql5.
Alain Verleyen
Moderator
30731
Alain Verleyen 2014.04.21 14:04  
FerruFx:
In fact, it isn't for mql5 but for the new mql4 ... which seems to be very similar to mql5.
Yes, it's the same on this subject.
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 14:52  
angevoyageur:
Yes, it's the same on this subject.

Yes that's why I posted here on MQL5.

Do you have some ideas about my inquiry ?

Thank you.

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.04.21 14:55  
FerruFx:

Yes that's why I posted here on MQL5.

Do you have some ideas about my inquiry ?

Thank you.

You need to detect a change in an edit object before pressing enter key but why, what to do ?
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 15:09  
angevoyageur:
You need to detect a change in an edit object before pressing enter key but why, what to do ?

My quest is to find a way to skip the ENTER key pressing. I mean, once the text entered in the field, the very next event occuring (click on chart, click on object, etc ... any event) and detected in the OnChartEvent() will generate an action ending the editing (instead of the usual ENTER key).

I know that it's possible using a Windows DLL and simulate the ENTER key. But my wish is to find a way without external DLL.

Thank you for your concern.

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.04.21 15:54  
FerruFx:

My quest is to find a way to skip the ENTER key pressing. I mean, once the text entered in the field, the very next event occuring (click on chart, click on object, etc ... any event) and detected in the OnChartEvent() will generate an action ending the editing (instead of the usual ENTER key).

I know that it's possible using a Windows DLL and simulate the ENTER key. But my wish is to find a way without external DLL.

Thank you for your concern.

I know what you are trying to do, but my question was why ?
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 15:58  
angevoyageur:
I know what you are trying to do, but my question was why ?

In case the user of OBJ_EDIT forget to press the so famous ENTER key !

That's important because unless the end edit occurs, the text or value filled in the field isn't available/retrievable for coding usage.

Alain Verleyen
Moderator
30731
Alain Verleyen 2014.04.21 16:21  
FerruFx:

In case the user of OBJ_EDIT forget to press the so famous ENTER key !

That's important because unless the end edit occurs, the text or value filled in the field isn't available/retrievable for coding usage.

If the event OBJECT_ENDEDIT isn't triggered when the focus of the EDIT object is changed than you can report this as a bug to Service Desk. It's a standard behaviour.
Eric Venturi-Bloxs
56787
Eric Venturi-Bloxs 2014.04.21 16:24  
angevoyageur:
If the event OBJECT_ENDEDIT isn't triggered when the focus of the EDIT object is changed than you can report this as a bug to Service Desk. It's a standard behaviour.

Not sure to understand.

But I think that there's no issue. The question would be : is the ENTER key pressing the only way to end edit and make the text/value available for calculation or else ?

12
To add comments, please log in or register