section 5.0

38
SECTION 5.0 -----> 第第第第 MODIFY THE APPEARANCE OF A FORM 第第 第第第第第第

Upload: ivor-dejesus

Post on 02-Jan-2016

43 views

Category:

Documents


1 download

DESCRIPTION

SECTION 5.0. -----> 第五章节 MODIFY THE APPEARANCE OF A FORM 修改一个表单的外表. OBJECTIVES. -----> 目的 At the end of this section, you should be able to: 在这个章节的最后 , 你将能 : · Create visual objects (boilerplate graphics, boilerplate text, and imported graphics) upon the canvas. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: SECTION 5.0

SECTION 5.0

• -----> 第五章节• MODIFY THE APPEARANCE OF A FORM

• 修改一个表单的外表

Page 2: SECTION 5.0

OBJECTIVES

• -----> 目的• At the end of this section, you should be able to:

• 在这个章节的最后 , 你将能 :

• · Create visual objects (boilerplate graphics, boilerplate text, and imported graphics) upon the canvas.

• 在 canvas 创建可视化的对象 .( 模板图片 , 模板文本跟导入图片 )

• · Format visual objects.

• 格式化可视化对象• · Apply patterns and colors to visual objects.

• 应用各种模式跟各种颜色到可视化对象• · Copy, delete arrange, and resize visual objects upon the canvas.

• 在 canvas 上拷贝 , 删除布置跟重新设定可视化对象的大小 .

• MODIFY THE APPEARANCE OF A FORM

• 修改一个表单的外表

Page 3: SECTION 5.0

OVERVIEW

• -----> 总体介绍• Create and arrange items and boilerplate text and graphics in a form module

with the Layout Editor.

• 在一个表单模块使用 Layout 编辑器创建和布置项目跟模板文字跟图片• Operations in the Layout Editor

• 在 Layout 编辑器操作• · Add boilerplate graphics and text to a canvas.

• 增加模板图片跟正文到一个 canvas.

• · Set font and color of boilerplate graphics and text.

• 设定模板图片 , 文字的字体跟色彩• · Apply patterns to boilerplate graphics.

• 应用各种方法到模板图片

Page 4: SECTION 5.0

continue......

• · Import boilerplate images from a file.

• 从一个文件导入模板图象• Cut, copy, and paste objects.

• 剪切 , 拷贝跟粘贴对象• · Align, resize, and rotate objects.

• 排列 , 重设大小跟使对象循环• · Manipulate a group of objects.

• 操作一个类的对象• MODIFY THE APPEARANCE OF A FORM

• 修改一个表单的外表• Display and modify the appearance of a form through the Oracle Form

s Layout Editor, which contains a number of features to assist in the graphical design.

• 通过 Oracle 表单 layout 编辑器显示和修改一个表单外表 , 它包含一系列特点来帮助图形设计

Page 5: SECTION 5.0

Layout Editor Features

• ----->Layout 编辑器特性• FEATUREDESCRIPTION

• Workspace 工作空间• Area upon which to create and move visual elements.

• 创建跟移动可视化元素的区域• Tool Box 工具箱• Collection of iconified tools for creating and manipulating visual elements

• 用小图标表示的工具的集合 , 用来创建跟操作可视化元素• Menu 菜单• Set of choices for editing text, controlling changes, arranging visual elements, and specif

ying the attributes for visual elements.

• 编辑文本 , 控制变化 , 排列可视化元素跟为可视化元素指定属性的一系列选项• Status line 状态栏• Auxiliary information for marking the position of the mouse and the degree of magnifica

tion while moving around the workspace.

• 当在工作空间内移动时 , 标记鼠标位置 , 跟扩大的程度的辅助信息• Rulers (Optional) 标尺• Numbered lines along the top and side of the workspace for guiding the arrangement of

visual elements.

• 在工作空间随着顶部跟侧面编了号的线 , 来引导可视化元素的安排

Page 6: SECTION 5.0

CREATE BOILERPLATE TEXT

• -----> 创建模板文本• Create boilerplate text with the boilerplate text tool from the tool palett

e.

• 使用工具调色板中的模板文本工具创建模板文本

Page 7: SECTION 5.0

Steps to Modify or Add Boilerplate Text

• -----> 修改或增加模板文本的步骤• 1. Move the pointer to the Boilerplate tool palette.• 移动指针到模板工具调色板• 2. Click on the boilerplate text tool.• 单击模板工具调色板• 3. Position the cursor on the canvas at the point desired for the boil

erplate text top left hand corner and clicks the mouse. • 定位光标到 canvas 上 , 定义到所需要的模板文本左上角并按鼠标• 4. Type in, or edit, the required boilerplate text.• 键入 , 或编辑所需要的模板文本• 5. Press OK.• 按 OK

Page 8: SECTION 5.0

COLOR BOILERPLATE TEXT

• -----> 模板文本润色• Besides applying color to the interior and the edge of a boilerplate text

region, apply color to the text itself with the T icon.

• 除了应用色彩到模板文本的内部跟边缘地带 , 使用 T 图标应用色彩到文本本身

Page 9: SECTION 5.0

Steps to Change the Color of Boilerplate Text

• -----> 改变模板文本的色彩的步骤• 1. Select the desired boilerplate text.

• 1, 选择所要的模板文本• 2. Click on the T icon.

• 单击 T 图标 .

• 3. Move the pointer to the Foreground Color icon.

• 移动鼠标到前景色图标• 4. Depress and hold the Select button on the mouse.

• 按下并保持鼠标的 Select 按纽• 5. Drag the pointer to the right, through the color palette, to the

desired color.

• 拖动鼠标指针到右边 , 通过调色板 , 取得需要的色彩 .

• 6. Release the Select button on the mouse.

• 放开鼠标上的 Select 键 .

Page 10: SECTION 5.0

NOTES:

• -----> 注意 :

• · Color the interior and the edge of a boilerplate text region in the same manner as any boilerplate graphic.

• 为模板文本内部跟为模板文本边缘上色使用同样的方法作任何模板图• · Keep track of the current colors for the fill region, the edge, and the text by vi

ewing the current state of the large rectangle in the tool box.

• 通过观察在工具箱里的大矩形当前状态保持跟踪当前为内部 , 边缘跟文本上色的动作 .

• FORMAT ITEMS

• 格式项目• Modify the appearance of items in the same manner as boilerplate text.

• 使用与模板文本同样的方法修改项目的外表• Modify Item Attributes

• 修改项目的属性• · Font·---Size---Weight--- Style

• · Justification

• 管辖

Page 11: SECTION 5.0

COLOR ITEMS

• -----> 色彩项目• Set the color of items similar to boilerplate text.

• 设定项目的颜色与模板项目相近 .

Page 12: SECTION 5.0

Steps to Change the Color of an Item

• -----> 改变一个项目色彩的步骤• 1. Select the desired item or items.

• 选择想要的项目或多个项目• 2. Click on the Fill icon.

• 单击 Fill 图标• 3. Move the pointer to the Foreground Color or Background Col

or icon.

• 移动鼠标到前景色跟背景色图标• 4. Depress and hold the Select button on the mouse.

• 按下鼠标的 select 按纽• 5. Drag the pointer to the right, through the pattern palette, to th

e desired color.

• 拖动指针到右边 , 通过调色板 , 到所需要的颜色 .

• 6. Release the Select button on the mouse.

• 放开鼠标 Select 键 .

Page 13: SECTION 5.0

IMPORT BOILERPLATE IMAGES

• -----> 导入模板图象• Import an image as boilerplate.

• 导入一个图象作为模板• Import an Image

• 导入一个图象• 1. Select the Edit, Import, Image option from the Layout Editor

menu.

• 选择 Layout 编辑器菜单中的 Edit, Import, Image 选项

Page 14: SECTION 5.0

2. Choose the Format from the poplist on the Import(table)

• -----> 从 Import 的弹出菜单选择格式• IMAGE TYPE DESCRIPTION

• Oracle Graphical Format

• Oracle 图形格式 Image written by another Oracle product

• 由另一个 Oracle 产品写出来的图象• TIFF Tag Image File Format; an industry standard format

• 标记图象文件格式 ; 一个工业标准格式• JFIF

• JPEG File Image Format; an industry standard format

• JPEG 文件图形格式 ; 一个工业标准格式

Page 15: SECTION 5.0

IMPORT BOILERPLATE IMAGES(continue)

• -----> 导入模板图象• 3. Press OK.

• 按 OK

• 4. Choose the appropriate directory and image file on the File dialog box.

• 在文件对话框选择适当的目录跟图象文件• 5. Press OK.

• 按 OK

Page 16: SECTION 5.0

MAGNIFY THE LAYOUT EDITOR DISPLAY

• -----> 放大 Layout 编辑器显示• Magnify a region of the canvas that displays within the Layout Editor

window to perform detailed work upon visual objects.

• 在 layout 编辑器窗口里显示放大在 canvas 中一个区域来操作具体可视化对象

Page 17: SECTION 5.0

Steps to Magnify and Demagnify the Workspace within the Window

• -----> 在窗口放大或缩小工作区的步骤• 1. Magnify a region to twice its size by pressing the Zoom tool a

nd clicking on the portion of the screen to magnify.

• 1. 通过按 Zoom 工具 , 单击屏幕上要放大的部分来放大一个区域到它的两倍大 ,

• 2. Demagnify a region by pressing [Shift] and the Zoom tool.

• 通过按 {Shift} 跟 Zoom 工具来缩小一个区域• 3. Choose the Arrange, Fit to Window option from the Layout E

ditor menu to shrink the canvas to fit entirely within the Layout Editor window frame.

• 从 Layout 编辑器菜单选择 Arrange, Fit to Window 来收缩 canvas来完全适应 Layout 编辑器窗口的 frame

• 4. Choose the Arrange, Normal Size option from the Layout Editor menu to resume the normal size.

• 从 Layout 编辑器菜单中选择 Arrange, Normal Size 选项来回到正常大小

Page 18: SECTION 5.0

MANIPULATE VISUAL OBJECTS

• -----> 操作可视化对象• After creating visual objects on the canvas, either manually or with the defaul

t block facility, perform operations upon them.

• 在 canvas 中创建可视化对象后 , 手动或者使用默认块工具 , 在它们身上运行应用程序 .

• Operations Upon Visual Objects

• 在可视化对象操作• · Copy visual objects

• 拷贝可视化对象• · Remove visual objects

• 移动可视化对象• · Arrange visual objects in different locations.

• 整理可视化对象到不同的定位• · Resize visual objects in different dimensions.

• 在不同的维度重设可视化对象的大小• · Overlap visual objects one behind the other.

• 重叠可视化对象到另外一个对象后面

Page 19: SECTION 5.0

MANIPULATE VISUAL OBJECTS

• -----> 操作可视化对象• Perform an operation upon an object by first activating the object with

the Single Select tool.

• 首先使用单选工具激活一个对象来操作这个对象

Page 20: SECTION 5.0

Steps to Select a Single Object

• -----> 选择一个对象的步骤• 1. Position the pointer on the object and click on the mouse.

• 定位指针到对象并按鼠标• 2. Selection handles appear at an object corners and midpoints

when the object is selected.

• 当对象被选择中时 , 选择的点出现在一个对象的边跟中点

Page 21: SECTION 5.0

MANIPULATE VISUAL OBJECTS (continued)

• -----> 操作可视化对象• Perform an operation upon several objects as a single unit by activating all of t

he objects simultaneously.

• 通过同时激活所有对象 , 在多个对象上操作 , 作为一个单元• 1. Select a discrete set of objects by holding down the [Shift] key and c

licking on the desired objects one by one.

• 通过按 [shift] 键和一个一个单击目标对象选择一组离散的对象– OR

• 或者• 2. Select the objects with the rubber band facility, by drawing an imagi

nary rectangle that encompasses the objects with the mouse.

• 使用橡皮带工具选择对象 , 通过用鼠标画一个想象中的矩形来包含所要对象– OR

• 或者• 3. Select all the objects on the canvas by choosing the Edit, Select All

option from the Layout Editor menu.

• 选择 canvas 中所有对象

Page 22: SECTION 5.0

NOTE:

• -----> 注意• Copy, remove, arrange, resize, or overlap several objects simultaneous

ly by activating them first as a single unit.

• 首先激活多个对象作为一个单元来同时拷贝 , 移动 , 排列 , 重设大小 , 或覆盖他们

• COPY AND DELETE VISUAL OBJECTS

• 拷贝跟删除可视化对象• Remove and unwanted object and duplicate an object.

• 移动跟放弃对象跟制作对象副本

Page 23: SECTION 5.0

Clear an Object

• ----->清除一个对象• 1. Move the pointer to the object.

• 移动指针到对象上• 2. Click on the object to select it.

• 单击对象来选择它 .

• 3. Select the Edit, Clear option from the Layout Editor menu.

• 选择 Layout 编辑器菜单中的 Edit, Clear 选项

Page 24: SECTION 5.0

COPY AND DELETE VISUAL OBJECTS (continued)

• -----> 拷贝跟删除可视化对象• Duplicate an Object

• 复制一个对象• 1. Move the pointer to the object.

• 移动指针到对象上• 2. Click on the object to select it.

• 单击对象• 3. Select the Edit, Duplicate option from the Layout Editor men

u.

• 选择 Layout 编辑器菜单的 Edit, Duplicate 选项

Page 25: SECTION 5.0

NOTES:

• -----> 注意• · Oracle Forms places the duplicate object in front of the original, slig

htly offset to the lower right.

• Oracle Forms 放置复制的对象于原件前面 ,轻微位于较右较低的位置

• · Issue the Duplicate command as many times as necessary.

• 当经常需要的时候分配给 Duplicate命令 .

Page 26: SECTION 5.0

COPY AND DELETE VISUAL OBJECTS

• -----> 拷贝跟删除可视化对象• Cut or copy an object from the canvas to the clipboard. Paste an objec

t from the clipboard to the canvas.

• 从 canvas 中剪切或拷贝一个对象到剪贴板 , 从剪贴板粘贴一个对象到 canvas.

Page 27: SECTION 5.0

Steps to Cut or Copy and Paste and Object

• -----> 剪切或拷贝或粘贴一个对象的步骤 .

• 1. Move the pointer to the object.

• 移动指针到对象上• 2. Click on the object to select it.

• 单击对象• 3. Select the Edit, Cut option or the Edit, Copy option from the

Layout Editor menu.

• 选择 Layout 编辑器菜单中的 Edit, Cut 或 the Edit, Copy 选项• 4. Select the Edit, Paste option from the Layout Editor menu.

• 选择 Layout 编辑器菜单中的 Edit, Paste 选项

Page 28: SECTION 5.0

NOTES:

• -----> 注意• · The object is pasted on top of the original object.

• 此对象被粘贴于源对象之上• · Oracle Forms retains the copied and cut objects in the clipboard until

either the designer is exited or the contents of the clipboard are overwritten by using the Copy or Cut commands again.

• Oracle Forms 保留被拷贝跟被剪切的对象到剪贴板直到或者离开设计器或直到剪贴板上的内容被使用拷贝或剪切命令的内容覆盖 .

• · When items are copied and pasted or duplicated, Oracle Forms assigns a default name to the new item.

• 当项目被拷贝跟粘贴或复制 ,Oracle Form 分配一个默认名字给新项目

Page 29: SECTION 5.0

ARRANGE VISUAL OBJECTS

• -----> 排列可视化对象• Reposition an object with the Single Select tool.

• 使用单选工具重定位一个对象

Page 30: SECTION 5.0

Steps to Move an Object

• -----> 移动一个对象的步骤• 1. Click on the desired object with the Single Select tool to selec

t the object.

• 使用单选工具单击想要的对象来选定这对象• 2. Make sure the pointer is not resting on one of the object selec

tion handles.

• 确定指针没有静止在一个对象选择指示上面• 3. Depress and hold the Select button of the mouse.

• 按下并保持鼠标的 Select 键• 4. Drag the object to the required location.

• 拖动对象到需要的地点

Page 31: SECTION 5.0

NOTE:

• -----> 注意• Move several objects together by activating them first as a single unit.

• 激活多个对象作为一个单元来移动一起他们• ARRANGE VISUAL OBJECTS

• 整理可视化对象• The Grid options overlays the Layout Editor with a frame of spaced squares.

• Grid 选项用一个空格方块 frame占据 Layout 编辑器• Grid Lines--- Grid 行• Hide and display grid lines by selecting the Arrange, Grid option from the Layo

ut Editor menu. A check appears by the menu choice when grid lines are displayed.

• 通过选择 Layout 编辑器菜单中的 Arrange, Grid 来隐藏跟显示格子行 , 当一个格行被显示出来的时候 , 通过菜单选择 .

• Grid Snap

• Turn grid snap on or off by selecting the Arrange, Grid Snap option from the Layout Editor menu. A check appears by the menu choice when grid snap is on.

Page 32: SECTION 5.0

Steps to Define a Custom Grid Spacing

• -----> 定义一个普通格的间隔的步骤• 1. Select the Arrange, Ruler Settings option from the Layout Edi

tor menu.

• 选择 Layout 编辑器菜单中的 Arrange, Ruler Settings 选项• 2. Choose the radio button labeled Other, for Grid Spacing.

• 选择单选按纽 , 并为格的间隔标记为 Other

• 3. Enter the desired integer for Grid Spacing.

• 为 Grid 空间键入需要的整数• 4. Press OK.

• 按 OK

Page 33: SECTION 5.0

RESIZE VISUAL OBJECTS

• -----> 重设可视化对象的大小• Expand and contract the size of an object with the Single Select tool.

• 使用单选工具展开和缩小一个对象的大小

Page 34: SECTION 5.0

Steps to Resize an Object

• -----> 重设一个对象的大小• 1. Click on the desired object with the Single Select tool to selec

t the object.

• 应用单选工具单击需要的对象来选择对象• 2. Move the pointer to one of the object selection handles.

• 移动指针到一个对象被选控制点上• 3. Depress and hold the Select button of the mouse.

• 按下并保持鼠标的 Select 键• 4. Drag the pointer, and hence the object, to the required size.

• 拖动光标 , 使对象到达需要的大小

Page 35: SECTION 5.0

NOTE:

• -----> 注意• Move several objects together by activating them first as a single unit.

• 首先激活多个对象作为一个单元来一起移动他们• MODIFY THE APPEARANCE OF A FORM

• 修改一个表单的外表

Page 36: SECTION 5.0

SUMMARY

• -----> 总结• Perform operations upon visual objects within the Layout Editor, with

the aid of the status line, rulers, and grids, if desired.

• 在 Layout 编辑器中在状态栏 , 标尺和格子来帮助在可视化对象上运行程序 .

Page 37: SECTION 5.0

BOILERPLATE 模板 (table)

• ----->OBJECT

• OPERATION-- 对象操作• GRAPHIC-- 图片• TEXT

• IMAGE

• TEXT ITEM 文本项目• Create with a tool icon 用工具图标建立 X X

X

• Import/Export 导入导出 X X

• Format thickness, dashes, and arrows 格式化厚度 ,虚线 ,箭头X

• Format font, size, weight, style, and justification

• 格式化字体 , 字体大小 , 重 , 格式 , 跟管辖• Apply patterns 应用方式 X

• Apply colors 应用颜色

Page 38: SECTION 5.0

BOILERPLATE 模板 (table....)

• ----->Copy and delete

• 拷贝跟删除 X X X

• Move and align

• 移动跟排列 X

• Rotate

• 循环 X X X

• Resize

• 重设大小 X X X X

• Adjust spacing between records

• 调整记录之间的间隔 X

• Overlap

• 重叠 X X X X