Edit Field Reset/Clear/Zero Out Button
-
Can someone please help me figure this simple task out?
I want a button that I can push to quickly zero out an edit field.
I have attached a small program showing where I am at. It has no problem editing the variable I just can't get it to change the number value in the Edit Field itself. So the old number stays there even though the variable was changed.
A solution would be greatly appreciated as I could find no example of this.Clear Edit Field Button.mq4 Clear Edit Field Button.ex4
Thanks,
Josh -
Add a shared link rather than the EX/MQ file and this might help if you name the object you can use this to redraw using the reset value.
-
Thanks for your reply
Here is the shared link with some changes :
https://fxdreema.com/shared/NLBSy1VTc -
Technically this should work but, are you trying tis on backtest or live? I would just redraw the text box by copying the block from on init to the used tab. Is it working?
-
Thanks, my son found a solution:
Just ad a delete block and draw edit field block. Problem solved.