- Button - Graphical Objects - Analytical Objects - Price Charts, Technical and Fundamental Analysis
- Rectangle - Shapes - Analytical Objects - Price Charts, Technical and Fundamental Analysis
- Ellipse - Shapes - Analytical Objects - Price Charts, Technical and Fundamental Analysis
I need to change background color of my Panel derived from CAppDialog, but since m_background is a private member of CDialog, I can't access it and change the color with the function ColorBackground(). I appritiate any help.
Just create your own panel "CPanel" ...
This example is based on a standard of Example ...\MQL5\Experts\Examples\Controls\
Just create your own panel "CPanel" ...
This example is based on a standard of Example ...\MQL5\Experts\Examples\Controls\
Thanks for reply, But I want to change the main CAppDialog background color or caption bar, not the controls on it.
Extend my plate - and you can change the background color :). By CAppDialog not have access.
Mohammad, how did you solve this?
I have same problem and any way I look at it, it's a lot of hassle. Either I have to change core lib and then keep changing it after every update, or I have to write a sh11ton of code, classes that inherit the core lib but afterward serves basically nothing else.
I created a new public method on CDialog class to change background color:
bool CDialog::setBackColor(color uColor) { if(!m_white_border.ColorBackground(uColor)) return(false); if(!m_background.ColorBackground(uColor)) return(false); if(!m_client_area.ColorBackground(uColor)) return(false); return true; }
...then, I can change background color after do the Create method of Dialog object.
I hope it help you...
I created a new public method on CDialog class to change background color:
...then, I can change background color after do the Create method of Dialog object.
I hope it help you...
thank bro
bool CDialog::setBackColor(color uColor) { if(!m_white_border.ColorBackground(uColor)) return(false); if(!m_background.ColorBackground(uColor)) return(false); if(!m_client_area.ColorBackground(uColor)) return(false); return true; }
Mohammad, how did you solve this?
I have same problem and any way I look at it, it's a lot of hassle. Either I have to change core lib and then keep changing it after every update, or I have to write a sh11ton of code, classes that inherit the core lib but afterward serves basically nothing else.
https://www.mql5.com/en/articles/4575#para4
![Improving Panels: Adding transparency, changing background color and inheriting from CAppDialog/CWndClient Improving Panels: Adding transparency, changing background color and inheriting from CAppDialog/CWndClient](https://c.mql5.com/36/19/improving-panels-adding-transparency.jpg)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use