BUG: CMarkupTreeCtrl + EnableMultiSelect |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 08 July 2009 at 8:31am |
XTP 13.1. m_treeCtrl.EnableMultiSelect(); // CMarkupTreeCtrl-derived class
After that call you can select multiple items, but selecting ONE item is impossible. You only get an ugly focus rectangle around your item.
Actually, there seems to be a problem with right-clicks too. As soon as I inherit CMarkupTreeCtrl, right-clicking causes the focus to go away (painting problem?). Please point me in the right direction. I really need markup and correct tree control behavior :(
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Problem here that GetItemRect assumes item is empty and return with of emty string, so XTTreeCtrl can't determine if curor around item.
Weird workaround here is to set some space string to match Markup you have.
hItem = InsertItem(_T(" "), nImage, nSelectedImage, hParent, hInsertAfter);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |