Entry No.
96
|
VCL - Win32 - ComCtrls - TTreeView
Having nodes that are wider than the window
may cause nasty problems
|
|
| 1.02 |
2.01 |
3.0 |
3.01 |
3.02 |
4.0 |
4.01 |
4.02 |
4.03 |
5.0 |
5.01 |
6.0 |
6.01 |
6.02 |
Kylix 1.0 |
| N/A | Exists | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Unknown | Fixed | Fixed | Fixed | Fixed | N/A |
|
|
|
Description | |
Reported by Henk Hagedoorn
The TreeView component can cause many nasty problems in your application
when you have nodes in it that have a text that is wider than the TreeView
window. This may have something to do with the WM_SETREDRAW message that
the TreeView component uses to temporarily disable redrawing when adding
or updating items. According to the MS knowledgebase 'this can cause the
TreeView control to behave strangely'.
So far, the bug seems to occur on NT 4.0 systems only.
|
|
|
Solution / workaround | |
|
Avoid having nodes that are too long...
|
|
|
User-contributed comments | |
Andrew Quilley 07 Apr 2006 11:05 AM GMT |
The maximum text length for a Treeview node is 259 (using Delphi 5 on XP Pro SP2 with automatic updates to 7 April 2006). Could be related to MAX_PATH (=260).
|
|