Background (Metodo Get)

Ottiene la flag per disegnare un oggetto grafico sullo sfondo.

bool  Background() const

Valore di ritorno

Flag per disegnare l'oggetto grafico, collegato ad un'istanza della classe, sullo sfondo. Se non c'è oggetto allegato, restituisce false.

Background (Metodo Set)

Imposta la flag per disegnare un oggetto grafico sullo sfondo.

bool  Background(
   bool  background      // valore del flag
   )

Parametri

background

[in] Nuovo valore del flag per disegnare un oggetto grafico sullo sfondo.

Valore di ritorno

true - successo, false - non posso cambiare il flag.

Esempio:

//--- esempio per CChartObject::Background
#include <ChartObjects\ChartObject.mqh> 
//--- 
void OnStart() 
  { 
   CChartObject object; 
   //--- ottiene flag sfondo di un oggetto chart 
   bool background_flag=object.Background(); 
   if(!background_flag) 
     { 
     //--- imposta flag sfondo di un oggetto chart
     object.Background(true); 
     } 
  }