完整例程如下,可以給我分了吧?
procedure TqrBaseReport.Show_10Click(Sender: TObject); //菜單
begin
show_10.checked := false;
show_20.checked := false;
show_50.checked := false;
show_75.checked := false;
show_100.checked := false;
show_150.checked := false;
show_200.checked := false;
show_400.checked := false;
(sender as TMenuItem).Checked := true;
if sender = show_10 then
//10%
QRP_print.Zoom := 10 //QRP_print為Tquickreport
else
if sender = show_20 then
//20%
QRP_print.Zoom := 20
else
if sender = show_50 then
//50%
QRP_print.Zoom := 50
else
if sender = show_75 then
//75%
QRP_print.Zoom := 75
else
if sender = show_100 then
//100%
QRP_print.Zoom := 100
else
if sender = show_150 then
//150%
QRP_print.Zoom := 150
else
if sender = show_200 then
//200%
QRP_print.Zoom := 200
else
if sender = show_400 then
//400%
QRP_print.Zoom := 400;
end;