|
제가 버튼 클릭시 글자가 빨간색으로 변하는 소스를 봤는데요
소스 내용이 이해가 잘 안되네여;;
설명 좀 부탁드립니다.
void __fastcall TForm1::SpeedButton1Click(TObject *Sender)
{
m_bAuto[CD_01] = !m_bAuto[CD_01];
if(m_bAuto[CD_01] == true)
{
SpeedButton1->Font->Color = clRed;
}
else
{
SpeedButton1->Font->Color = clWindowText;
}
}
|