User forums > Using Code::Blocks

[wxSmith] How to add Tree Control items?

(1/3) > >>

Cinolt:
Hi, I'm using wxSmith and created a tree control, but is there any way I can add items to this such as text?

MortenMacFly:

--- Quote from: Cinolt on August 02, 2010, 02:30:30 am ---Hi, I'm using wxSmith and created a tree control, but is there any way I can add items to this such as text?

--- End quote ---
I am not sure what exactly you mean by "adding text", but you can try to start here:
http://wiki.codeblocks.org/index.php?title=WxSmith_tutorials

Cinolt:

--- Quote from: MortenMacFly on August 02, 2010, 06:55:36 am ---I am not sure what exactly you mean by "adding text"
--- End quote ---

Perhaps the only thing I could mean. Here's a picture to illustrate an example of what I want:
http://i27.tinypic.com/1054dag.jpg

It seems like such a trivial task to implement; can I at least get some rationale as to why wxSmith would support adding a tree control but not allow the user to add text to it?

oBFusCATed:
Probably because no one needed it, also most of the time you'll want to associate some user data to the tree items, not just text.

Cinolt:
The text is the prime component of the tree control, what do you mean no one needed it? Am I really the only one who finds it silly that the only support wxSmith has for the tree control is a blank tree control? I don't know, to me that just sounds odd. Just slightly.

Navigation

[0] Message Index

[#] Next page

Go to full version