使用IntraWeb 14.1和Delphi Berlin,我正在创建一个IWRegion像这样的框架:
Page := TFrame.Create(Self);
Page.Parent := UserSession.Body_Region;
Run Code Online (Sandbox Code Playgroud)
其中,UserSession.Body_Region;作为decleared Body_Region: TIWRegion;在UserSessionUnit通过该区域从形式到形成在运行时,一切工作正常.
问题是我想隐藏UserSession.Body_Region在运行时加载的Frame,UserSession.Main_Body_Region.Component[0];但是我无法做到.
我尝过了
(UserSession.Main_Body_Region.Component[0] as TFrame).hide;
Run Code Online (Sandbox Code Playgroud)
要么
(UserSession.Main_Body_Region.Component[0] as TFrame).Visible:= false;
Run Code Online (Sandbox Code Playgroud)
但它不起作用!也没有错误!
有没有其他方法这样做或我错过了什么?
| 归档时间: |
|
| 查看次数: |
302 次 |
| 最近记录: |