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 » Did you change specifications of OnQueryTextAreaMargins of it? Collapse All
Subject Author Date
tarou iiyama Jun 6, 2006 - 8:08 PM

Hello

CExtGridCellString::OnQueryTextAreaMargins worked at the time of Prof2.53 well.
( ttp://profuis0.tripod.com/20060607/image03.jpg )

However, a tool tip came to be displayed since Prof2.54.
( ttp://profuis0.tripod.com/20060607/image01.jpg )

------------------------------------------------------------------------

CRect CExtGridCellStringDM2::OnQueryTextAreaMargins(
const CExtGridWnd & wndGrid,
CDC & dc,
LONG nVisibleColNo,
LONG nVisibleRowNo,
LONG nColNo,
LONG nRowNo,
INT nColType,
INT nRowType,
DWORD dwAreaFlags,
DWORD dwHelperPaintFlags
) const
{

return CRect( 6, 1, 6, 1 );
}
------------------------------------------------------------------------

 In CExtGridWnd-ExtentSet, I made width big, and a tool tip was not displayed.
A problem is already settled.

Thank You

Technical Support Jun 7, 2006 - 9:36 AM

Yes, we changed the algorithm for measuring the cell text and now the OnQueryTextAreaMargins method looks like this:

CRect CExtGridCell::OnQueryTextAreaMargins(

            const CExtGridWnd & wndGrid,

            CDC & dc,

            LONG nVisibleColNo,

            LONG nVisibleRowNo,

            LONG nColNo,

            LONG nRowNo,

            INT nColType,

            INT nRowType,

            DWORD dwAreaFlags,

            DWORD dwHelperPaintFlags

            ) const

{

            ASSERT_VALID( this );

            ASSERT_VALID( (&wndGrid) );

            ASSERT( dc.GetSafeHdc() != NULL );

            wndGrid;

            dc;

            nVisibleColNo;

            nVisibleRowNo;

            nColNo;

            nRowNo;

            nColType;

            nRowType;

            dwAreaFlags;

            dwHelperPaintFlags;

            return CRect( 2, 0, 2, 0 );

}
So please change your top and bottom margins to zero and let us know whether the problem has gone away:
return CRect( 6, 0, 6, 0 );