P. 1
51362321-OR-Oracle-Forms-6i-8-0-WB

51362321-OR-Oracle-Forms-6i-8-0-WB

|Views: 507|Likes:
Published by srinivasdreddy

More info:

Published by: srinivasdreddy on Mar 14, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/26/2013

pdf

text

original

Canvas and viewport

Think of the viewport as a rectangle positioned on the canvas. The area of the canvas that
is within the viewport is what operators see displayed in the window at runtime.

When the viewport is the same size as the canvas, all of the canvas is visible to the
operator.

When the viewport is smaller than the canvas, only the part of the canvas that is within the
viewport is visible

For a content or toolbar canvas, the viewport is defined by the window in which the canvas
is displayed. Changing the size of the window at runtime (for example, by resizing it with
the mouse) effectively changes the size of the viewport for that window's content canvas

For a stacked or tab canvas, the size of the viewport can be specified at design time by
setting the Viewport Width and Viewport Height properties

Canvas properties

For any type of canvas, you can set properties that specify the viewport's point of origin on
the canvas; that is, to position the viewport rectangle at a specific location on its canvas.
Moving the viewport, like resizing the viewport, changes the part of the canvas that
operators see in the window at runtime.

When a content canvas is larger than its viewport (that is, larger than its window), the
window can be scrolled to change the position of the viewport on the canvas, thus making a
different part of the canvas visible.

© SunGard 2004-2008

Oracle Forms 6i

Page 31

Canvas creation methods

There are three ways to create a content canvas in Oracle Forms:

• Create a base table data block in the New Block window. A new canvas will
be created if the specified name does not exist.

• Invoke the Layout Editor in a new form. (If there are no canvases in a form
when you invoke the Layout Editor, Oracle Forms automatically creates a
default canvas for you to work on.)

• Create a canvas in the Object Navigator. You can create a canvas of any
type (Content, Stacked, Tab, Toolbar) in the Navigator.

Create via Object Navigator

To create a canvas in the Object Navigator:

1. Highlight the Canvases node.

2. Select Navigator→Create or click the

icon. The default canvas is

Content.

3. Highlight the canvas name and choose Tools Property Palette to invoke the
property palette.

4. Set the Window property to specify the window in which you want the canvas
to be displayed. By default, new canvases are assigned to the first window listed
under the Windows node in the Navigator.

5. To display the new canvas in the Layout Editor, double-click the canvases object
icon in the Navigator.

© SunGard 2004-2008

Oracle Forms 6i

Page 32

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->