Home » Developer & Programmer » Forms » How to position center customized logon screen in web Forms? (Oracle Forms 11gR2)
How to position center customized logon screen in web Forms? [message #571048] Tue, 20 November 2012 07:37 Go to next message
sohailnawazsabir
Messages: 22
Registered: April 2007
Location: Saudi Arabia
Junior Member

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

Re: Center Align application login page oracle froms 11gr2 [message #571049 is a reply to message #571048] Tue, 20 November 2012 07:47 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
It'd help if you told was what it was doing - Is it giving an error? Doing something other than what you expect?
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 messageGo to next message
sohailnawazsabir
Messages: 22
Registered: April 2007
Location: Saudi Arabia
Junior Member

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

Re: How to position center customized logon screen in web Forms? [message #571385 is a reply to message #571048] Sun, 25 November 2012 06:13 Go to previous message
sohailnawazsabir
Messages: 22
Registered: April 2007
Location: Saudi Arabia
Junior Member

There is no error message
Previous Topic: error 404 -- not found
Next Topic: Embed Animated Flash Objects (*.swf file) in Oracle Forms 11gR2.
Goto Forum:
  


Current Time: Wed Jul 03 10:31:26 CDT 2024