A
amartapple
Unregistered / Unconfirmed
GUEST, unregistred user!
一个ToolButton控件,Down属性设为flase,我想通过以下语句来改变他的按下和弹起状态,可是按下后就谈不起来了,请问怎么才能用代码控制他的状态
void __fastcall TMainForm::ToolbarModifyClick(TObject *Sender)
{
if(ToolBarModify->Down)
{
ToolBarModify->Down=false;
}
else
{
ToolBarModify->Down=true;
}
}
void __fastcall TMainForm::ToolbarModifyClick(TObject *Sender)
{
if(ToolBarModify->Down)
{
ToolBarModify->Down=false;
}
else
{
ToolBarModify->Down=true;
}
}