How to position center customized logon screen in web Forms? [message #571048] |
Tue, 20 November 2012 07:37 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sohailnawazsabir
Messages: 22 Registered: April 2007 Location: Saudi Arabia
|
Junior Member |
![sohailnawazsabir%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
I would like to Center Align application login page(Syslogin) oracle froms 11gr2.
The below code is not working in forms 11g2, it's working in Forms 6i
PROCEDURE CenterWindow (win_name VARCHAR2) IS
w_mdi NUMBER;
h_mdi NUMBER;
w_win NUMBER;
h_win NUMBER;
x_win NUMBER;
y_win NUMBER;
BEGIN w_mdi := GET_WINDOW_PROPERTY( forms_mdi_window, WIDTH);
h_mdi := GET_WINDOW_PROPERTY( forms_mdi_window, HEIGHT);
w_win := GET_WINDOW_PROPERTY( win_name, WIDTH);
h_win := GET_WINDOW_PROPERTY( win_name, HEIGHT);
x_win := (w_mdi/2) - (w_win/2);
y_win := (h_mdi/2) - (h_win/2);
set_window_property(win_name, X_POS, x_win);
set_window_property(win_name, Y_POS, y_win);
END;
Please assist me.
[MERGED by LF]
[Updated on: Sat, 24 November 2012 08:50] by Moderator Report message to a moderator
|
|
|
|
How To Position Center Customised Logon Screen In Web Forms [message #571358 is a reply to message #571048] |
Sat, 24 November 2012 07:09 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sohailnawazsabir
Messages: 22 Registered: April 2007 Location: Saudi Arabia
|
Junior Member |
![sohailnawazsabir%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
I would like enter align application login webpage(syslogin.fmx)in I.E browser applet window
I try with below code, but form is not exactly in ceter of the window, please assist me.
DECLARE
screen_height NUMBER;
screen_width NUMBER;
window_height NUMBER;
window_width NUMBER;
applet_size varchar2(30);
BEGIN
applet_size := webutil_browser.getappletsize();
screen_width := substr(applet_size,1,instr(applet_size,',')-1);
screen_height := substr(applet_size,instr(applet_size,',')+1);
window_height := GET_WINDOW_PROPERTY('LOGIN', HEIGHT);
window_width := GET_WINDOW_PROPERTY('LOGIN', WIDTH);
SET_WINDOW_PROPERTY('LOGIN', X_POS, (screen_width - window_width)/2);
SET_WINDOW_PROPERTY('LOGIN', Y_POS, screen_height/2 - window_height);
END;
Regards
Sohail Nawaz
[Updated on: Sat, 24 November 2012 07:28] Report message to a moderator
|
|
|
|