Changing background image in TeeChart Delphi XE8 at run-time -


i use gallery pictures (metal, wood, stone, clouds, etc.) available @ design time under chart/panel/image/gallery.

if set @ design time, can disable @ run time with:

 g.backimage := nil; 

but if want set particular value, e.g. with

 g.backimage := 'metal'; 

i 'incompatible types' error, because compiler requires tbackimage value. not have source codes, , cannot find appropriate values on several google searches.

thinking could enum, tried typecasting one:

 g.backimage := tbackimage(1); 

but generates exception. tried "guess" names, tbimetal, tbmetal, tmetal, , on, no avail...

what values?! thank you

tbackimage class methods must call.

chart.backimage.loadfromfile('full/path/to/imagefile'); 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -