Recent

Author Topic: [SOLVED] Inheriting a form residing in a package  (Read 1716 times)

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
[SOLVED] Inheriting a form residing in a package
« on: October 29, 2023, 01:12:18 am »
The main form of my project inherits a form (of type TRootForm) residing in a package I created. TRootForm has a menu and an action list.
When I open the main form of my project, I do not see the menu and the action list in TRootForm. The main form inherits from TRootForm. How can I extend the menu and the action list in my project? Should I do it in code or is there some way to make the menu and action list appear in the descendant form of my project so I could customize them visually?

Appreciate any suggestion you might have.

« Last Edit: October 29, 2023, 07:25:40 am by EganSolo »

jamie

  • Hero Member
  • *****
  • Posts: 6781
Re: Inheriting a form residing in a package
« Reply #1 on: October 29, 2023, 01:16:00 am »
did you call the inherited constructor first before doing the code in the final constructor ?
The only true wisdom is knowing you know nothing

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
SOLVED: Inheriting a form residing in a package
« Reply #2 on: October 29, 2023, 07:25:24 am »
Hi Jamie,
   Whoa! I just did: I added the constructor to the descendant form and called inherited Create(TheOwner) and bingo, the form now shows as expected. I feel silly now. If you happen to know offhand a wiki or a documentation on form inheritance, could you please post it here? That would be great!

   Thanks for your reply! Much appreciated.

 

TinyPortal © 2005-2018