scIgnoreProperty

Typecommand
Dictionarylibrary.smartcrumbsvcw
LibrarySmartCrumbsVCW
Syntax
scIgnoreProperty <pLongId>, <pPropertyName>,[<pIgnoreInCascade>]
Associationscom.livecode.library.smartcrumbsvcw
Summary

This command is used to tell the SmartCrumbsVCW library to ignore changes to a property of one or more objects.

OSmac, windows, linux, ios, android
Platformsdesktop, mobile, web
Parameters
NameTypeDescription
pLongId

The long id of the object

pPropertyName

The name of the property to be ignored.

pIgnoreInCascade
  • "children": to indicate if it applies to the children of the object that have this property.
  • "type": to specify that it applies to all objects of this type on the stack owned by the object passed in the first parameter
Example
# Ignore all the changes that the rectangle of this button may undergo.
# So when you restore from the crumbs you will always have the same rectangle
scIgnoreProperty the long id of button 1, "rect"
# Ignore all the changes that the group's rectangle and that of all its child controls undergo
scIgnoreProperty the long id of group "header", "rectangle", "children"
# Ignore changes to the background color of the field named text-1 and of all the fields in this stack.
scIgnoreProperty the long id of field "text-1", "backColor", "type"
RelatedCommand: scExportObject, scImportMainStack, scIgnoreProperty, scIgnoreAllProperties, scStopIgnoreProperty, scStopIgnoreAllProperties, scCreatePlugin, scInstallPlugin, scUninstallPlugin, scEnabledPlugin, scDisabledPlugin, scSetPluginSetting, scCleanTrash, scResetObjectCache, scCleanTrash, scResetObjectCache
Function: scIgnoreProperties, scListPlugins, scGetPluginSetting, scGetGUID, scGetPathLog, scGetGUID
Description

Use the scIgnoreProperty command to tell the SmartCrumbsVCW library that it should not update changes to the value of a property in one or more objects.

If we have a card that accommodates its controls to adapt it to its width and height. What we have to do is tell SmartCrumbsVCW to ignore the rectangle of the objects that are accommodated by code.

Important  The SmartCrumbsVCW library does not store the left, top, right, bottom, location, width and height properties of the cards or of the other controls. Instead it will only save the rectangle of the controls that are inside the card. While for the stacks it will not keep left, top, right, bottom, location and rectangle. Saving the width, height and setting the location to the center of the screen when restoring the stack.  We must take the above into account when deciding which property we want to be ignored.

Tagsversion control