[RESOLVED] Treeview graphical problems
If i place some window over my TreeView, it sometimes produces graphical problems - all nodes are "deleted" (not visible) and get back only when i pass theme over with my mouse. It is very very strange and quite anoying. Has some1 encounter this type of behaviour?! And if, can it be avoided?
Thank you :)
Re: Treeview graphical problems
Couldn't recreate the Error :D
Is there any painting done in the form?
:wave:
Re: Treeview graphical problems
Not quite.
I have tried to replace the TreeView with an older version (from 6 to 5), but produced the same problems. Don't really know why - don't have any code that could influence it.
Here's a snapshot of the Form (it's an application for job check-in & outs).
http://c404.net/stanthecaddy/snapshot.jpg
Sometimes, when i click on a Node that opens a new Form (with the same style), it doesn't refresh when it comes back. It's just a blank square where that 2nd Form was located.
Re: Treeview graphical problems
I found the root of the problem - .HotTracking property. But i still don't understand it.
Re: Treeview graphical problems
I thought once that HotTracking coud be a problem, but It works only when the node is not fully shown in the treeview. It makes the node to dissapear and show it like a tool tip. But in your case, the nodes are viewed fully. I m clueless. :(
BTW, nice Interface :thumb:
Re: Treeview graphical problems
Quote:
Originally Posted by gavio
The only thing I see displayed is a red X
2 Attachment(s)
Re: Treeview graphical problems
Quote:
Originally Posted by Hack
The only thing I see displayed is a red X.
Strange. OK. I uploaded it :)
Here are the actual snapshots of the problem.
Re: Treeview graphical problems
Is this a skinned form?
That might be the problem. the ClipControls?
:wave:
Re: Treeview graphical problems
Being able to view the form is not important. What is the gavio's issue, which seems to be resolved even though he is not quite sure why it happened in the first place.
Is this right gavio?
Re: Treeview graphical problems
No its not the Form Viewing thing. I havent done any skinnig but as I ve heard and seen that ClipControls should be false for skinning , right? (Or wrong?)
So wouldnt it be problem to repaint the controls in Background form (the bottom one) when the Forground Form is unloaded?
just a thought.
:wave:
Re: Treeview graphical problems
zz is right. But not that right :D .ClipControls were at False - and that was causing the problem. I changed it to True and it's working now :)
So, .ClipControls should be True for skinning. Don't know why really.
Anyhow... thank you!