class CControlPanel : public CAppDialog { public: ... void ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam); ... } void CControlPanel ::ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam) { CAppDialog::ChartEvent(id, lparam, dparam, sparam); ... }
//+------------------------------------------------------------------+ //| ChartEvent function | //+------------------------------------------------------------------+ void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { Panel.ChartEvent(id, lparam, dparam, sparam); }
Try this
Thank you Le Minh Duc.
This solution works much better.
But isn't there any way to completely disable interaction with the button. Perhaps we need to override methods of more basic classes?
Mykola Khandus #:
Thank you Le Minh Duc.
This solution works much better.
But isn't there any way to completely disable interaction with the button. Perhaps we need to override methods of more basic classes?
Oh, so you want to disable a button?
Try it:
m_m5label.Disable();

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
Well, I have the next issue. I create button inherided from CButton class.
TryIng to iverride OnMouseUp and Down functions to prevent a button click. But it doesn't work.
I want to use a button as a label with a background and the ability to change its color. Or as a color indicator (light bulb). But I can't do anything to prevent the button from being pressed.
I tried to do this in a custom class inheriting from CAppDialog.