Atozed Forums
Changing ancestor of TIWFrame - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Changing ancestor of TIWFrame (/thread-45.html)



Changing ancestor of TIWFrame - davenovo - 03-23-2018

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 ?


RE: Changing ancestor of TIWFrame - davenovo - 03-23-2018

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/589523/delphi-ide-treating-tframe-as-if-it-were-a-form)