- This topic has 4 replies, 2 voices, and was last updated 2022-06-29 at 4:16 am by .
Viewing 4 reply threads
Viewing 4 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › TRzShellList – Stop user from opening File from here
Tagged: TRzShellList
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
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
Hi Ray,
My TRzShellList does not have a Handled parameter. My version shows Version 6.5.0. Is there a newer release?
Thanks,
Mike
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
Ah, completely overlooked that. Thanks Ray, much appreciated.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)