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 » Bug in CExtGridBaseWnd::FocusSet Collapse All
Subject Author Date
Offer Har Apr 20, 2007 - 8:34 AM

Dear Support,

When adding a row, and setting the focus to it (the last row), it is just under the last row of the grid always, and it not visible.
This is the piece of code for reproducing the problem (make sure you have horizontal scroll-bar...):

RowAdd(1, false);
LONG nRowCount = RowCountGet();
// Here i do some cells manipulation
FocusSet(CPoint(0, nRowCount-1), true, true, true, false);
OnSwUpdateScrollBars();
OnSwDoRedraw();

Please fix for coming version.

Regards,
Ron.

Technical Support Apr 20, 2007 - 10:01 AM

Ron, you would agree with us that it is unfair to label a question that arises with the word bug off hand. We cannot yet confirm that it is a bug. Please swap some lines in the code you provided

OnSwUpdateScrollBars();
FocusSet(CPoint(0, nRowCount-1), true, true, true, false);
OnSwDoRedraw();
The focus change method is unable to scroll the grid window because the scroll bars are not initialized properly.

Offer Har Apr 20, 2007 - 10:28 AM

Thanks,

Problem (not a bug) solved!