Fix for HyperTreeList connector lines

I was testing a new program where I use TR_HAS_VARIABLE_ROW_HEIGHT and I saw that the connector lines were wrong.

I hacked the a little bit and from my tests they look better

In my change, instead of making calculations of next position, I take the child mid height and draw up to the parent

Also I removed some lines that looked unnecessary (commented out the whole part)

Tested both in Windows XP and Ubuntu 9.04, python 2.6 (2.5 in win), wx 2.8.10.1

diff.txt (1.19 KB)

1_before_cure.png

2_after_cure.png

···

From my tests there’s no performance/flicker difference when drawing many items

“Jazz is not dead. It just smells funny.” (FZ)

Please create a ticket at trac.wxwidgets.org with category AGW and attach the patch there.

···

On 4/15/10 8:33 AM, syborg wrote:

I was testing a new program where I use TR_HAS_VARIABLE_ROW_HEIGHT and I
saw that the connector lines were wrong.
I hacked the a little bit and from my tests they look better

In my change, instead of making calculations of next position, I take
the child mid height and draw up to the parent
Also I removed some lines that looked unnecessary (commented out the
whole part)

From my tests there's no performance/flicker difference when drawing
many items

Tested both in Windows XP and Ubuntu 9.04, python 2.6 (2.5 in win), wx
2.8.10.1

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hope I did it the right way

http://trac.wxwidgets.org/ticket/11954

···

On 4/15/10 8:33 AM, syborg wrote:
> I was testing a new program where I use TR_HAS_VARIABLE_ROW_HEIGHT and I
> saw that the connector lines were wrong.
> I hacked the a little bit and from my tests they look better
>
> In my change, instead of making calculations of next position, I take
> the child mid height and draw up to the parent
> Also I removed some lines that looked unnecessary (commented out the
> whole part)
>
> From my tests there's no performance/flicker difference when drawing
>
> many items
>
> Tested both in Windows XP and Ubuntu 9.04, python 2.6 (2.5 in win), wx
> 2.8.10.1

Please create a ticket at trac.wxwidgets.org with category AGW and
attach the patch there.

--
Beauty is a pair of shoes that makes you wanna die

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Patch applied, thank you!

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

==> Never *EVER* use RemovalGroup for your house removal. You'll
regret it forever.
The Doomed City: Removal Group: the nightmare <==

···

On 16 April 2010 07:10, Stefano Bartaletti wrote:

On 4/15/10 8:33 AM, syborg wrote:
> I was testing a new program where I use TR_HAS_VARIABLE_ROW_HEIGHT and I
> saw that the connector lines were wrong.
> I hacked the a little bit and from my tests they look better
>
> In my change, instead of making calculations of next position, I take
> the child mid height and draw up to the parent
> Also I removed some lines that looked unnecessary (commented out the
> whole part)
>
> From my tests there's no performance/flicker difference when drawing
>
> many items
>
> Tested both in Windows XP and Ubuntu 9.04, python 2.6 (2.5 in win), wx
> 2.8.10.1

Please create a ticket at trac.wxwidgets.org with category AGW and
attach the patch there.

Hope I did it the right way

wxTrac has been migrated to GitHub Issues - wxWidgets

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en