-
Notifications
You must be signed in to change notification settings - Fork 4
properties
codeCatLady edited this page Sep 15, 2022
·
15 revisions
- The lists below are included from their source documents, but they are not complete. For example,
margins
andopaque
are optional properties that do not appear in the lists, below. - There are other LiveCode reserved words that are not in the dictionary but are nonetheless reserved. If you attempt to use a property, and it does not behave as you would expect, type the name into the script editor, and see if it changes colors. If it changes colors, it is a reserved word, and should be quoted when it is declared as a property.
- There are a number of properties that all widgets have available.
- According to the style guide these should not have a
property
definition, but should havemetadata
to assign them to the Property Inspector.
Property Inspector Panel | Property Name |
---|---|
Basic | name kind tooltip visible disabled |
Colors | ink blendLevel |
Size and Position | lockLoc width height location left top right bottom layer |
Text | textFont textSize |
Advanced | layerMode behavior traversalO number |
There are other standard LiveCode properties that must be specified as being available to the widget - but they are not declared with the property
keyword. You must add the metadata for the Property Inspector, though.
- abbrevId
- abbrevName
- abbrevOwner
- altId
- backColor
- backPattern
- backPixel
- blendLevel
- borderColor
- borderPattern
- borderPixel
- bottom
- bottomColor
- bottomLeft
- bottomPattern
- bottomPixel
- bottomRight
- brushColor
- cantSelect
- colors
- customKeys
- customProperties
- customPropertySet
- customPropertySets
- disabled
- enabled
- focusColor
- focusPattern
- focusPixel
- foreColor
- forePattern
- forePixel
- height
- hiliteColor
- hilitePattern
- hilitePixel
- ink
- invisible
- kind
- layer
- layerMode
- left
- location
- lockLocation
- longId
- longName
- longOwner
- name
- number
- owner
- parentScript
- patterns
- penColor
- properties
- rectangle
- right
- script
- selected
- shadowColor
- shadowPattern
- shadowPixel
- shortId
- shortName
- shortOwner
- textFont
- textSize
- textStyle
- themeControlType
- toolTip
- top
- topColor
- topLeft
- topPattern
- topPixel
- topRight
- traversalOn
- unicodeToolTip
- visible
- width
If you use a keyword as a property name, it seems that you should include it in quotes, e.g.
property "opaque" get mShowBackground set setShowBackground
but that syntax is not described in the tokens section of the LiveCode Builder Language Reference