Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Center Form with Forms 10g

461968Jun 26 2006 — edited Jul 6 2006
Hello,

I've tryed to center a form using FORMS_MDI_WINDOW to retrieve the width and height of the parent window, but in 10g when i try it returns 0 for both values where is my code that I get from Oracle Forms Forum (here):


WHEN-WINDOW-ACTIVATED:

declare

mdi_ht number;
mdi_wd number;
frm_ht number;
frm_wd number;
xpos number;
ypos number;

begin

mdi_ht := get_window_property(forms_mdi_window, height);
mdi_wd := get_window_property(forms_mdi_window, width);
frm_ht := get_window_property('WND_MAIN', height)
frm_wd := get_window_proerty('WND_MAIN', width);
xpos := (mdi_wd - frm_wd)/2;
ypos := (mdi_ht - frm_ht)/2;

set_window_property('WND_MAIN', position, xpos, ypos);

end;

thanks for some help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2006
Added on Jun 26 2006
5 comments
621 views