2. Objectives
• Describe Canvases
• Type of Canvases
• Creating different types of canvases
• Properties of Canvases and Windows
http://ebiztechnics.blogspot.com
3. Canvas and windows
• Canvas: Surface on which you “paint” visual objects
To see a canvas and its objects, display the canvas in a window.
• Window: Container for Form Builder
visual objects
Two types
- Modal
- Modeless
http://ebiztechnics.blogspot.com
4. Canvases, windows and viewport
Forms MDI
Window
Canvas
Forms SDI
Window
http://ebiztechnics.blogspot.com
5. Types of canvases
• Form Builder Provides 4 different types of canvases:
1. Content Canvas
2. Stacked Canvas
3. Toolbar Canvas
4. Tab Canvas
http://ebiztechnics.blogspot.com
7. Content Canvas
• It’s the Default Canvas
• Also Known as Base Canvas
• View occupies the complete window
• At a time one content canvas is display in a window.
• Every window must contain at least one content canvas
http://ebiztechnics.blogspot.com
8. Creating a Content Canvas
• Implicitly created
– Using the Layout wizard
– Layout Editor
• Explicitly created
– Select the Canvas node in Object Navigator and click create icon.
http://ebiztechnics.blogspot.com
10. Stacked Canvas
• Displayed on top of a content canvas
• Shares a window with a content canvas
• Size:
– Usually smaller than the content canvas in the same window
– Determined by viewport size
• Created in:
– Object Navigator
– Layout Editor
http://ebiztechnics.blogspot.com
11. Toolbar Canvas
• Three types:
– Vertical toolbar
– Horizontal toolbar
– Forms MDI toolbar
• Provide:
– Standard look and feel
– Alternative to menu or function key operation
– Generally used for placing push Buttons with functionality
http://ebiztechnics.blogspot.com
12. Toolbar Canvas Properties
• Canvas Type
• Window
• Width
• Height
• Form Module properties:
– Form Horizontal Toolbar Canvas
– Form Vertical Toolbar Canvas
http://ebiztechnics.blogspot.com
13. Tab Canvas
• Enables you to organize and display related information on
separate tabs
• Consists of one or more tab pages
• Provides easy access to data
• Created in:
– Object Navigator
– Layout Editor
http://ebiztechnics.blogspot.com
15. Window Properties
• Title
• Window Style
• Modal
• Hide On Exit
• Functional properties GUI options:
- Close Allowed - Maximize Allowed
- Move Allowed - Minimize Allowed
- Resize Allowed - Inherit Menu
http://ebiztechnics.blogspot.com
16. Summary
• Creating Canvases
• Types of Canvases
• Properties of Canvases
• Windows and its properties
http://ebiztechnics.blogspot.com
Notas do Editor
What is a Viewport?
A viewport is an attribute of a canvas. It is effectively the visible portion of, or view
Onto, the canvas.
Note:
At runtime, only one content canvas can display in a window at a time. However,you
Can assign multiple content canvases to a window.
Note:
Double-clicking the icon for a canvas in the Object Navigator will invoke the Layout
Editor instead of the Property pallet.
Uses and Benefits of Stacked Canvases
Creating an overlay effect within a single window
Displaying headers that display constant information, such as company name
Creating a cascading or a revealing effect within a single window
Displaying additional information
Displaying information conditionally
Displaying context-sensitive help
Hiding information
Note:
The MDI toolbar is available only for Microsoft Windows