procedure Tbb_qkgk.Button1Click(Sender: TObject);beginMySetCharFormat(RichEdit1, CFM_Superscript);end;这里的代码是对richedit1进行操作,我有8个RichEdit1控件,我想在点button1的时候,我的鼠标放到哪个richedit控件的时候,都可以进行和richedit同样的操作var i : Integer;begin for i := 0 to Self.ControlCount - 1 do begin if Self.Controls is TRichEdit then MySetCharFormat(TRichEdit(Self.Controls),CFM_Superscript); end;end;我这样做怎么提示不对呢,谢谢大家