Using IntraWeb 14.1 and Delphi Berlin,
I'm creating and parenting a frame inside a IWRegion
like this:
Page := TFrame.Create(Self);
Page.Parent := UserSession.Body_Region;
where UserSession.Body_Region;
is decleared as Body_Region: TIWRegion;
in UserSessionUnit
to pass that region from form to form at runtime, and all works fine.
The problem is that I want to hide the Frame loaded inside the UserSession.Body_Region
at runtime which is UserSession.Main_Body_Region.Component[0];
but I couldn't do it.
I've tasted it with
(UserSession.Main_Body_Region.Component[0] as TFrame).hide;
or
(UserSession.Main_Body_Region.Component[0] as TFrame).Visible:= false;
but it's not working! also there is no errors!
is there any other way to do so or did I miss something here?
property RenderInvisibleControls: Boolean;
(ofTIWRegion
)False
will help? See the docs – StuartstubRenderInvisibleControls
to false and the code started to work like a charm – Oringas