This section provides a sample of the CGM data that you can apply to objects. It is divided into three parts:
• |
• |
• |
![]() |
When you choose an action as the type, any of the following can function as
the value:
|
• |
one or more ActiveCGM commands
|
• |
BasicScript subroutine name
|
• |
operating system command
|
• |
external application
|
When you choose an event as the type, only one or more Active CGM
commands can function as the value.
|
button1press
• |
Type: event
|
• |
Description: Triggers when you click any of the members of the group.
|
• |
Value: WebCGM_button1press , or any of the WebCGM actions
|
• |
Constraint: none
|
content
• |
Type: text
|
• |
Description: Allows you to declare the first priority when searching the text
content of a ‘para’ APS.
|
• |
Value: none
|
• |
Constraint: none
|
cursorenter
• |
Type: event
|
• |
Description: Triggers when the pointer moves within two pixels of any of the
members of the group.
|
• |
Value: WebCGM_cursorenter , or any of the WebCGM actions
|
• |
Constraint: none
|
cursorexit
• |
Type: event
|
• |
Description: Triggers when the pointer moves off all members of the group.
|
• |
Value: WebCGM_cursorexit , or any of the WebCGM actions.
|
• |
Constraint: none
|
hover
• |
Type: event
|
• |
Description: Triggers when the pointer moves over any member of the group.
|
• |
Value: any of the WebCGM actions
|
• |
Constraint: none
|
linkuri
• |
Type: action
|
• |
Description: Loads a file in the target window as specified by the URI.
|
• |
Value: either one or three strings entered by user input
|
• |
If it is one string, it will represent the URI. Example: “http://www.corel.com”
|
• |
If it is three strings, the first string is the URI, the second is the empty string,
and the third is the target frame. Example: “http://www.corel.com” “” “_blank” The target frames are as follows:
|
• |
_blank — viewer loads the content in a new window
|
• |
_self — viewer loads the content in the same window
|
• |
_parent — viewer loads the content in the immediate frameset parent
of the active window
|
• |
_top — viewer loads the content in the full original window
|
• |
Constraint: none
|
name
• |
Type: text
|
• |
Description: Names the group.
|
• |
Value: entered by user input Example: “Corel Designer Group”
|
• |
Constraint: none
|
region
• |
Type: text
|
• |
Description: Provides an optional spatial region, associated with a graphic object,
allowing the user to pick operations for the object. Simple regions of type rectangle,
ellipse, polygon, and continuous polybezier can be defined.
|
• |
For a rectangle, two corner points of the viewport are provided, as in (x1,y1)
(x2,y2). Example: -820084 215104 342822 867138
|
• |
For an ellipse, three points are provided. The first point specifies the center of the
ellipse, while the remaining two points specify the CDP points, as in (x1,y1)
(x2,y2) (x3,y3). Example: -275602 514233 -786474 514233 -275602 282324
|
• |
For a polygon, points are provided where n is the number of vertices in the
polygon using the formula n*(x.y).
|
• |
For a polybezier, points are provided where n is the number of contiguous cubic
segments using the formula 3n+1(x,y). Example (polybezier with three vertices): 235270 712532 -235270
712532 342822 87386 342822 87386 342822 87386 -235270
87386 -235270 87386 -235270 87386 -235270 712532 -
235270 712532
|
• |
Value: none
|
• |
Constraint: none
|
screentip
• |
Type: text
|
• |
Description: Causes the value to be displayed as a screen-tip when the pointer is
positioned over the group.
|
• |
Value: entered by user input as a single string that is associated with a graphic
object or a group Example: “This is a screentip”
|
• |
Constraint: none
|
viewcontext
• |
Type: number
|
• |
Description: Lets you specify the initial view of an object when you position the
pointer over the graphic object that contains this attribute.
|
The value of the viewcontext specifies the two corner points of the viewport rectangle as (x1,y1) (x2,y2), where x1, y1 is the top-right point of the viewport rectangle and x2, y2 is the bottom-left point of the viewport rectangle. Example: -925688030 586990613 -799207691 509452731 |
• |
Value: entered by user input
|
• |
Constraint: none
|
WebCGM_button1press
• |
Type: action
|
• |
Description: Erases all usertip message boxes in the target window. Example: ‘eraseusertip;execute -extension “linkuri”’
|
• |
Value: eraseusertip;execute -ext
|
• |
Constraint: none
|
WebCGM_cursorenter
• |
Type: action
|
• |
Description: Displays the specified usertip. Example: ‘displayusertip -tip “<This is a screentip>”’
|
• |
Value: displayusertip -tip
|
• |
Constraint: none
|
WebCGM_cursorexit
• |
Type: action
|
• |
Description: Erases all usertip message boxes in the target window.
|
• |
Value: eraseusertip
|
• |
Constraint: none
|
@ML_button1press
• |
Type: event
|
• |
Description: Makes the group visible.
|
• |
Value: @ML_ToVisible
|
• |
Constraint: none
|
@ML_button1release
• |
Type: event
|
• |
Description: Makes the group invisible.
|
• |
Value: @ML_ToInvisible
|
• |
Constraint: none
|
@ML_cursorenter
• |
Type: event
|
• |
Description: Changes the group color to red.
|
• |
Value: @ML_ToRed
|
• |
Constraint: none
|
@ML_cursorexit
• |
Type: event
|
• |
Description: Changes the group color to its original color.
|
• |
Value: @ML_ToNative
|
• |
Constraint: none
|
@ML_ToInvisible
• |
Type: action
|
• |
Description: Makes the group invisible.
|
• |
Value: changegroup -vis off
|
• |
Constraint: fixed
|
@ML_ToNative
• |
Type: action
|
• |
Description: Changes the group color to its original color.
|
• |
Value: changegroup -co native
|
• |
Constraint: fixed
|
@ML_ToRed
• |
Type: action
|
• |
Description: Changes the group color to red.
|
• |
Value: changegroup -co red
|
• |
Constraint: fixed
|
@ML_ToVisible
• |
Type: action
|
• |
Description: Makes the group visible.
|
• |
Value: changegroup -vis on
|
• |
Constraint: fixed
|
button1press
• |
Type: event
|
• |
Description: Triggers when you click any of the members of the group.
|
• |
Value: PressButton1 , or any of the WebCGM or ActiveCGM actions
|
• |
Constraint: none
|
button1release
• |
Type: event
|
• |
Description: Triggers when you release the left mouse button while the pointer is
positioned over any of the members of the group.
|
• |
Value: ReleaseButton1 , or any of the WebCGM or ActiveCGM actions
|
• |
Constraint: none
|
cursorenter
• |
Type: event
|
• |
Description: Triggers when the pointer moves within two pixels of any of the
members of the group.
|
• |
Value: ToRed , or any of the WebCGM or ActiveCGM actions
|
• |
Constraint: none
|
cursorexit
• |
Type: event
|
• |
Description: Triggers when the pointer moves off all members of the group.
|
• |
Value: ToNative , or any of the WebCGM or ActiveCGM actions
|
• |
Constraint: none
|
description
• |
Type: text
|
• |
Description: This behavior is undefined.
|
• |
Value: entered by user input Example: “product description”
|
• |
Constraint: fixed
|
desc
• |
Type: text
|
• |
Description: This behavior is undefined.
|
• |
Value: entered by user input Example: “product description”
|
• |
Constraint: fixed
|
linkuri
• |
Type: action
|
• |
Description: Loads a file in the target window as specified by the URI.
|
• |
Value: either one or three strings entered by user input
|
• |
If it is one string, it will represent the URI. Example: “http://www.corel.com”
|
• |
If it is three strings, the first string is the URI, the second is the empty string,
and the third is the target frame. Example: “http://www.corel.com” “” “_blank” The target frames are as follows:
|
• |
_blank — viewer loads the content in a new window
|
• |
_self — viewer loads the content in the same window
|
• |
_parent — viewer loads the content in the immediate frameset parent
of the active window
|
• |
_top — viewer loads the content in the full original window
|
• |
Constraint: none
|
region
• |
Type: text
|
• |
Description: Provides an optional spatial region, associated with a graphic object,
allowing the user to pick operations for the object. Simple regions of type rectangle,
ellipse, polygon, and continuous polybezier can be defined.
|
• |
For a rectangle, two corner points of the viewport are provided, as in (x1,y1)
(x2,y2). Example: -820084 215104 342822 867138
|
• |
For an ellipse, three points are provided. The first point specifies the center of the
ellipse, while the remaining two points specify the CDP points, as in (x1,y1)
(x2,y2) (x3,y3). Example: -275602 514233 -786474 514233 -275602 282324
|
• |
For a polygon, points are provided where n is the number of vertices in the
polygon using the formula n*(x.y).
|
• |
For a polybezier, points are provided where n is the number of contiguous cubic
segments using the formula 3n+1(x,y). Example (polybezier with three vertices): 235270 712532 -235270
712532 342822 87386 342822 87386 342822 87386 -235270
87386 -235270 87386 -235270 87386 -235270 712532 -
235270 712532
|
screentip
• |
Type: text
|
• |
Description: Causes the value to be displayed as a screen-tip when the pointer is
positioned over the group.
|
• |
Value: entered by user input as a single string that is associated with a graphic
object or a group Example: “This is a screentip”
|
• |
Constraint: none
|
viewcontext
• |
Type: number
|
• |
Description: Lets you specify the initial view of an object when you position the
pointer over the graphic object that contains this attribute.
|
The value of the viewcontext specifies the two corner points of the viewport rectangle as (x1,y1) (x2,y2), where x1, y1 is the top-right point of the viewport rectangle and x2, y2 is the bottom-left point of the viewport rectangle. Example: -925688030 586990613 -799207691 509452731 |
• |
Value: entered by user input
|
• |
Constraint: none
|
![]() |
Copyright 2013 Corel Corporation. All rights reserved.