Error getting tags :
error 404Error getting tags :
error 404 effective | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
effective
Basics
Expander triangle
Type
Keyword
Syntax

Introduced
1.0
Changed
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Used with inherited properties to specify the object's inheritedng or the setting inherited from the object's owner, whichever is actually displayed.
Examples

put the effective textColor of me into myColor

Additional Comments
Expander triangle

Use the effective keyword to get the displayed color or font of an object, regardless of whether the object itself has that property set. The effective keyword can also be used to get the filename of a substack or the current rectangle of an object.

Comments:

If one of an object's text, color, or pattern properties is set to empty, the owner's setting is used instead. (If the owner's setting is empty, the setting of that object's owner is used.)

For example, if a card button's backgroundColor property is empty, the backgroundColor of the card is used as the button's backgroundColor. You use the effective keyword to get the color that is actually used. If the button's backgroundColor is not set to empty, the effective keyword gets the setting for the button, since that setting is what the button displays as its background color.

The effective keyword can be used with the following inherited properties:

* backgroundColor property

* backgroundPattern property

* backgroundPixel property

* bottomColor property

* bottomPattern property

* bottomPixel property

* focusColor property

* focusPattern property

* focusPixel property

* foregroundColor property

* foregroundPattern property

* foregroundPixel property

* hiliteColor property

* hilitePattern property

* hilitePixel property

* topColor property

* topPattern property

* topPixel property

* shadowColor property

* shadowPattern property

* shadowPixel property

* textFont property

* textHeight property

* textSize property

* textStyle property

* filename of stack property

* rectangle property

Note: The effective keyword is implemented internally as a property and appears in the propertyNames. However, it cannot be used as a prop in an expression, nor with the set com.

Changes to Revolution:

The ability to use the effective keyword with the rectangle property was introduced in version 1.1.

User Comments
Expander triangle
User thumbnail
rodney@oceanbrowser.com
StarStarStarStarStar
Apr 21, 2010
The effective filename will return emtpy when used in a revlet. If you are intending to use multiple stacks in your revlet it appears (someone at Runrev please confirm this) that you must store the additional stacks as substacks.
~ Rodney