1 / 38

SECTION 5.0

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.

Download Presentation

SECTION 5.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SECTION 5.0 • ----->第五章节 • MODIFY THE APPEARANCE OF A FORM • 修改一个表单的外表

  2. 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 • 修改一个表单的外表

  3. 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. • 应用各种方法到模板图片

  4. 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 Forms Layout Editor, which contains a number of features to assist in the graphical design. • 通过Oracle表单layout编辑器显示和修改一个表单外表,它包含一系列特点来帮助图形设计

  5. Layout Editor Features • ----->Layout编辑器特性 • FEATURE DESCRIPTION • 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 specifying the attributes for visual elements. • 编辑文本,控制变化,排列可视化元素跟为可视化元素指定属性的一系列选项 • Status line状态栏 • Auxiliary information for marking the position of the mouse and the degree of magnification while moving around the workspace. • 当在工作空间内移动时,标记鼠标位置,跟扩大的程度的辅助信息 • Rulers (Optional)标尺 • Numbered lines along the top and side of the workspace for guiding the arrangement of visual elements. • 在工作空间随着顶部跟侧面编了号的线,来引导可视化元素的安排

  6. CREATE BOILERPLATE TEXT • ----->创建模板文本 • Create boilerplate text with the boilerplate text tool from the tool palette. • 使用工具调色板中的模板文本工具创建模板文本

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

  8. 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图标应用色彩到文本本身

  9. 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键.

  10. 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 viewing 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 • 管辖

  11. COLOR ITEMS • ----->色彩项目 • Set the color of items similar to boilerplate text. • 设定项目的颜色与模板项目相近.

  12. 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 Color icon. • 移动鼠标到前景色跟背景色图标 • 4. Depress and hold the Select button on the mouse. • 按下鼠标的select按纽 • 5. Drag the pointer to the right, through the pattern palette, to the desired color. • 拖动指针到右边,通过调色板,到所需要的颜色. • 6. Release the Select button on the mouse. • 放开鼠标Select键.

  13. 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选项

  14. 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文件图形格式;一个工业标准格式

  15. 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

  16. 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中一个区域来操作具体可视化对象

  17. Steps to Magnify and Demagnify the Workspace within the Window • ----->在窗口放大或缩小工作区的步骤 • 1. Magnify a region to twice its size by pressing the Zoom tool and 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 Editor 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选项来回到正常大小

  18. MANIPULATE VISUAL OBJECTS • ----->操作可视化对象 • After creating visual objects on the canvas, either manually or with the default 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. • 重叠可视化对象到另外一个对象后面

  19. MANIPULATE VISUAL OBJECTS • ----->操作可视化对象 • Perform an operation upon an object by first activating the object with the Single Select tool. • 首先使用单选工具激活一个对象来操作这个对象

  20. 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. • 当对象被选择中时,选择的点出现在一个对象的边跟中点

  21. MANIPULATE VISUAL OBJECTS (continued) • ----->操作可视化对象 • Perform an operation upon several objects as a single unit by activating all of the objects simultaneously. • 通过同时激活所有对象,在多个对象上操作,作为一个单元 • 1. Select a discrete set of objects by holding down the [Shift] key and clicking on the desired objects one by one. • 通过按[shift]键和一个一个单击目标对象选择一组离散的对象 • OR • 或者 • 2. Select the objects with the rubber band facility, by drawing an imaginary 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中所有对象

  22. NOTE: • ----->注意 • Copy, remove, arrange, resize, or overlap several objects simultaneously by activating them first as a single unit. • 首先激活多个对象作为一个单元来同时拷贝,移动,排列,重设大小,或覆盖他们 • COPY AND DELETE VISUAL OBJECTS • 拷贝跟删除可视化对象 • Remove and unwanted object and duplicate an object. • 移动跟放弃对象跟制作对象副本

  23. 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选项

  24. 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 menu. • 选择Layout编辑器菜单的Edit, Duplicate选项

  25. NOTES: • ----->注意 • · Oracle Forms places the duplicate object in front of the original, slightly offset to the lower right. • Oracle Forms放置复制的对象于原件前面,轻微位于较右较低的位置 • · Issue the Duplicate command as many times as necessary. • 当经常需要的时候分配给Duplicate命令.

  26. COPY AND DELETE VISUAL OBJECTS • ----->拷贝跟删除可视化对象 • Cut or copy an object from the canvas to the clipboard. Paste an object from the clipboard to the canvas. • 从canvas中剪切或拷贝一个对象到剪贴板,从剪贴板粘贴一个对象到canvas.

  27. 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选项

  28. 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分配一个默认名字给新项目

  29. ARRANGE VISUAL OBJECTS • ----->排列可视化对象 • Reposition an object with the Single Select tool. • 使用单选工具重定位一个对象

  30. Steps to Move an Object • ----->移动一个对象的步骤 • 1. Click on the desired object with the Single Select tool to select the object. • 使用单选工具单击想要的对象来选定这对象 • 2. Make sure the pointer is not resting on one of the object selection handles. • 确定指针没有静止在一个对象选择指示上面 • 3. Depress and hold the Select button of the mouse. • 按下并保持鼠标的Select键 • 4. Drag the object to the required location. • 拖动对象到需要的地点

  31. 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 Layout 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.

  32. Steps to Define a Custom Grid Spacing • ----->定义一个普通格的间隔的步骤 • 1. Select the Arrange, Ruler Settings option from the Layout Editor 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

  33. RESIZE VISUAL OBJECTS • ----->重设可视化对象的大小 • Expand and contract the size of an object with the Single Select tool. • 使用单选工具展开和缩小一个对象的大小

  34. Steps to Resize an Object • ----->重设一个对象的大小 • 1. Click on the desired object with the Single Select tool to select 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. • 拖动光标,使对象到达需要的大小

  35. NOTE: • ----->注意 • Move several objects together by activating them first as a single unit. • 首先激活多个对象作为一个单元来一起移动他们 • MODIFY THE APPEARANCE OF A FORM • 修改一个表单的外表

  36. SUMMARY • ----->总结 • Perform operations upon visual objects within the Layout Editor, with the aid of the status line, rulers, and grids, if desired. • 在Layout编辑器中在状态栏,标尺和格子来帮助在可视化对象上运行程序.

  37. 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应用颜色

  38. 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

More Related