OnFileBrowse Event


Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

Declaration

Type TFileBrowseEvent = procedure(Sender, Obj: TObject; var S: string) of Object;

property OnFileBrowse: TFileBrowseEvent;

Description

An <input> tag with a type attribute of file, as

<input type="file" ...>

displays as an edit box with an associated Browse button. The OnFileBrowse event is triggered when the Browse button is clicked.

SenderThe THtmlViewer containing the Browse button.

ObjThe TEditFormControlObj of the edit box.

SOn input, S will be the contents of the edit box. The event handler would presumably display a file dialogbox and return the filename selected in S.