Object delete in mql4

 

Hi everybody

I created an object on the chart with ObjectCreate(). So when i pressed backspace key on my keyboard, my created object deleted(like other objects on the chart that delete with pressing backspace key)

I dont want to delete my created objects with pressing backspace key.

Is any solution?

 
Yaser Azizzadeh:

Hi everybody

I created an object on the chart with ObjectCreate(). So when i pressed backspace key on my keyboard, my created object deleted(like other objects on the chart that delete with pressing backspace key)

I dont want to delete my created objects with pressing backspace key.

Is any solution?

Well the obvious answer is not to press the backspace key.

If you do delete an object by mistake with the backspace key, press Alt + backspace to reinstate it.

 
Keith Watford #:

Well the obvious answer is not to press the backspace key.

If you do delete an object by mistake with the backspace key, press Alt + backspace to reinstate it.

I mean any solution for prevent deleting special object that created by ObjectCreate() function with coding.

 
Yaser Azizzadeh: i pressed backspace key on my keyboard, my created object delete

Perhaps you should read the manual.
          Fast Navigation - User Interface - MetaTrader 4 Help (Hot keys)

Delete – delete all selected graphical objects;

Backspace – delete the latest objects imposed into the chart window;

 
William Roeder #:

Perhaps you should read the manual.
          Fast Navigation - User Interface - MetaTrader 4 Help (Hot keys)

For example in trading panels, panel objects can delete by backspace key?