TIpHtmlDataProvider published properties and events do not show in Object Inspector
Original Reporter info from Mantis: Sei Lisa
-
Reporter name: Sei Lisa
Original Reporter info from Mantis: Sei Lisa
- Reporter name: Sei Lisa
Description:
The published properties and events of the TIpHtmlDataProvider component from the IPro components palette do not show in Object Inspector.
Steps to reproduce:
- Drop an IpHtmlDataProvider component in any form.
- Go to the Events tab in the Object Inspector.
Actual result: No event is listed there.
Expected result: All the On* events should be present.
- Go to the Properties tab in the Object Inspector.
Actual result: HandledProtocols is not present; only Name, Tag, and Version appear.
Expected result: HandledProtocols should be listed.
Additional information:
The relevant part of the code seems pretty standard:
type
TIpGetHtmlDataEvent =
procedure(Sender : TObject; const URL : string; const PostData : TIpFormDataEntity; var Stream : TStream) of object;
TIpGetImageDataEvent =
procedure(Sender : TIpHtmlNode; const URL : string; var Picture : TPicture) of object;
TIpLeaveHtmlDocumentEvent =
procedure(Sender : TIpHtml) of object;
TIpCheckURLEvent =
procedure(Sender : TObject; const URL : string; var Available :Boolean; var ContentType : string) of object;
TIpReportReferenceEvent =
procedure(Sender : TObject; const URL : string) of object;
TIpExternalResourceEvent =
procedure(Sender : TObject; const URL : string) of object;
TIpCanHandleEvent =
function(Sender : TObject; const URL : string) : Boolean of object;
TIpCustomHtmlDataProvider = class(TIpAbstractHtmlDataProvider)
[...]
public
[...]
property HandledProtocols : TStrings read GetProtocols write SetProtocols;
property OnCanHandle : TIpCanHandleEvent read FCanHandle write FCanhandle;
property OnGetHtml : TIpGetHtmlDataEvent read FGetHtml write FGetHtml;
property OnGetImage : TIpGetImageDataEvent read FGetImage write FGetImage;
property OnLeave : TIpLeaveHtmlDocumentEvent read FLeave write FLeave;
property OnCheckURL : TIpCheckURLEvent read FCheckURL write FCheckURL;
property OnReportReference : TIpReportReferenceEvent read FReportReference write FReportReference;
published
// Nothing
end;
TIpHtmlDataProvider = class(TIpCustomHtmlDataProvider)
public
published
property HandledProtocols;
property OnCanHandle;
property OnGetHtml;
property OnGetImage;
property OnLeave;
property OnCheckURL;
property OnReportReference;
end;
The 'published' attribute seems to be ignored. This makes me wonder whether it's an IPro bug or a Lazarus bug.
Mantis conversion info:
- Mantis ID: 31020
- OS: Linux
- OS Build: Debian Wheezy
- Platform: i386
- Version: 1.6.2
- Fixed in version: 1.6.4
- Fixed in revision: 53471 (#7308974a)
- Target version: 1.6.4