Name of the functions used to get/set canvas properties?

Get_view_property, Set_view_property

Showing Answers 1 - 1 of 1 Answers

Venkat80

  • Mar 23rd, 2006
 

For setting the canvas properties you can use any one of the following

SET_CANVAS_PROPERTY
  (canvas_id  CANVAS,
   property   NUMBER,
   value      VARCHAR2);
SET_CANVAS_PROPERTY
  (canvas_id  CANVAS,
   property   NUMBER,
   x          NUMBER);
SET_CANVAS_PROPERTY
  (canvas_id  CANVAS,
   property   NUMBER,
   x          NUMBER,
   y          NUMBER);
SET_CANVAS_PROPERTY
  (canvas_name  VARCHAR2,
   property     NUMBER,
   value        VARCHAR2);
SET_CANVAS_PROPERTY
  (canvas_name  VARCHAR2,
   property     NUMBER,
   x            NUMBER);
SET_CANVAS_PROPERTY
  (canvas_name  VARCHAR2,
   property     NUMBER,
   x            NUMBER,
   y            NUMBER);

Example

SET_CANVAS_PROPERTY('my_cvs', visual_attribute, 'blue_txt');

For getting the canvas properties you can use the following

FUNCTION GET_CANVAS_PROPERTY
  (canvas_id  Canvas,
   property   NUMBER); 
FUNCTION GET_CANVAS_PROPERTY
  (canvas_name  VARCHAR2,
   property     NUMBER);

Example

DECLARE
  the_width  NUMBER;
  the_height NUMBER;
  cn_id      CANVAS;
BEGIN
  cn_id      := FIND_CANVAS('my_canvas');
  the_width  := GET_CANVAS_PROPERTY(cn_id, WIDTH);
  the_height := GET_CANVAS_PROPERTY(cn_id,HEIGHT);
END;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions