Atozed Forums

Full Version: IWForm content inside IWRegion/IWBSRegion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to render content of secondary unit inside IWBSRegion/IWRegion of main/primary form - like TFrom inside TPanel in desktop app

Could anyone can help ?
nvm I found solution - I had to use TIWFrame as a source of secondary content:

https://github.com/kattunga/IWBootstrapF...ajax-calls

Code:
uses IWBSUtils

  region := TIWFrame1.Create(self);
  region.Name := IWBSGetUniqueComponentName(Self,'frame');
  region.Parent := IWBSRegion1;
As you found out, you must use TIWFrames for that. A form can contain zero, one, or several TIWFrames.