event BeforeExpand (SelFolder as ExShellFolder, Cancel as Boolean)
Fired before folder is about to be expanded.
Type
Description
SelFolder as
ExShellFolder
A Folder being expanded.
Cancel as Boolean
A Boolean expression that indicates whether the operation is executed or canceled.
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 a folder expands, two events are fired. The BeforeExpand is fired
before
ExFolderView changes its structure, so additional functions can be executed. The
AfterExpand
event is fired
after
the structure has changed. Usually, expanding and collapsing folders will result in more or less folders visible after this event, so if additional code is required it should be put inside this event body.
Send comments on this topic.
© 1999-2006
Exontrol Inc, Software
. All rights reserved.