Using IntraWeb 14.1 and Delphi Berlin, I create and raise a frame inside IWRegion
as follows:
Page := TFrame.Create(Self);
Page.Parent := UserSession.Body_Region;
where it UserSession.Body_Region;
decreases as Body_Region: TIWRegion;
in UserSessionUnit
to transfer this area from form to form at runtime, and everything works fine.
The problem is that I want to hide the frame loaded internally UserSession.Body_Region
at runtime, which UserSession.Main_Body_Region.Component[0];
, but I could not do it.
I tried it with
(UserSession.Main_Body_Region.Component[0] as TFrame).hide;
or
(UserSession.Main_Body_Region.Component[0] as TFrame).Visible:= false;
but it does not work! also no errors!
Is there any other way to do this or am I missing something here?
source
share