|
发表于 2007-1-22 11:51:02
|
显示全部楼层
楼主,文档操作的工具栏对应的Action是TBizDocAction
你可以在工具栏的 BeforeAction 事件中来处理:
procedure TMainForm.DocViewBarBeforeAction(Sender: TObject);
begin
case TBizDocAction(Sender).ID of
BizActnConsts.ActionPrintPrint: JsDialogs.ShowMsg('Print', '');
BizActnConsts.ActionPrintPreview: JsDialogs.ShowMsg('Preview', '');
BizActnConsts.ActionPrintSetup: JsDialogs.ShowMsg('PrintSetup', '');
end;
end; |
|