الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

كيفية تشغيل الـ Forms وجعلة وسط المتصفح او وسط الشاشة

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته



لدية استفسار ين : الاول كيفية تشغيل الـ Forms وجعلة وسط المتصفح او وسط الشاشة مثل الصورة المرفقة,

GEJSi.gif

_الاستفسار الثاني : هو ما علاقة الستركس ( Citrix Plugin Web ) ببرامج اوراكل هل هو المسئول عن تشغيل البرنامج لدى العميل ...؟

بتاريخ:

-- WIN_CENTER -----------------------------------------------------------------------
-- This procedure simply centers the named Window in the MDI window.
-- ----------------------------------------------------------------------------------
PROCEDURE WIN_CENTER(winname in varchar2) IS
   xmax  NUMBER ; --Maximum horizontal window size
   ymax  NUMBER ; --Maximum verticle window size
   w  NUMBER := get_window_property(winname, width);--Width of window being positioned
   h  NUMBER := get_window_property(winname, height);--Height of window being positioned
   x  NUMBER;  -- X position of window being positioned.
   y  NUMBER;  -- Y position of window being positioned.
   y_offset_ln NUMBER := 0; --Verticle offset to take into account toolbar on client server.
   x_offset_ln NUMBER := 0; --Horizontal  offset to take into account toolbar on client server.
BEGIN 
IF get_application_property(USER_INTERFACE) = 'WEB' THEN
--Hard coded values for running on the web because the mdi window size is not known.
xmax := 752;
ymax := 461;
-- No offeset because ymax and xmax are hard coded on Web.
x_offset_ln := 0;
y_offset_ln := 0;
ELSE
xmax := get_window_property(FORMS_MDI_WINDOW, width);
ymax :=get_window_property(FORMS_MDI_WINDOW, height);
y_offset_ln := 20;
x_offset_ln := 4;
END IF;
ymax := ymax - y_offset_ln;
xmax := xmax - x_offset_ln;

   IF w > xmax THEN
    x := 0;
   ELSE 
    x := (xmax - w)/2;
   END IF;

   IF h > ymax THEN
    y := 0;
   ELSE 
y := (ymax - h)/2;
   END IF;
   set_window_property(winname,x_pos, x - 75);
   set_window_property(winname,y_pos, y);
END WIN_CENTER; 

بتاريخ:
  • كاتب الموضوع

الله يعطيك العافية ولكن اين يوضع هذا الكود ...؟

بتاريخ:

انت بتعمل program unit وتحط فيها الكود ده
وبعد كده تروح على الفورم لفل وتعمل تريجر when-new-form-instance
وتنده على البروسيديور ده بلطريقه دى

WIN_CENTER('YOUR WINDOWS NAME');

بتاريخ:
  • كاتب الموضوع

الله يجزاك خير ... ولكن لم يعمل الكود ..!

بتاريخ:

الكود اللى كتبته فوق ده انا جربته قبل كده وهو شغال كويس على العموم جرب ده برده
http://mahmoudoracle.blogspot.com/2012/07/center-canvas-and-window-in-oracle.html#.URdOAB30Ams

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.