Form Builder Visual Property set in development (visual Attributes)

Source: Internet
Author: User
Tags new set

Form Builder Visual Property set in development (visual Attributes)

Text found in Form builder on-line help

(Copyright notice, I original or translation of the article if necessary reprint, please contact me, the offender must investigate)

Terminology

Object Group-object Groups

Module-module

Inherit-subclass

Window-window

Canvas-canvas

Data Block-block

Menu-menu

Trigger-trigger

Relationship-relation

about the Visual property set (Visualattributes)

Visual properties are font, color, and formatting attributes that you can set on the form and menu objects and display in your application's appearance. The visual properties include the following properties:

L Font Properties: Font name, font size, typeface, font width and font grayscale.

L Color and Formatting attributes: foreground color, background color, and fill style.

Each visual object has a Visual property group property that determines the setting of the object's individual visual properties (font size, foreground color, and so on). )。 The Visual property group properties can be set to Default,null or to a named set of visual properties defined by the same module.

You can set the visual properties of an object in the following ways:

L in the Properties panel, set the Visual property Group properties as needed, and then set individual properties (font name, foreground color, and so on) as needed.

L in the Layout editor, select an item or canvas, and then from the Font dialog box, fill color and text color palette, select a desired font, color and formatting attributes.

L Define a Visual Property object with the appropriate font, color, and format, and apply it to one or more objects in the same module. You can change the font, color, and style of an object by changing its name's visual property settings at run time.

L inherits a visual property set that includes visual properties, and then inherits these properties based on the property set Settings object.

L Create an attribute class that contains visual properties, and then inherit these properties based on the property class Settings object.

about default Visual property sets

Setting the properties of the Visual property group to default will set the object to the color, formatting, and font settings. When setting the Visual property group to default, a single property setting reflects the default value of the current system. The actual settings are determined by a combination of many aspects, such as the object type, the resource file being used, and the window manager.

about named Visual property sets

Sets a visual Property Group property using a named Visual property set in the same module, indicating that the current object must use the property settings defined in this visual property set. A named visual property set is a separate object for a form or menu module that contains a set of visual attributes. Once you have established a named set of visual attributes, you can apply it to any object in the same module, just like the format inside a word-processing program.

However, when you add a Visual attribute group attribute to an attribute class and then apply the attribute class to the item or canvas of another module, you need to add the following attributes to control the appearance of those modules or canvas.

foreground color (foreground color)

Background color (Background color)

Fill style (fill pattern)

Fonts name (font name)

Font size

Fonts grayscale (font Weight)

fonts (font Style)

Type spacing (font Spacing)

guidelines for creating visual property sets

When you use the Visual property set, consider the following guidelines:

L When you apply a named Visual attribute set to an object, only the properties that are valid for that object will take effect.

If you plan to deploy your application to more than one platform, you should use the named Visual property settings.

to create a named visual property set

1. In the Object Navigator, click the Visual Properties node.

2. Click New in the toolbar

3. Oracle forms Inserts a new set of visual attributes with unique names.

4. In the Properties panel, set the name, font, color, and style properties of the named visual set of properties as needed.

to change a named visual property set

1. In the Object Navigator, double-click the Visual property Set object icon that you want to modify to display the property panel.

2. Under the Visual Properties node, change the properties that you want to modify.

Tip: To modify a visual property at run time, such as color and font, you can use the built-in Set_item_property

Set_item_property (' Blockname.itemname ', Visual_attribute, ' visualattributename ');

Here Visualattributename or the visual attributes (including the foreground color, background color, font, etc.) that you create in the form, or the names of the logical visual properties in the resource file.

set visual properties for an object

1. In the Object Navigator, double-click the object you want to modify to display the property panel.

2. Under the Visual Properties node, set the Visual Property Group property to a named visual property.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.