Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TreeView

Status
Not open for further replies.

slimr

Programmer
Jul 10, 2001
12
IE
I am having a problem with the treeview.treenode.isvisible
property. if I expand or contract a node and then run through the nodes checking for isvisible I get varying results. I think it may be down to the node still repainting. But I have tried it in the expanded and contracted method when I would hope that as the help says the node has finished changing. Any one got any ideas.
Many thanks
Slim
 
Well, considering how the IsVisible works (checking the boundsrect for the item itself) if you are getting strange results it must be a timing issue. Maybe you could use a timer and check a few milliseconds after the onCollapsed or OnExpanded events. TealWren
 
Thanks thats what it was so I have put it into a thread with a time and all is well.
Slim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top