Please enable JavaScript to view this site.

ESL Documentation

GMovables is a class of objects in the BGraph module that includes the legend, axis labels, title, and footnote. By using GMovables, you can change the position and ancestry of these objects during runtime.

For example:

 

string variable CURRENT_GRAPH_PART

 

class SENSE_REGIONS

response to GMovables

  copy object in GRegion to CURRENT_GRAPH_PART

  delete SENSE_REGIONS from class SENSE_REGIONS

  add sense region SENSE_AREA size (xsize of GRegion)

    (ysize of GRegion)

    at 0 0 in GRegion priority is 12

  add SENSE_AREA to class SENSE_REGIONS

 

  begin

    response to SENSE_REGIONS

      change CURRENT_GRAPH_PART to xcoord ycoord

      delete SENSE_AREA

      leave block

  end

 

SENSE_AREA is the name of a sense region, defined exactly in the same size and position as the region GRegion. In the example, the user selects an object to be moved and then touches SENSE_AREA to indicate a new position.

If you do not want the user to be able to select a graph object for a specific period of time, disable GMovables and enable it later in the program.

SENSE_AREA must be added as a child of GRegion, so that if GRegion is moved or resized, SENSE_AREA is similarly affected.