Print Page | Close Window

BUG: CMarkupTreeCtrl + EnableMultiSelect

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14704
Printed Date: 08 May 2024 at 6:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: CMarkupTreeCtrl + EnableMultiSelect
Posted By: znakeeye
Subject: BUG: CMarkupTreeCtrl + EnableMultiSelect
Date 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/



Replies:
Posted By: Oleg
Date Posted: 10 July 2009 at 6:21am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net