Panel that does not minimize or stay on top of everything
- Use English language here
- Please use the CODE button (Alt-S) when inserting code — https://www.mql5.com/en/articles/24#insert-code
- www.mql5.com
Hello everybody!
I would like to know if it is possible to make a panel stay on top of each and every other graph window that is created,
In other words, it always stays on top of everything in the metatrader, or at least that when switching chart windows this panel does not minimize...
Below is an example of the base code I used to create this panel.
However, the code you provided creates a dialog window, which is different from a panel.
#include <Controls\WndClient.mqh> CWndClient ExtPanel; int OnInit() { if(!ExtPanel.Create(0,"ExtPanel",0,20,20,400,200)) return(INIT_FAILED); ExtPanel.Detach(); ExtPanel.SetZOrder(1); // Bring the panel to the top ExtPanel.Activate(); // Activate the panel to receive events return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { ExtPanel.Destroy(); } void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam) { ExtPanel.ChartEvent(id,lparam,dparam,sparam); }
With this code, the panel will stay on top of all chart windows.
Enjoy!
Hello everybody!
I would like to know if it is possible to make a panel stay on top of each and every other graph window that is created,
In other words, it always stays on top of everything in the metatrader, or at least that when switching chart windows this panel does not minimize...
Below is an example of the base code I used to create this panel.