|
|
|
|
ICoolStorageObject is the basis for many of the visual objects in CoolControl inlcuding Items, Groups, and Columns.
This interface defines various states the visual object can
take on. Note that not all of these states may make sense to all
objects and the meaning of the state is implementation defined.
These are typical states seen in most all controls. Notice
these core states can have meaning for all the common objects in
CoolControl, Items, Groups, and Columns.
The Index property is the absolute index of the object across all objects regardless if the object is visible or invisible (CoolControl supports invisible, groups, items, columns, etc.). The VisibleIndex is the linear index of visible objects. If there are no invisible objects then the two indexes are equal. There is an important distinction between these two indexes. When accessing an object for use in the grid the VisibleIndex must be used to locate the correct cell for the object. When querying the user of CoolControl the Index should be used as this is how the application would have organized its data (remember CoolControl is virtual so it carries no data the user has the data stored elsewhere). The users data will likely have no knowledge (or even care) of the visibility of the objects. The last property is an Initialization state.
CoolControl is a virtual control so it is possible to defer the loading of time consuming data until the control is ready for it. The control will call OnInitializeItem in the TCoolEventManager class. Like all other managers it is accessed through the TCustomCoolWindow.ManagerLink property.
|
Last Modified on: |