event BeforeCollapse (SelFolder as ExShellFolder, Cancel as Boolean)
Fired before a folder is about to collapse.

 TypeDescription 
   SelFolder as ExShellFolder A Folder being collapsed  
   Cancel as Boolean A Boolen expression that indicates whether the operation is canceled or not.  
When the user double clicks on a folder, or on a 'plus' button next to folder, it expands. If it was already expanded, it collapses. When the folder collapses, two events are fired. BeforeCollapse is fired before ExFolderView changes its structure, so some additional functions can be executed. The AfterCollapse event is fired after the structure has changed. Usually, expanding and collapsing folders will result in more or fewer folders being visible after this event, so if some additional code is required it should be put inside this event body.


Send comments on this topic.
© 1999-2010 Exontrol.COM, Software. All rights reserved.