爱
爱上猫的鱼
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TF_CKGL.N37Click(Sender: TObject);这一段话的sender需要解释一下
var f: TF_CJMessage;
fCaption: string;
begin
if Sender is TMenuItem then 这往下需要解释一下
fCaption:= Copy((Sender as TMenuItem).Caption,0,
Pos('(',(Sender as TMenuItem).Caption)-1)
else if Sender is TToolButton then
fCaption:= (Sender as TToolButton).Caption
else fCaption:= '列表未知';
f:= TF_CJMessage.CreateForm(nil,DM.Q_MesgKF,
15,fCaption,11);
try
f.ShowModal;
finally
f.Free;
end;
end;
我是菜鸟,希望大家多多帮忙。
var f: TF_CJMessage;
fCaption: string;
begin
if Sender is TMenuItem then 这往下需要解释一下
fCaption:= Copy((Sender as TMenuItem).Caption,0,
Pos('(',(Sender as TMenuItem).Caption)-1)
else if Sender is TToolButton then
fCaption:= (Sender as TToolButton).Caption
else fCaption:= '列表未知';
f:= TF_CJMessage.CreateForm(nil,DM.Q_MesgKF,
15,fCaption,11);
try
f.ShowModal;
finally
f.Free;
end;
end;
我是菜鸟,希望大家多多帮忙。