Skip to content

hoDblClickResize doesn't work with InitalState ivsMultiline #139

@vincentparrett

Description

@vincentparrett

From marcus.h...@gmail.com on April 27, 2010 16:11:26

What steps will reproduce the problem? 1. I use a Virtualstringtree, in OnInit event I set "Include
(InitialStates, ivsMultiline);"
2. I set the Header option hoDblClickResize
3. I set the tree paint option toUseExplorerTheme What is the expected output? What do you see instead? Expected: resize to maxwidth of the largest entry in this column
Instead: on every dblClick the column gets 4 oder 5 pixel bigger in width What version of the product are you using? On what operating system? 4.8.6
Windows 7 Please provide any additional information below. I searched in source code and I found the following line in
VirtualTrees.pas, line 33837 in function
TCustomVirtualStringTree.DoGetNodeWidth(Node: PVirtualNode; Column:
TColumnIndex; Canvas: TCanvas = nil): Integer;

There I commented out the follwing code:
if (Column > NoColumn) and (vsMultiline in Node.States) then
Result := FHeader.Columns[Column].Width
else
and all is fine!

BEst regards,
Marcus Haßmann

Original issue: http://code.google.com/p/virtual-treeview/issues/detail?id=139

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions