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 » How to get the cell focus? Collapse All
Subject Author Date
mai mike Jul 26, 2007 - 9:38 AM

Dear:
When i click one cell, how can i get this cell foucs? because i want to popup a context menu when i click the special cell.
How can i implement the function?

Thank you in advance

Mike.Mai

mai mike Jul 31, 2007 - 8:44 AM

Dear:
Thank you!
Mike

Technical Support Jul 28, 2007 - 12:06 PM

We answered a similar question in this thread.

Suhai Gyorgy Jul 26, 2007 - 2:04 PM

You should override OnGbwAnalyzeCellMouseClickEvent method. Check Help file’s Reference section, under CExtGridBaseWnd/Overridables

mai mike Jul 26, 2007 - 8:37 PM

Dear:
Thank you.

And if when click the special cell such as row = 2 and column = 2, how can i know i click this cell?

Thanks

Mike.Mai

Suhai Gyorgy Jul 27, 2007 - 5:24 AM

CExtGridHitTestInfo htInfo;
htInfo.m_ptClient = point;
HitTest(htInfo, true, true);

After that, htInfo will tell you row and column index and other infos. Check out Help file for CExtGridHitTestInfo properties.