Draw Objects (old)

Creates a panel where you can draw objects (up to 128)

image260.jpg

Obsolete version of the Draw Objects XY panel.

Used only for backward compatibility.

X-n

X position of the nth object to draw in %.

Y-n

Y position of the nth object to draw in %.

width-n

size, width, diameter of the nth object in %.

type-n

type of the object:

  • ball
  • square
  • circle
  • box

color-n

Color of the object.

Array's

Available for X, Y, diameter, type, color, only in the selected query type is in Array input mode.

Can be used to modify groups of objects at once with an array.

draw

Executes the draw command. Be gentle, it cost a lot of CPU.

where

Determines where the display panel is visible:

  • invisible : the panel is invisible
  • ctrl panel : in the control panel
  • parent ctrl panel : in the control panel of the parent patch if it exists
  • top ctrl panel : in the control panel of the top parent patch (main patch) if it exists
  • container : in the container of the current patch
  • parent container : in the container of the parent patch current patch
  • top parent container : in the container of the top parent patch patch
  • IB: visible in the interface builder mode only

when the location is set to a container which doesn’t exist in the patch, Usine try to find, in parent patches, the first container available. If no container is available an error message is displayed.

mouse dwn

Gives the mouse state of the control: 1 if the mouse is pressed 0 otherwise. In multi-touch configuration, can be an array of [0..1] values. See Getting Multi-touch infos in Patches.

mouse X

Gives the mouse X position on the the control in relative coordinates:

  • 0 most left,
  • 1 most right.

In multi-touch configuration, can be an array of [0..1] values. See Getting Multi-touch infos in Patches.

mouse Y

Gives the mouse Y position on the the control in relative coordinates:

  • 0 top,
  • 1 bottom.

In multi-touch configuration, can be an array of [0..1] values. See Getting Multi-touch infos in Patches.

gesture

Gives information about the last gesture applied on the control. See Getting Gesture Info.

bitmap in

Background bitmap input. See Manipulate Bitmaps.

bitmap out

Bitmap output. See Manipulate Bitmaps.

drop file name

Name of the dropped file. See Using drag & drop.

allow drop

Enables or disables the drag&drop possibilities on the panel. See Using drag & drop.

dbl click

Send a 1 value if the user has double clicked on the control.

panel X

Gives the X position of the top left corner of the panel in the parent panel (container or control panel). See Floating Panels.

panel Y

Gives the Y position of the top left corner of the panel in the parent panel (container or control panel). See Floating Panels.

hint

Hint string of the control. See Hint Strings.

edit layout

Opens the layout window. See Use the Layout window.

manual/modules/drawpanelold.txt · Last modified: 2013/04/19 02:21 (external edit)