Changing ancestor of TIWFrame

<< Click to Display Table of Contents >>

Navigation:  Forum >

Changing ancestor of TIWFrame

Forum link

 


 

03-23-2018, 03:05 AM:

 

If I create a new intrawb frame the class looks as follows:

 

Code:

 

TIWFrame1 = class(TFrame)

 

    IWFrameRegion: TIWRegion;

 

  private

 

    { Private declarations }

 

  public

 

    { Public declarations }

 

  end;

 

 

 

if I made a small change

 

Code:

 

  TMyFrame=class(TFrame)

 

  end;

 

  TIWFrame1 = class(TMyFrame)

 

    IWFrameRegion: TIWRegion;

 

  private

 

    { Private declarations }

 

  public

 

    { Public declarations }

 

  end;

 

 

 

When I close and reopen my program, the IDE complains that "property TabOrder cannot be found". This also happens if I create a new delphi frame in another unit, and then try to inherit the IW frame from that.

 

I have a regular TFrame that has some base functionality that I want to inherit in my IWFrame. Is there a way to change the ancestor of the TIWFrame1 to some other TFrame ?

 


 

03-23-2018, 04:07 AM:

 

Turns out this has nothing to do with IW, and just a TFrame inheritance craziness. Solution was found on good old stackoverflow (https://stackoverflow.com/questions/5895...ere-a-form)