Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWCustomControl's FPageContext field
#4
PS: My reluctance to use a call to OwnerForm in the IWControl destructor is because OwnerForm (which calls the IWBaseForm.GetOwnerForm method) is a damn slow piece of code. Not because that we are sloppy with it, but because there is no simple way to retrieve the owner form of a control in 100% of the use cases (e.g. a frame owned by another frame, owned by other frame, owned by no one and parented to an IWForm).

BTW, my recommendation is that you store the result of the OnwerForm call in a local variable, so you call it only once per control.
Reply


Messages In This Thread
TIWCustomControl's FPageContext field - by ebob42 - 02-14-2023, 12:25 PM
RE: TIWCustomControl's FPageContext field - by Alexandre Machado - 10-31-2023, 03:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)