PREV NEXT

Generic Logic, Inc. www.genlogic.com


GLG Builder and Animation Tutorial

1. Using GLG Builder 7

Using GLG drawings as widgets 7

Creating a new widget 7

Creating objects 8

Editing GLG objects 9

Selecting an Object and Changing Object Geometry 9

Choosing from Several Selected Objects 10

Using Undo 10

Editing Object Properties 11

Editing objects with the Edit Toolbox 12

Multiple Selection 13

Editing Polygon Attributes 13

Using the Viewport Object 14

Integrated Zooming and Panning 15

Using GLG Widgets and Palettes 16

Using Palettes 16

Loading Widgets into the Builder 17

Adding Widgets to a Drawing 17

Saving the drawing 17

Defining resources for animation 17

Prototyping Animation in the Builder 18

Creating resource hierarchies 19

Defining Tags for Global Access to Data 20

Adding a Tag to an Object Attribute 21

Mapping Tags to DataSources in the Builder 22

Mapping Tags in an Application at Run-Time 22

Prototyping a Drawing in the Builder Using Tags 22

Adding geometrical dynamics 23

Adding attribute dynamics 25

Predefined Attribute Dynamics 25

Using Stock Transformations 27

Color dynamics 28
Blinking 28
Text dynamics 30
Numerical text dynamics 30
Formatted text dynamics 31
List of strings dynamics 31
Changing attribute range 31

Editing control points and attaching control point dynamics 32

Adding Extended Rendering Attributes 33

Gradient Fill 33

Fill Dynamics 34

Shadows and Arrowheads 34

Text Boxes 35

Using permanent groups 35

Creating a group 35

Editing individual objects in a group 35

Editing all objects in a group 36

Adding and Deleting objects from a group 36

Exploding permanent groups 37

Object Layout and Alignment 37

Creating Layers of objects 38

2. Advanced features of the GLG Builder 39

Using Constraints 39

Constraining object attributes 39

Using Constrained Dynamics and Marked Transformations 40

Constrained Dynamics Example 40

Using Marked Transformations 41

The Second Flavor of the Fill Dynamics 41

Defining Object Tooltips 42

Using MouseOver Highlight and MouseClick Feedback 42

Attaching Custom Events and Commands 44

Using Editing Focus 44

Changing Viewport's Font Tables 45

3. GLG Widgets and Custom Objects 46

Using Custom Object Palette 46

Custom Button 46

Custom Toggle 46

Native Button Object 47

Native Toggle Object 47

Native Slider Objects 47

3D objects 47

Process Control Objects 48

Graph Objects 48

Adding New Objects to the Custom Object Palette 48

4. Using GLG drawings in a program 49

Loading a Drawing into a C or C++ Program 49

Loading a Drawing into a Java Program, GLG Bean or Applet 49

Loading a Drawing into a C#/.NET program or GLG .NET Control 50

Loading a Drawing into an ActiveX Control 50

Supplying data for animation from a program 50

Supplying data for animation when used on a Web page 51

Programmatic data supply 51

Reading data from a URL 52

Periodic Updates 52

Source code examples 53

5. Creating the Animation example's drawing 54

Creating a Drawing's Viewport 54
Creating a Circle Object 54
Adding Color Dynamics 54
Adding the Move Dynamics 55
Creating an Area Polygon 55
Adding Buttons 56
Testing the Tooltips 56
Using the Drawing 56

6. Using GLG Real-Time Charts 57

Editing Chart Properties in the Builder 57

Loading Charts into the Builder 57
Editing Chart Properties 57
Editing Chart Plots and Axes 57
Properties for Supplying Chart Data 58

Editing Charts Using Resources 58

Prototyping the Chart's Run-Time Behavior 59

7. Using GLG Graphs 60

Using graphs to display dynamic data 60

Common Graph Resources 60

Data Supply Resources 60
Title resources: 60
DataGroup Resources: 60
Axis Label Resources 61

Graphs with multiple Data Groups 61

Examples of resources and data to animate the graph 61

8. Using Containers and SubDrawing Objects 62

Container Object 62

Creating a Template 62
Creating a Container Object 63
Creating Container Instances 64
Editing Container's Template 64

SubDrawing Object 65

Included SubDrawing 65

Reusing a Template from the Previous Example 65
Creating a SubDrawing 65
Creating SubDrawing Instances and Editing the Template 66
Fixed Size SubDrawings 67
Rebinding Attributes of a SubDrawing 68
Using Global Attributes 69
Object Dynamics 69

File SubDrawing 69

Reusing a Template 70
Creating a SubDrawing 70
Accessing the Subdrawing's Template 71

Subdrawing File Dynamics 71

Object Dynamics 72

Creating a Template with Multiple Icons 72
Creating a Subdrawing 73
Using ObjectPath for Object Dynamics 74

Palette SubDrawing 74

SubWindow Object 76

Controlling Template Cache 76


Generic Logic, Inc.
www.genlogic.com
PREV NEXT