Print Page | Close Window

CXTPControlComboBox notification message problems

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=7246
Printed Date: 12 November 2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlComboBox notification message problems
Posted By: Joe19
Subject: CXTPControlComboBox notification message problems
Date Posted: 27 May 2007 at 12:44am

I have a CXTPControlComboBox control used in a RibbonBar.  The only notification that I can get if the user edits the edit control of the combobox is a CBN_EDITCHANGE message.  ON_XTP_EXECUTE does not fire on the edit change (only the listbox change).  The problem is that when the user uses the listbox part of the control, there are actually two CBN_EDITCHANGE messages fired.  I traced this to the function _SetEditText.  When this function is called to insert text into the edit control, if first inserts a NULL entry (causing the message to fire) and then inserts the "real" text causing the second message.

My work around is to test if the GetEditText returns an empty string (the NULL insert) and then ignore that message.  However this forces me to not allow the user to have an empty string as a valid input.

 




Replies:
Posted By: Oleg
Date Posted: 28 May 2007 at 6:56am
Thanks, we will add flag to ignore first CBN_EDITCHANGE.

-------------
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