Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Module Manager    [ Add a report in this area ]  
Report #:  28946   Status: Closed
IDE forbids qualified parameters in plugin methods
Project:  Delphi Build #:  not found
Version:    10.0 Submitted By:   Jasper Neumann
Report Type:  Minor failure / Design problem Date Reported:  5/10/2006 7:35:58 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   240011
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
None
Steps to Reproduce:
Create a new win32 vlc application.
Copy the code below and paste it into Unit1.pas
Go to Design tab of Form1
In Object Inspector, select the "Events" tab
and go to "OnCloseQuery" and double-click to set the handler
---------------------------
Error
---------------------------
Property and method FormCloseQuery are not compatible.
---------------------------
OK   Help   Details >>  
---------------------------
When you try to compile this, the IDE throws an error message "The FormCloseQuery method referenced by form1.OnCloseQuery has an incompatible parameter list. Remove the reference?"
This message is plain wrong. When I click on No, everything compiles fine.
At least in Delphi-6 this was never a problem!
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure FormCloseQuery(Sender: TObject; var CanClose: system.Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: system.Boolean);
begin
//
end;

end.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01