There are some sections whcih are collapsed.
If I click on those they will expand.
How to check whether these are collapsed.
Perhaps you can try with the exists()-method to check if that section exists. if not, the it will be collapsed.
I'm not sure, just my 2 cents...
-----BEGIN GEEK CODE BLOCK-----
GIT d- s-:- a-- C++ U++ P+ L++
E--- W+++ N w O- PS+ PE- PGP+
t-- R tv+ b+++ DI++++ D+ G++ e*
------END GEEK CODE BLOCK------
Which application you are using? Which object you are trying to collapse/expand?
You can check with IsVisible() method if you are not able to confirm with exists() method.
Try and fail, but don't fail to try
This is vague!!
As Nidhi said, u need to provide us with more info on the object which u are trying to Collapse/Expand. The solution might vary accordingly.
For e.g. if its a TREEVIEW class you can use the "IsItemExpanded" method.
hey!! possibilities are countless ...
Hope to hear from you soon [img]/images/graemlins/smile.gif[/img]
Not sure if this helps...
I had some trouble with Treeviews on one project and had to
use Typekeys ( "<Right>" ) to expand and TypeKeys ( "<left>" ) to collapse nodes.