TRzShellList – Stop user from opening File from here

Home Forums Konopka Signature VCL Controls (formerly Raize Components) TRzShellList – Stop user from opening File from here

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #3122
      Michael Tuttle
      Participant

        Greetings All,

        Delphi 10.4, current version of components.

        Is there some way to keep users from double clicking on a file in this list (PDF, DocX, etc) and having the file displayed in a popup window?

        Thanks,

        Mike

         

         

         

         

      • #3123
        Ray Konopka
        Keymaster

          Hi Mike,

          You can create an event handler for the OnDblClickOpen event of the TRzShellList and in the handler set the Handled parameter to True. For example:

          procedure TForm38.RzShellList1DblClickOpen(Sender: TObject; var Handled: Boolean);
          begin
            Handled := True;
          end;

          Ray

        • #3125
          Michael Tuttle
          Participant

            Hi Ray,

            My TRzShellList does not have a Handled parameter.  My version shows Version 6.5.0.  Is there a newer release?

            Thanks,

            Mike

          • #3145
            Ray Konopka
            Keymaster

              Hi Mike,

              The event that I mentioned in my response was the OnDblClickOpen event and not the OnDlbClick event. The OnDblClickOpen event handler has the Handled parameter.

              Ray

            • #3148
              Michael Tuttle
              Participant

                Ah, completely overlooked that.  Thanks Ray, much appreciated.

            Viewing 4 reply threads
            • You must be logged in to reply to this topic.