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???
how would I diplay small emoticons in a wxTreeCtrl item???
-
- Earned some good credits
- Posts: 120
- Joined: Sun Aug 29, 2004 3:09 pm
- Location: Grenoble, France
- Contact:
You can use wxStaticBitmap as treectrl child to show the imoticon, you just have to place it.
You can retrieve the text coordinates of an item with wxTreeCtrl::GetBoundingRect [1].
You can calculate position of you imoticon in your text with wxDC::GetTextExtent [2] (you can set the item font to the wxDC with wxTreeCtrl::GetItemFont [3]).
[1] : http://www.wxwidgets.org/manuals/2.6.3/ ... etitemrect
[2] : http://www.wxwidgets.org/manuals/2.6.3/ ... textextent
[3] : http://www.wxwidgets.org/manuals/2.6.3/ ... etitemfont
You can retrieve the text coordinates of an item with wxTreeCtrl::GetBoundingRect [1].
You can calculate position of you imoticon in your text with wxDC::GetTextExtent [2] (you can set the item font to the wxDC with wxTreeCtrl::GetItemFont [3]).
[1] : http://www.wxwidgets.org/manuals/2.6.3/ ... etitemrect
[2] : http://www.wxwidgets.org/manuals/2.6.3/ ... textextent
[3] : http://www.wxwidgets.org/manuals/2.6.3/ ... etitemfont
What is little and green, witch go up and down ??
Yoda playing with the force.
Yoda playing with the force.