Panel color

Back to topics list To post a new topic, please log in or register
avatar
288
devilian1899 2016.07.29 14:24
 
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you
avatar
1
Anthony88 2016.07.29 14:38 #
 
As I know it`s not possible
avatar
288
devilian1899 2016.07.29 17:32 #
 
Really? I saw some comercial panel with custom color.
Are they doing it differently?
avatar
Moderator
3407
GumRai 2016.07.30 09:35 #
 
devilian1899:
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you

What is the MT4 default simple panel?

You can use a rectangle label and set the background colour

avatar
164
rod178 2016.07.30 13:12 #
 
devilian1899:
Hello all,

I'm playing around with the MT4 simple panel (existed by MT4 default).
I'm trying to change the background color but have no luck so far. Is it possible? if yes, how?

Thank you
bool ChartBackColorSet(const color clr,const long chart_ID=0)
{
//--- reset the error value
   ResetLastError();
//--- set the chart background color
   if(!ChartSetInteger(chart_ID,CHART_COLOR_BACKGROUND,clr))
     {
      //--- display the error message in Experts journal
      Print(__FUNCTION__+", Error Code = ",GetLastError());
      return(false);
     }
//--- successful execution
   return(true);
}

avatar
288
devilian1899 2016.08.08 12:04 #
 
rod178:

Hello,

Thank you.
But actually it's not what I was after.

You can see the simple panel by go to "indicators" -> "examples" -> "simple panel" on your MT4
avatar
108
eddie 2016.08.08 12:23 #
 

Hi!

You can change the color in the class libraries. But your changes might be overwritten by an update. So you also have to change the filenames and the include statements. and check if there are bug-fixes with the updates und you have to include this fixes manually.

Or you change the color of each object just after you created them.

The best way is to write you own classes based on the library to do your changes, but you have to be scilled in OOP.



avatar
288
devilian1899 2016.08.09 19:06 #
 
eddie:

Hi!

You can change the color in the class libraries. But your changes might be overwritten by an update. So you also have to change the filenames and the include statements. and check if there are bug-fixes with the updates und you have to include this fixes manually.

Or you change the color of each object just after you created them.

The best way is to write you own classes based on the library to do your changes, but you have to be scilled in OOP.



Hi Eddie,

Yes, thank you for the advice.


Back to topics list  

To add comments, please log in or register