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 » CExtGridCellComboBox notification Collapse All
Subject Author Date
Bart Kampers Aug 6, 2009 - 5:57 AM

Hello,


 


Which method should I override if I want a notification when the selection of a CExtGridCellComboBox has changed? There must be something like On...Complete, right?


 


Thank you,


 


Bart.

Bart Kampers Aug 14, 2009 - 9:24 AM

The code was correct after all, even using DECLARE_DYNCREATE.


 


The problem was that Visual Studio decided not to break on the breakpoint :(

Bart Kampers Aug 13, 2009 - 2:49 AM


 


 



Here is my code. I put a breakpoint in OnPopupListBoxSelEndOK but it is never hit.


  


class CPackageCell : public CExtGridCellComboBox

{

  public:


    CPackageCell(CExtGridDataProvider* pDataProvider = NULL)

      : CExtGridCellComboBox(pDataProvider)

    {}


    DECLARE_DYNCREATE(CPackageCell)

   IMPLEMENT_ExtGridCell_Clone(CPackageCell, CExtGridCellComboBox);


    virtual bool OnPopupListBoxSelEndOK(CExtPopupInplaceListBox & wndListBox, CExtGridCell::TrackCellStateInfo_t & _tcsi)


    {



      return



__super::OnPopupListBoxSelEndOK(wndListBox, _tcsi);


   }

};

Technical Support Aug 14, 2009 - 1:01 PM

Did you try to rebuild your project?

Bart Kampers Aug 17, 2009 - 1:31 AM

> Did you try to rebuild your project?


 


No, but it works OK now.

Technical Support Aug 13, 2009 - 12:52 PM

Please use DECLARE_SERIAL instead of DECLARE_DYNCREATE.

Technical Support Aug 6, 2009 - 10:33 AM

The CExtGridCell::OnPopupListBoxSelEndOK() virtual method is similar to the CBN_SELENDOK notification of combo box common control.