ITT Rule IDL Version 7.0 Uživatelský manuál Strana 81

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 430
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 80
Chapter 4: Property Management 81
iTool Developer’s Guide Property Aggregation
Property Aggregation
The iTools property aggregation mechanism allows the properties of several different
objects held by the same container object to be displayed in the same property sheet
automatically. Without property aggregation, you would have to manually register all
of the properties of the objects contained in your visualization type object.
Aggregate the properties of contained objects using the Aggregate method of the
IDLitVisualization class:
self->Aggregate,
Object_Reference
where Object_Reference is a reference to the object whose properties you want
aggregated into the visualization object. A typical property aggregation call looks like
the following:
self._oSymbol = OBJ_NEW('IDLitSymbol', PARENT = self)
self->Aggregate, self._oSymbol
Here, the first line creates an IDLitSymbol object and stores it in the _oSymbol field
of the visualization object’s class structure. The second line calls the Aggregate
method with the object reference to the IDLitSymbol object as the argument. After
the call to the Aggregate method, all registered properties of the IDLitSymbol object
will be exposed in the property sheet for the visualization itself.
Note
The IDLitVisualization::Add method includes an AGGREGATE keyword. This
keyword is simply a shorthand method of aggregating the properties of an object
during the call to the Add method, eliminating the need to call the Aggregate
method separately. The call
self->Add, Object_Reference, /AGGREGATE
is the same as the following two calls:
self->Add, Object_Reference
self->Aggregate, Object_Reference
Warning
Take care when naming properties of objects that will be aggregated into a custom
visualization. If the complete name of a property in one of the aggregated objects
matches the prefix of the name of a property in another of the aggregated objects,
IDL will display an “Ambiguous keyword abbreviation” error when the aggregate
object is instantiated. To combine objects with ambiguous property names, you
Zobrazit stránku 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 429 430

Komentáře k této Příručce

Žádné komentáře

Hampton Bay Non manuels d'utilisation

À partir de F

Cliquez sur un alphabet ci-dessous pour faire défiler la liste complète des modèles commençant par cette lettre

Modèles Type de document
F567CH02
Manuel d'instructions    Hampton Bay F567CH02 Instructions / Assembly, 16 pages
F98WH02-G903-3
Manuel d'instructions     Hampton Bay F98WH02-G903-3 Instructions / Assembly, 6 pages
FAB8451A-3
Manuel d'instructions     Hampton Bay FAB8451A-3 Instructions / Assembly, 12 pages
FB4659EFW3008HS
Guide d'installation    Hampton Bay FB4659EFW3008HS Installation Guide, 1 pages
FNK8113A-2
Manuel d'instructions     Hampton Bay FNK8113A-2 Instructions / Assembly, 12 pages
FNK8212A-2
Manuel d'instructions     Hampton Bay FNK8212A-2 Instructions / Assembly, 12 pages
FNK8911AL
Manuel d'instructions     Hampton Bay FNK8911AL Instructions / Assembly, 12 pages
FNK8991A
Manuel d'instructions     Hampton Bay FNK8991A Instructions / Assembly, 12 pages
FOJ0682A
Guide d'installation     Hampton Bay FOJ0682A Installation Guide, 24 pages
FSS60428RST
Manuel d'instructions    Hampton Bay FSS60428RST Instructions / Assembly, 30 pages
FXA8291A
Guide d'installation     Hampton Bay FXA8291A Installation Guide, 12 pages
FZP8012A
Manuel d'instructions     Hampton Bay FZP8012A Instructions / Assembly, 12 pages
FZP8012A/ORB
Manuel d'instructions     Hampton Bay FZP8012A/ORB Instructions / Assembly, 24 pages