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 CExtGridWnd Collapse All
Subject Author Date
tera tera Aug 31, 2008 - 8:11 PM

 


Hello


A blue line is displayed when I declare __EGBS_GRIDLINES.

I am troubled.


http://www.yukai.jp/~ifreeta/20080901/SampleMuGridNewBug.lzh



 


I become like this by normal how to use with a grid.

Technical Support Sep 3, 2008 - 1:04 PM

We have modified your header cell initialization code for row header cells at left to fix the problem:

    for ( iRec = 0 ; iRec < 10 ; iRec++ )
    {
        pExtGridCellHeader = 
            STATIC_DOWNCAST(
                CExtGridCellHeader,
                m_pMuGrid->GridCellGetOuterAtLeft(
                    0,
                    iRec,
                    RUNTIME_CLASS(CExtGridCellHeader)
                )
            );

//      pExtGridCellHeader->ExtentSet ( 15 );
pExtGridCellHeader->ExtentSet ( 18 );
pExtGridCellHeader->ExtentSet( 17, -1 );

        pExtGridCellString =
            STATIC_DOWNCAST(
                CExtGridCellString,
                    m_pMuGrid->GridCellGet(
                         0,
                         iRec,
                         0,
                         0,
                        RUNTIME_CLASS(CExtGridCellString)
                    )
                );
        csStr.Format(" AAAA %d" , iRec );
        pExtGridCellString->TextSet( csStr );
    }
This problem actually is not a problem. Your grid row height is simply very small. As a result the bounds of in-pace activated grid cell editor window become outside grid cell bounds.