Hi. I created a basic application that consists of 3 panels. mainPanel, loginPanel, and indexPanel. mainPanel includes loginPanel. After entering username and password and cliciking login we move to indexPanel. This is basic autorisation test page. My mainframe as below.
<mainframe title="Internet Usage Application" width="410" height="220" resizable="N" close="N" minimize="N" maximize="N"> <borderlayout> <cell docking="Center" name="index"> <include panelname="mainPanel"/> </cell> </borderlayout> </mainframe>
After the login process the size of indexPanel stays as it was in loginPanel. My question is - how can i change mainframe attributes after logon or is there any preferred method? Thanks in advance.
asked 04 Apr '13, 13:58
You can use the api_frame.setHeight and setWidth API's to programatically change the hight or width of the mainframe. You can also use api_frame.maximize(in_framename_tx varchar2) API to maximize the mainframe and have it fill the browser window completely. Finally, you can use the api_frame.setTitleBarVisible API to hide the window header of the mainframe.
You can find more about these API's in the API documentation at http://theformspider.com/API/index.html
To start your application as maximized and with a hidden titlebar to give it a more web-like feeling, use the following:
<mainframe maximizeonstartup="Y" titlebarvisible="N">
Hope this helps.