Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

multiSpace

set [the] multiSpace to posInteger

where posInteger is a number from 1 to 100.

The multiSpace property returns or sets the minimum amount of space, in pixels, between the edges of multiple shapes drawn when the multiple property is true.

The multiSpace property affects the Line, Rectangle, Rounded Rectangle, Oval, and Regular Polygon tools. Its default value is 1.


Examples

set the multiSpace to 10

Demo Script

on multipleDemo
  show bkgnd field "Demo Field"
  setUpPaint
  displayMessage "      MultiSpace 2" & spaces(8) & "MultiSpace 5" & ¬
  spaces(9) & "MultiSpace 9"
  set the multiSpace to 2
  drawShape "100,160","160,220"
  set the multiSpace to 5
  drawShape "240,160","300,220"
  set the multiSpace to 9
  drawShape "380,160","440,220"
  wait 2 seconds
  domenu "revert"
  choose browse tool
  hide bkgnd field "Demo Field"
end multipleDemo
on drawShape  startTopLeft, endBotRight
  drag from startTopLeft to endBotRight with shiftKey
end drawShape
on setUpPaint
  choose oval tool
  set multiple to true
  set centered to true
  set dragspeed to 150
  set lineSize to 1
  set filled to false
  set grid to false
end setUpPaint

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

Related Topics

« multipleLines | HyperTalk Reference | name »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Properties

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

multiSpace

set [the] multiSpace to posInteger

where posInteger is a number from 1 to 100.

The multiSpace property returns or sets the minimum amount of space, in pixels, between the edges of multiple shapes drawn when the multiple property is true.

The multiSpace property affects the Line, Rectangle, Rounded Rectangle, Oval, and Regular Polygon tools. Its default value is 1.


Examples

set the multiSpace to 10

Demo Script

on multipleDemo
  show bkgnd field "Demo Field"
  setUpPaint
  displayMessage "      MultiSpace 2" & spaces(8) & "MultiSpace 5" & ¬
  spaces(9) & "MultiSpace 9"
  set the multiSpace to 2
  drawShape "100,160","160,220"
  set the multiSpace to 5
  drawShape "240,160","300,220"
  set the multiSpace to 9
  drawShape "380,160","440,220"
  wait 2 seconds
  domenu "revert"
  choose browse tool
  hide bkgnd field "Demo Field"
end multipleDemo
on drawShape  startTopLeft, endBotRight
  drag from startTopLeft to endBotRight with shiftKey
end drawShape
on setUpPaint
  choose oval tool
  set multiple to true
  set centered to true
  set dragspeed to 150
  set lineSize to 1
  set filled to false
  set grid to false
end setUpPaint

Placeholders

posInteger
An expression that evaluates to a positive integer.

For example:
3
67 mod 13
the number of bg fields
the number of backgrounds
the number of cards div 2
See also: background, bkgnd, button, card, chunk, field, menu, and menuItem

Related Topics

« multipleLines | HyperTalk Reference | name »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View