C++ builder bulletsbutton(项目符号)的快捷按钮怎么设计
RichEdit1->Paragraph->Numbering = (TNumberingStyle)BulletsButton->Down;
程序如上 , 但是运行到等号后面的BulletsButton->的时候就会出现错误提示:源代码错误 无法调用源文件
怎么解决? 或者如何设计?
[解决办法]
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
ToolButton2->Style = tbsCheck;
}
// ---------------------------------------
void __fastcall TForm1::ToolButton2Click(TObject *Sender)
{
RichEdit1->Paragraph->Numbering = ToolButton2->Down? nsBullet: nsNone;
}