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

Javid%20Hasanov's gravatar image

Javid Hasanov
11
accept rate: 0%


HI Javid,

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.

Yalim

link

answered 04 Apr '13, 14:12

Yalim%20K.%20Gerger's gravatar image

Yalim K. Gerger ♦♦
1914
accept rate: 20%

edited 04 Apr '13, 14:14

Great Thanks Yalim.

(05 Apr '13, 00:34) Javid Hasanov
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×32
×4

Asked: 04 Apr '13, 13:58

Seen: 938 times

Last updated: 05 Apr '13, 00:34


© Copyright Gerger 2017