wxTreeCtrl...HELP!

Hi,

I'm having problems with wxTreeCtrl. I want some items in the tree to
have icons, and some to be without. Like this:

+ parent1
    (icon) child1
    (icon) child2

+ parent2
    (icon) child3

When setting the children's icons in the tree, the twist buttons are
replaced by the first image in the image list. I have tried to set the
parents' icon to -1, no success. I have also tried to set a blank image
in front of the parents, but then the parents are indented much more than
the children, very ugly. PLEASE HELP!

Thanks,

Susanne

Susanne Lefvert wrote:

Hi,

I'm having problems with wxTreeCtrl. I want some items in the tree to
have icons, and some to be without. Like this:

+ parent1 (icon) child1
    (icon) child2

+ parent2
    (icon) child3

When setting the children's icons in the tree, the twist buttons are
replaced by the first image in the image list. I have tried to set the
parents' icon to -1, no success. I have also tried to set a blank image
in front of the parents, but then the parents are indented much more than
the children, very ugly. PLEASE HELP!

Platform and version?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Windows XP, wxPython 2.4.0.1

···

On Mon, 17 Feb 2003, Robin Dunn wrote:

Susanne Lefvert wrote:
> Hi,
>
> I'm having problems with wxTreeCtrl. I want some items in the tree to
> have icons, and some to be without. Like this:
>
> + parent1
> (icon) child1
> (icon) child2
>
> + parent2
> (icon) child3
>
>
> When setting the children's icons in the tree, the twist buttons are
> replaced by the first image in the image list. I have tried to set the
> parents' icon to -1, no success. I have also tried to set a blank image
> in front of the parents, but then the parents are indented much more than
> the children, very ugly. PLEASE HELP!
>

Platform and version?

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Susanne Lefvert wrote:

Windows XP, wxPython 2.4.0.1

Susanne Lefvert wrote:

Hi,

I'm having problems with wxTreeCtrl. I want some items in the tree to
have icons, and some to be without. Like this:

+ parent1 (icon) child1
   (icon) child2

+ parent2
   (icon) child3

When setting the children's icons in the tree, the twist buttons are
replaced by the first image in the image list. I have tried to set the
parents' icon to -1, no success. I have also tried to set a blank image
in front of the parents, but then the parents are indented much more than
the children, very ugly. PLEASE HELP!

Platform and version?

Please enter a bug report with wxMSW category.

···

On Mon, 17 Feb 2003, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!