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.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:02AM
    Hi
    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 ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.