Atozed Forums
IWForm content inside IWRegion/IWBSRegion - 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: IWForm content inside IWRegion/IWBSRegion (/thread-2364.html)



IWForm content inside IWRegion/IWBSRegion - TinyCthulu - 04-12-2021

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 ?


RE: IWForm content inside IWRegion/IWBSRegion - TinyCthulu - 04-13-2021

nvm I found solution - I had to use TIWFrame as a source of secondary content:

https://github.com/kattunga/IWBootstrapFramework/wiki/Dinamically-create-and-destroy-controls-in-ajax-calls

Code:
uses IWBSUtils

  region := TIWFrame1.Create(self);
  region.Name := IWBSGetUniqueComponentName(Self,'frame');
  region.Parent := IWBSRegion1;



RE: IWForm content inside IWRegion/IWBSRegion - Alexandre Machado - 04-15-2021

As you found out, you must use TIWFrames for that. A form can contain zero, one, or several TIWFrames.