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:
Sample of WebCGM commands
button1press
• |
Description: Triggers when you click any of the members of the group. |
• |
Value: WebCGM_button1press, or any of the WebCGM actions |
content
• |
Description: Allows you to declare the first priority when searching the text content of a ‘para’ APS. |
cursorenter
• |
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 |
cursorexit
• |
Description: Triggers when the pointer moves off all members of the group. |
• |
Value: WebCGM_cursorexit, or any of the WebCGM actions. |
hover
• |
Description: Triggers when the pointer moves over any member of the group. |
• |
Value: any of the WebCGM actions |
linkuri
• |
Description: Loads a file in the target window as specified by the URI. |
• |
Value: either one or three strings entered by user input |
|
• |
_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 |
name
• |
Value: entered by user input Example: "Corel Designer Group" |
region
• |
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. |
screentip
• |
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" |
viewcontext
• |
Description: Lets you specify the initial view of an object when you position the pointer over the graphic object that contains this attribute. |
• |
Value: entered by user input |
WebCGM_button1press
• |
Description: Erases all usertip message boxes in the target window. Example: ‘eraseusertip;execute -extension "linkuri"’ |
• |
Value: eraseusertip;execute -ext |
WebCGM_cursorenter
• |
Description: Displays the specified usertip. Example: ‘displayusertip -tip "<This is a screentip>"’ |
WebCGM_cursorexit
• |
Description: Erases all usertip message boxes in the target window. |
Sample of ActiveCGM commands
@ML_button1press
@ML_button1release
@ML_cursorenter
@ML_cursorexit
• |
Description: Changes the group color to its original color. |
@ML_ToInvisible
@ML_ToNative
• |
Description: Changes the group color to its original color. |
• |
Value: changegroup -co native |
@ML_ToRed
@ML_ToVisible
button1press
• |
Description: Triggers when you click any of the members of the group. |
• |
Value: PressButton1, or any of the WebCGM or ActiveCGM actions |
button1release
• |
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 |
cursorenter
• |
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 |
cursorexit
• |
Description: Triggers when the pointer moves off all members of the group. |
• |
Value: ToNative, or any of the WebCGM or ActiveCGM actions |
description
• |
Value: entered by user input Example: "product description" |
Sample of WebCGM S1000D commands
desc
• |
Value: entered by user input Example: "product description" |
linkuri
• |
Description: Loads a file in the target window as specified by the URI. |
• |
Value: either one or three strings entered by user input |
|
• |
_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 |
region
• |
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. |
screentip
• |
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" |
viewcontext
• |
Description: Lets you specify the initial view of an object when you position the pointer over the graphic object that contains this attribute. |
• |
Value: entered by user input |
Copyright 2017 Corel Corporation. All rights reserved.