Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » COMBO BOX SELECTION NOT GETTING REFLECTED IN CORRESPONDING GRID Collapse All
Subject Author Date
SANKET DAS Jul 13, 2006 - 11:48 AM

I have a tool bar created with the latest PROFUIS class.A combo box derived from CExtComboBox is added to the tool bar at runtime,this combo box enables the user to select font types.

I have a MainFrm.cpp which is derived from CExt<Frmwd>
Then I have a Formatbar derived from CExtControl and a Combo derived from CExtCombo.
The font combo is added to the Format bar at runtime.
Format bar is declared in MainFrm.cpp.Before we had the ComboBox derived from CCombo and it was working fine,but now the handler method that should be called for selection to reflect is not getting called.Also I am using the same Id for the combo box as earlier.

Please suggest a solution

SANKET DAS Jul 15, 2006 - 5:03 AM

We have been using message handlers previously like the following:

ON_CBN_CLOSEUP(IDC_SAUT_TBFORMAT_CBOFONT, OnFmtCloseupFontCombo)

with CSaISMainFrm ::OnFmtCloseupFontCombo() defined in the MainFrm.cpp.This used to work properly earlier.Now we derive the the CSaISMainFrm from CExtNCW < CFrameWnd > and it does not get called.Again I want to state that the ID for combo used for both the UtToolBar class and MainFrm class are the same.

I even tried using ON_CBN_SELCHANGE but it did not help.

Technical Support Jul 17, 2006 - 11:55 AM

Here is a modified SDI sample project with a combo box in a toolbar. We added two handlers for the CBN_SELCHANGE and CBN_SELENDOK messages

Technical Support Jul 14, 2006 - 12:20 PM

As you know there several combo boxes in toolbars are used in the ProfStudio sample . We have just checked the issue by adding a CBN_SELCHANGE handler for one of them and there is no problem with it.

Here is the message map:

 //{{AFX_MSG_MAP(CMainFrame)
...
 ON_CBN_SELCHANGE(ID_SOLUTION_CONFIGURATION_COMBO, OnSelchange)
 //}}AFX_MSG_MAP
Would you send us the source code or a test project so that we can check it?