0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder XE4, 10.2 Tokyo > TeeChart > TColorBoxを使ったSeriesの色変更 > ItemIndexでなくSelectedを使う

Last updated at Posted at 2015-12-11
動作環境
C++ builder XE4
    TeeChart Lite v2013.08.130414
RAD Studio 10.2 Tokyo Update 2 (追記 2018/01/10)
    TeeChart v2016.17.160129 32bit VCL

http://qiita.com/7of9/items/5f5b6bebfee1f7a46efe
においてシリーズの色変更を記載した。

TColorBoxの値を使って色変更をしようとして失敗した。

Chart1->Series[0]->SeriesColor = ColorBox1->ItemIndex;

上記ではなく下記が正しい。

Chart1->Series[0]->SeriesColor = ColorBox1->Selected;

SelectedはLiveBindingを調べている時にも出てきたが、これまで使用したことがなかった。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?