
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can someone please advise if there is any ready code for Edit Box to canvas.
I am making a rubber panel and need such an element. When you click on it, you need to enter and delete numbers and see a blinking cursor.
If not, I'll make a normal substitution when clicking on it.
Someone did it, and there were problems not with graphics, but with input - MetaTrader "dragged/processed" the usual buttons (Enter/Tab) and KeyPress/Repeate/Release in general.
It's easier to take a DLL and embed the Windows Control window, or Notepad.exe.
A few days of mate about the lack of information (low-level things are hard to find nowadays, there are few of them), but in the end the code will be two orders of magnitude less and will work better.
Can someone please advise if there is any ready code for Edit Box to canvas.
...
See TextBox.mqh file
someone did, there were problems not with graphics, but with input - MetaTrader "dragged/processed" the usual buttons (Enter/Tab) and KeyPress/Repeate/Release in general.
It's easier to take a DLL and embed the Windows Control window, or Notepad.exe.
A few days of mate about the lack of information (low-level things are hard to find nowadays, there are few of them), but in the end the code will be two orders of magnitude less and will work better.
by the way about "zambed" and remembering different experiments: windows are embedded, but there are problems with redrawing and input. It's just not usable, I stopped at "the fact that potentially works"
But it's not surprising - EAs work in one track, GUI of chart in another and there are also different things there apparently.
It's necessary to explain Windows somehow so that all required messages are sent and rendering is processed correctly. Not quite a typical GUI design when there is a control (in terms of win, it's a window after all) which has everything in another track.
Of course, I'm at a bit of a dead end here, Linux practice is not favourable. it is necessary to set some (what?) flags to the Expert process (in OS terms, it is not a GUI-tread, as it seems, and some part of it just doesn't fly to it) and/or pull AttachThreadInput.
If such a problem is solved, the prospects are bright for those who are not afraid of DLLs:
- It will be possible to use Gtk/Qt/Lazarus with their designers and really good graphics, for "dialogues inside the chart" (and toplevel are done, but it is not always convenient, still the user works with the chart)
- it will be possible to make your own "tabs" - inside MDI and from "draw a window in the chart" to "make a tab in MT" half a step. All sorts of boards/boards won't require opening a new chart
Yes, at the hack level :-)
Can someone please advise if there is any ready code for Edit Box to canvas.
I am making a rubber panel and need such an element. When you click on it, you need to enter and delete numbers and see a blinking cursor.
If not, I'll make a normal substitution when clicking on it.
Sample code of such EditCtrl (base)
Sample code of such EditCtrl (base)
Thank you. I will try it on MT5 a little later.
Sample code of such EditCtrl (base)
Sample code of such EditCtrl (base)
Is there any way to disable backspace so that the object is not deleted?
Is there any way to disable backspace so that the object is not deleted?