void __fastcall TFormEdit::MnuItmCharacterCenterClick(TObject *Sender)
{
JustifyCharacter(Sender);
}
void __fastcall TFormEdit::JustifyCharacter(TObject *Sender)
{
MnuItmCharacterLeft->Checked=false;
MnuItmCharacterRight->Checked=false;
MnuItmCharacterCenter->Checked=false;
if(dynamic_cast(Sender)!=0)
dynamic_cast<(Sender)->Checked=true;
{
if(MnuItmCharacterLeft->Checked)
RichEdit->Paragraph->Aligment=taLeftJustify;
else if(MnuItmCharacterRight->Checked)
RichEdit->Paragraph->Aligment=taRightJustify;
else if(MnuItmCharacterCenter->Checked)
RichEdit->Paragraph->Aligment=taCenterJustify;
}
}
[C++ Error] childwin.cpp(120): E2268 Call to undefined function 'JustifyCharacter'
[C++ Error] childwin.cpp(124): E2316 '_fastcall TFormEdit::JustifyCharacter(TObject *)' is not a member of 'TFormEdit'
--------------------next---------------------
阅读(1259) | 评论(0) | 转发(0) |