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.

filled

set [the] filled to trueOrFalse The filled property returns or sets whether HyperCard fills shapes with the current pattern on the Patterns palette as you draw them. It corresponds to the Filled command in the Options menu (which appears when you select a Paint tool).

The default value is false.

The filled property affects the Rectangle, Rounded Rectangle, Oval, Curve, Regular Polygon, and Polygon tools.


Examples

set the filled to true

Demo Script

on mouseUp
   show bkgnd field "demo field"
   paintSetUp
   set filled to false
   choose rect tool
   displayMessage "Painting an UNFILLED shape:"
   drag from 180,100 to 300,220
   wait 2 seconds
   set filled to true
   choose oval tool
   displayMessage "Painting a FILLED shape:"
   drag from 180,100 to 300,220
   wait 1 second
   doMenu "Revert"
   hide bkgnd field "demo field" 
   choose browse tool
 end mouseUp
 

 on paintSetUp
   show card pict
   set the dragSpeed to 125
   set the grid to false
   set the linesize to 2
   set the pattern to 33
   set the centered to false
 end paintSetUp

Placeholders

trueOrFalse
Any expression that evaluates to the HyperTalk and AppleScript constants true or false.

For example:

true
false
the hilite of bg btn "Yes"
fld "Zip" contains "95014"
the short name of this stack is "Fred"


Related Topics

« family | HyperTalk Reference | fixedLineHeight »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View