هذه شاشة المشروع التوضيحى للـ CALL_FORM Built-in
حمل المشروع من هـــــــــــــــــــــــــــــــــــــــنا
CALL_FORM Built-in
SET_VIEW_PROPERTY
SET_CANVAS_PROPERTY
/*
** Built-in: SCROLL_VIEW
** Example: Scroll the view whose name is passed in 10% to
** the right or left depending on the 'direction'
** parameter.
*/
PROCEDURE Scroll_ten_percent
(viewname VARCHAR2,
direction VARCHAR2)
IS
vw_id VIEWPORT;
vw_wid NUMBER;
vw_x NUMBER;
cn_id CANVAS;
cn_wid NUMBER;
ten_percent NUMBER;
new_x NUMBER;
old_y NUMBER;
BEGIN
/*
** Get the id's for the View and its corresponding canvas
*/
vw_id := Find_view(viewname);
cn_id := Find_canvas(viewname);
/*
** Determine the view width and corresponding canvas
** width.
*/
vw_wid := Get_view_property(vw_id,width);
cn_wid := Get_canvas_property(cn_id,width);
/*
** Calculate how many units of canvas width are outside of
** view, and determine 10% of that.
*/
ten_percent := 0.10 * (cn_wid - vw_wid);
/*
** Determine at what horizontal position the view
** currently is on the corresponding canvas
*/
vw_x := Get_view_property(vw_id,viewport_x_pos_on_canvas);
/*
** Calculate the new x position of the view on its canvas
** to effect the 10% scroll in the proper direction.
** Closer than ten percent of the distance to the edge
** towards which we are moving, then position the view
** against that edge.
*/
IF direction = 'LEFT' THEN
IF vw_x > ten_percent THEN
new_x := vw_x - ten_percent;
ELSE
new_x := 0;
END IF;
ELSIF direction = 'RIGHT' THEN
IF vw_x < cn_wid - vw_wid - ten_percent THEN
new_x := vw_x + ten_percent;
ELSE
new_x := cn_wid - vw_wid;
END IF;
END IF;
/*
** Scroll the view that much horizontally
*/
old_y := Get_view_property(vw_id,viewport_y_pos_on_canvas);
Scroll_view(vw_id,new_x,old_y);
END;
SCROLL_VIEW
/*
** Built-in: PRINT
** Example: Print the current window.
*/
BEGIN
Print;
END;
PRINT Built-in
تظبيط قيم متغيرات الـ SQLPLUS لمرة واحدة فقط
الدخول مباشرتاً الى برنامج الـ SQL*PLUS
تعلم الأوراكل بالعربى © 2008 | Blog design by Randomness