trichview.com

trichview.support




suppressing TAB


Return to index


Author

Message

Michael Philbrick

Posted: 11/12/2004 23:52:25


Greetings,


I need to have TRichView trap the TAB key (thus I keep rvoWantTabs=True)

but I do not want it to display. Sample code:


procedure TfrMacroNavigator.rvMacNavKeyDown(Sender: TObject; var Key: Word;

  Shift: TShiftState);

begin

  with rvMacNav do begin

    if tbContinue.Enabled then begin

      // tab pressed

      if Key = VK_TAB then begin

        Key := 0;

        if (ssShift in Shift) then

..


The tabulator still appears in the document. Two questions:


1) as with other controls, do I need to trap it with CMDialogKey or can I

suppress it within TRichView?


2) are there any other keys that behave like this (RETURN, DEL, BKSP, UP

ARROW, etc), or can all others be supressed by assigning Key := 0?


Michael





Powered by ABC Amber Outlook Express Converter