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 Tech Support » CExtGridCellButton in a CExtPropertyGridCtrl Collapse All
Subject Author Date
Michael Valentine Apr 4, 2007 - 8:11 AM

How do I handle when a CExtGridCellButton is clicked from within a CEXTPropertyGridCtrl? For all the other types of grid cell I am overriding the Apply(CExtGridCell* pValue) function and handling the change here. However, this does not seem to be called when I use a CExtGridCellButton. The only example I could find was in the sample ProfUIS_Controls::PageGrid.cpp, but this does not handle the button press. For the time being I am overriding CExtPropertyGridCtrl::OnGbwAnalyzeCellMouseClickEvent function and checking the type of cell that is clicked on. Surely there is a better way than this?

Thanks

Technical Support Apr 4, 2007 - 12:06 PM

You should override the CExtGridCellButton::OnButtonPressed() method. The following thread may be helpful with this

http://www.prof-uis.com/Forum_View.aspx?CID=29&M=54584