If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
-
zlly20
- Knows some wx things

- Posts: 36
- Joined: Thu Dec 22, 2005 6:25 am
Post
by zlly20 » Sat May 27, 2006 9:03 am
just like msn messenger contact list that, each item in the list is your contact whose personalized name may contains emoticons such as
how would I achieve this using wxTreeCtrl???
-
benedicte
- wxWorld Domination!

- Posts: 1409
- Joined: Wed Jan 19, 2005 3:44 pm
- Location: Paris, France
Post
by benedicte » Sat May 27, 2006 9:04 am
Build an image list (wxTreeCtrl::AssignImageList), and call wxTreeCtrl::SetItemImage on the item with the index of the image to use.
-
zlly20
- Knows some wx things

- Posts: 36
- Joined: Thu Dec 22, 2005 6:25 am
Post
by zlly20 » Sat May 27, 2006 11:01 am
I think you misunderstand what I meant and sorry for the ambiguity..
what I meant is that encode the emoticons or smiley in to the name of your contact.
how to upload an image in this forum, a screenshot could explain better...
-
benedicte
- wxWorld Domination!

- Posts: 1409
- Joined: Wed Jan 19, 2005 3:44 pm
- Location: Paris, France
Post
by benedicte » Sat May 27, 2006 12:08 pm
are you saying something like:
contact

name
???
so that the emoticon appears inside the name, and not as the tree image?
-
zlly20
- Knows some wx things

- Posts: 36
- Joined: Thu Dec 22, 2005 6:25 am
Post
by zlly20 » Sun May 28, 2006 5:08 am
yes.... you got it now....

-
Cursor
- Earned some good credits

- Posts: 120
- Joined: Sun Aug 29, 2004 3:09 pm
- Location: Grenoble, France
-
Contact:
Post
by Cursor » Mon May 29, 2006 5:17 am
You cant do it directly, you calculate imoticon place in the wxTreeCtrl and manually place corresponding wxStaticImage (or other) on it.
What is little and green, witch go up and down ??
Yoda playing with the force.
-
zlly20
- Knows some wx things

- Posts: 36
- Joined: Thu Dec 22, 2005 6:25 am
Post
by zlly20 » Mon May 29, 2006 9:52 am
"manually place corresponding wxStaticImage (or other) on it"
Could you explain how exactly would I do this??? and what do you mean by "manually place" ???
Thanks
-
zlly20
- Knows some wx things

- Posts: 36
- Joined: Thu Dec 22, 2005 6:25 am
Post
by zlly20 » Mon May 29, 2006 2:19 pm
thanks, I will try that....