Print Page | Close Window

Combobox problem with WinExplorer sample

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


Topic: Combobox problem with WinExplorer sample
Posted By: rconn
Subject: Combobox problem with WinExplorer sample
Date Posted: 19 May 2007 at 4:21pm

I just got the ToolkitPro and have been experimenting with the WinExplorer sample.  The address combo box is updated whenever I select something in the tree control, but entering something directly into the edit control of the combo box seems to be ignored.  (The OnAddressBarEnter() and OnSelEndOkAddressBar() functions are never  called.)

Where are the combo box notifications going?
 
- Rex



Replies:
Posted By: Oleg
Date Posted: 21 May 2007 at 1:07am
Hello,
 
OnSelEndOkAddressBar called when user show list of combobox and choose some item. OnAddressBarEnter indeed never called - was just copied from Samples\UserInterface\GUI_Explorer :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rconn
Date Posted: 21 May 2007 at 8:59am

Hi Oleg:

OnSelEndOkAddressBar is called if I select one of the entries from the drop-down list.  But if I type a new entry in the edit control and hit return, it is not called -- is there any notification sent for the edit control in the combo box?
 
    - Rex
 


Posted By: rconn
Date Posted: 21 May 2007 at 9:51am
Hi Oleg:
 
I discovered that adding a PreTranslateMessage() to my mainfrm window with a:
 
    if ( IsDialogMessage( pMsg ))
        return TRUE;
 
will call OnAddressBarEnter after entering something in the combobox edit control, so that's a workable solution.
 
    - Rex



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