Bug or future in customtreectrl?

Hi all.

Attached 2 image in which I focus on a particular of customtreectrl.

There are several items tree with attached other widget.

The widgets are aligned because i use TR_ALIGN_WINDOWS agwstyle. Now if I make a horizontal scroll

happens that widgets remain anchored in same place.

That’s a feature or a bug?

panel.png

panelAfterScroll.png

···


Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

Hi,

Hi all.
Attached 2 image in which I focus on a particular of customtreectrl.
There are several items tree with attached other widget.
The widgets are aligned because i use TR_ALIGN_WINDOWS agwstyle. Now if I
make a horizontal scroll
happens that widgets remain anchored in same place.
That's a feature or a bug?

I am not sure I understand your pictures, but anyway: the style
TR_ALIGN_WINDOWS will align all the windows at the same X position,
which is the end position of the longest tree item (longest in term of
number of characters in the text). It appears this thing is not
working when you scroll horizontally, but I need some more info:

1) wxPython version;
2) AGW version (is it from SVN?)
3) Sample app to reproduce the problem.

Before I can attempt to look into it.

Andrea.

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

···

On 8 March 2012 17:23, Fabio Spadaro wrote:

Hi.

I am not sure I understand your pictures, but anyway: the style

TR_ALIGN_WINDOWS will align all the windows at the same X position,

which is the end position of the longest tree item (longest in term of

number of characters in the text). It appears this thing is not

working when you scroll horizontally, but I need some more info:

  1. wxPython version;
    2.8.12.1
  1. AGW version (is it from SVN?)
    Two days ago i downloaded olny customtreectrl.py from SVN
  1. Sample app to reproduce the problem.
    From demo:

1 - Run customtreectrl

2 - Check TR_ALIGN_WINDOW agwstyle

3 - Resize the tree panel until the scrollbar appears

4 - Move scrollbar on the right: you’ll see that widget no move to the left

I hope i explained.

···

Il giorno 08 marzo 2012 17:37, Andrea Gavana andrea.gavana@gmail.com ha scritto:


Fabio Spadaro

Try Sqlite Root a GUI Admin Tools for manage Sqlite Database:

www.sqliteroot.com

Hi,

···

On 8 March 2012 19:56, Fabio Spadaro wrote:

Hi.
Il giorno 08 marzo 2012 17:37, Andrea Gavana <andrea.gavana@gmail.com> ha
scritto:

I am not sure I understand your pictures, but anyway: the style
TR_ALIGN_WINDOWS will align all the windows at the same X position,
which is the end position of the longest tree item (longest in term of
number of characters in the text). It appears this thing is not
working when you scroll horizontally, but I need some more info:

1) wxPython version;

      2\.8\.12\.1

2) AGW version (is it from SVN?)

     Two days ago i downloaded olny customtreectrl\.py from SVN

3) Sample app to reproduce the problem.

From demo:
1 - Run customtreectrl
2 - Check TR_ALIGN_WINDOW agwstyle
3 - Resize the tree panel until the scrollbar appears
4 - Move scrollbar on the right: you'll see that widget no move to the
left

Thanks, it was indeed a bug. It should be fixed in the latest SVN (70845).

Andrea.

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