Quite unusual compiler behaviour (for older compilers) as seen here:

Quite unusual compiler behaviour (for older compilers) as seen here:

http://stackoverflow.com/questions/41181767/patching-instance-class-requires-base-class-to-be-in-the-same-unit

Has anyone experienced and documented this before?
http://stackoverflow.com/questions/41181767/patching-instance-class-requires-base-class-to-be-in-the-same-unit

Comments

  1. David Heffernan why not just a new TButton class in front of the form (or in a Unit put after StdCrls in the uses clause).

    type
    // hack TButton
    TButton = class(Vcl.StdCtrls.TButton)
    public
    procedure Click; override;
    end

    Tform1 = class(TForm)
    Button1: TButton
    ..

    ReplyDelete
  2. Paul TOTH I've no idea at all. I didn't ask the question, I didn't choose that approach.

    ReplyDelete

Post a Comment