Print Page | Close Window

CXTEditListBox erroneous behavior?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7356
Printed Date: 15 May 2024 at 11:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTEditListBox erroneous behavior?
Posted By: znakeeye
Subject: CXTEditListBox erroneous behavior?
Date Posted: 11 June 2007 at 6:42am
Hi,
 
I believe CXTEditListBox was originally adapted from the "VC++ directories"-control found in Visual Studio. I have found a strange behavior when clicking in a non-item area. Instead of showing the "add item"-edit control, the selection is lost. This confuses users accustomed to Microsoft products.
 
In XTEditListBox.cpp (627) we find this:
SetCurSel(-1);
pOwner->SendMessage(WM_COMMAND, MAKEWPARAM(GetDlgCtrlID(), LBN_SELCHANGE), (LPARAM)m_hWnd);
 
That makes no sense. When would you want to lose the focus? It has no practical use. I think the behavior found in Visual Studio is desirable.
 
What do you think?



Replies:
Posted By: znakeeye
Date Posted: 11 June 2007 at 6:51am
Well, regarding the "edit item"-behavior in VS, I just realized that all you have to do is to add an extra item with no text :)
 
Still, this deselect "feature" feels wrong.



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