Sub OnIsEmptyFolder(Sender: Object; Args: IMetabaseTreeNodeSpecialEventArgs);
Begin
//set of operators;
End Sub OnIsEmptyFolder;
Sender. The parameter that returns the component that has generated the event.
Args. The parameter determines event parameters.
The OnIsEmptyFolder event is used to set whether a folder is empty.
If value of the ShowEmptyFolders property is changed for the component, empty folders are hidden or shown. The OnIsEmptyFolder event is generated for each folder and for elements, which are set as folders in the OnIsFolderElem event. The Node property of the event argument can be used to get a folder, for which the current event is generated.
If empty folders are hidden (the ShowEmptyFolders property is set to False), the Special property of the event argument can be used to specify whether the Node folder is empty (the folder will be hidden in the tree) or non-empty (the folder will not be hidden in the tree). If the Special property is set to True, the folder will be marked as empty, if the property is set to False, the folder will be marked as non-empty.
See also: