TreeCtrl

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
jcvignoud
Knows some wx things
Knows some wx things
Posts: 28
Joined: Wed Apr 20, 2005 4:50 pm

TreeCtrl

Post by jcvignoud » Thu Apr 21, 2005 9:55 am

Hello,

my name is jean-christophe and i'm a new wxWidgets user. I want to know if it's possible to create a tree within you can selected items (like checkbox).

I want to know if it's possible without overload functions with for exemple windows API function because I want to keep portable my soft.

Regards,

JC

wyo
In need of some credit
In need of some credit
Posts: 9
Joined: Thu Apr 21, 2005 8:03 pm
Contact:

Post by wyo » Mon Apr 25, 2005 10:47 am

If you look for a wxComboBox (e.g. a wxTreeBox) which shows a tree instead of a list of items then it doesn't exists. I've though of create this myself but I've never found the time to start.

O. Wyss

jcvignoud
Knows some wx things
Knows some wx things
Posts: 28
Joined: Wed Apr 20, 2005 4:50 pm

Post by jcvignoud » Mon Apr 25, 2005 1:12 pm

Thank you for your reply,

Yes It's what I'm looking for.

I know that it possible to do that kind of Tree so if somebody else have already realise that, could you give me the code corresponding to that control.

Regards,

JC

wyo
In need of some credit
In need of some credit
Posts: 9
Joined: Thu Apr 21, 2005 8:03 pm
Contact:

Post by wyo » Wed Apr 27, 2005 5:56 am

As I said, I haven't found the time to start so far, but when I do you can find it at wxCode (http://wxcode.sf.net).

O. Wyss

jcvignoud
Knows some wx things
Knows some wx things
Posts: 28
Joined: Wed Apr 20, 2005 4:50 pm

Post by jcvignoud » Wed Apr 27, 2005 3:55 pm

Thanks for your reply,

Do you know if there is another way to realise a control to do that kind of selection (ie like a tree and a possibility to select parts of the tree because I want to see the current selected item of my tree and I want to select some of them for a futur extraction and I have no other ideas to do that !!!)

Regards,

JC

farengeti
Knows some wx things
Knows some wx things
Posts: 26
Joined: Thu Dec 16, 2004 2:11 am

Post by farengeti » Sun May 01, 2005 1:17 am

wxTreeMultiCtrl might work for you:

http://www.solidsteel.nl/jorg/component ... tiCtrl.php

You can add checkboxes to a tree control using this widget.

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Sun May 01, 2005 7:26 am

To add to this discussion, wxTreeMultiCtrl will (in the next version) have ability to add checkboxes by default. This will look like this sample;

Image

I am now in the battle with Bakefile and CMake and try to find a solution to get my project files back up for wx2.6.0 and then I will release the next version ;-)

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Post Reply