User Guide

Table of Contents
Module GUI...........................................................................................................................................................................................................87
Module GUI Component..........................................................................................................................................................................87
MGUI Connectors....................................................................................................................................................................................88
GUI Connector Types..............................................................................................................................................................................88
Coordinate System..................................................................................................................................................................................89
Drawing.................................................................................................................................................................................................................90
Drawing on a Panel.................................................................................................................................................................................90
Drawing Order..........................................................................................................................................................................................90
Chaining GUI Components......................................................................................................................................................................91
Mouse Handling....................................................................................................................................................................................................92
Mouse Area..............................................................................................................................................................................................92
Mouse Clicks............................................................................................................................................................................................92
Mouse Dragging.......................................................................................................................................................................................92
Mouse Moves...........................................................................................................................................................................................94
Drag Accumulate......................................................................................................................................................................................94
Redrawing.............................................................................................................................................................................................................96
Redraw Control........................................................................................................................................................................................96
Precision Redraws...................................................................................................................................................................................96
Ruby Component...............................................................................................................................98
Introduction...........................................................................................................................................................................................................99
Overview..................................................................................................................................................................................................99
Inputs and Outputs.............................................................................................................................................................................................100
Adding or Removing..............................................................................................................................................................................100
Changing Type.......................................................................................................................................................................................100
Inserting, Deleting and Moving..............................................................................................................................................................100
Naming...................................................................................................................................................................................................101
Code Editor Basics.............................................................................................................................................................................................102
The Output Pane....................................................................................................................................................................................102
The RubyEdit Class...............................................................................................................................................................................103
Input Data..............................................................................................................................................................................................104
Output Data............................................................................................................................................................................................104
The event Method...............................................................................................................................................................................................107
Method Definition...................................................................................................................................................................................107
Connector Referencing..........................................................................................................................................................................107
v