码迷,mamicode.com
首页 > 数据库 > 详细

Displaying Window In Center In Oracle Forms 6i

时间:2016-12-25 23:52:07      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:nbsp   ace   amp   end   pos   set   window   procedure   passing   

Center window automatically  in Oracle Forms 6i, use the following procedure by passing window name as parameter:

Example

PROCEDURE auto_centre (pwn in varchar2) IS
vw number := get_window_property(forms_mdi_window, width);
vh number := get_window_property(forms_mdi_window, height);
BEGIN
set_window_property(pwn, x_pos, (vw - get_window_property(pwn, width)) / 2);
set_window_property(pwn, y_pos, (vh - get_window_property(pwn, height)) / 2);
END;


技术分享


Ask Your Questions B

Displaying Window In Center In Oracle Forms 6i

标签:nbsp   ace   amp   end   pos   set   window   procedure   passing   

原文地址:http://www.cnblogs.com/quanweiru/p/6220616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!