Ctrl-P how to disable?
Hello,
I disable pbPrint button but when press Ctrl-P print dialog is show.
How to disable Ctrl-P press when pbPrint is diabled ?
Thanks.
I disable pbPrint button but when press Ctrl-P print dialog is show.
How to disable Ctrl-P press when pbPrint is diabled ?
Thanks.
Comments
in Fr_view.pas
in formkeydown procedure
procedure TfrPreviewForm.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
...... code
find this line approx 1049
else if (Chr(Key) = 'P') and PrintBtn.Enabled then PrintBtnClick(nil)
try this change
else if (Chr(Key) = 'P') and PrintBtn.Enabled and PrintBtn.visible then PrintBtnClick(nil)
and recompile lib
regards