TRightClickEvent = procedure(Sender: TObject;
Parameters: TRightClickParameters) of Object;
The TRightClickEvent type points to a handler for the OnRightClick event. Sender is the THtmlViewer where the click occured. Parameters is a record whose fields contain information for constructing a popup menu. This form of parameter passing is used to allow additional fields to be added in the future.
Currently TRightClickParameters is defined as follows:
TRightClickParameters = Class(TObject)
URL, Target: string;
Image: TImageObj;
ImageX, ImageY: integer;
ClickWord: string;
end;
URL and Target are information about an anchor. These fields are blank if the mouse is not over an anchor.
Image is a pointer to the TImageObject managing an underlying image. ImageX and ImageY give the X and Y position within the image.
ClickWord is the word underneath the mouse pointer, if any.
See also: