【发布时间】:2015-03-02 19:03:35
【问题描述】:
我又来了。 我只是想了解如何使用 TColorListBox 更改矩形(形状)的颜色背景。 我知道这很容易,但是我一直在尝试为 Rectangle 设置新值时遇到异常。 我使用的命令如下:
Rectangle1->Fill->Color = ColorListBox1->Color;
功能:
void __fastcall TForm1::ColorListBox1Click(const TCustomListBox *Sender,
const TListBoxItem *Item)
{
Rectangle1->Fill->Color = ColorListBox1->Color;
}
现在我一直在尝试更改颜色时遇到的错误:
Access violation at address 00405628 in module 'Project1.exe'. Read of address 00000360.
调试器的另一个异常在这里:
First chance exception at $00405615. Exception class $C0000005 with message 'access violation at 0x00405615: read of address 0x00000360'. Process Ninterpres.exe (904)
有人可以帮帮我吗?从现在开始,非常感谢!
【问题讨论】:
标签: c++ c++builder firemonkey shapes c++builder-xe6