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 » Grid Top-Left cell Collapse All
Subject Author Date
Offer Har Oct 18, 2007 - 6:38 AM

Dear Support,

I have a grid derived class which i initialize to have one header row on the left side, and one at the top.
I would like to access the top-left cell for writing something in it. I understand that this is not supported - Can you please add this to your To Do list, or give me some solution to this problem, as this cell must look and conform with all other cells in the grid.

Thanks,
Ron.

Technical Support Oct 26, 2007 - 11:11 AM

This feature is implemented. Please download the updated source code from our ftp server.

Technical Support Oct 25, 2007 - 12:28 PM

This feature is under development and will be available within a week.

Technical Support Oct 23, 2007 - 3:09 PM

In fact, the corner areas in the CExtGridWnd class and all the classes derived from it can contain grid cells and even the data provider supports grid cells in these areas, but we did not implement painting, measuring and printing for grid cells in these areas. It’s not a problem to implement this feature.

Offer Har Oct 23, 2007 - 3:29 PM

Dear Support,

Can you please explain what you mean my that?
How do I create it?
How do I access it?

Thanks,
Ron.

Technical Support Oct 29, 2007 - 1:44 PM

The CExtGridWnd::GridCellGet() virtual method has the INT nColType and INT nRowType parameters. Previously only one of them can have a non-zero value. Now both of them can be non-zero so you can access corner cells.


Offer Har Oct 29, 2007 - 1:48 PM

How do I get the version with this fix?

Technical Support Oct 30, 2007 - 2:54 PM

As a subscriber, you can always download the latest source code from our ftp server. You can request the details at support@prof-uis.com.

Suhai Gyorgy Oct 30, 2007 - 2:36 AM

Send an e-mail from your registered e-mail address to support@prof-uis.com , requesting access to the ftp server. They’ll tell you the details in the answer email.

Technical Support Oct 18, 2007 - 2:16 PM

The grid control does not display cell objects in the corners but you can repaint them if you need to display some information there. You should override the CExtGridBaseWnd::OnGbwEraseArea() virtual method like as follows:

void CYourGridWnd::OnGbwEraseArea(
    CDC & dc,
    const RECT & rcArea,
    DWORD dwAreaFlags
    ) const
{
    ASSERT_VALID( this );
    ASSERT( dc.GetSafeHdc() != NULL );
COLORREF clrDebugFill = COLORREF( -1L );
    switch( dwAreaFlags )
    {
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_TOP:
        clrDebugFill = RGB( 255, 128, 128 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_BOTTOM:
        clrDebugFill = RGB( 128, 255, 128 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_LEFT:
        clrDebugFill = RGB( 128, 128, 255 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_RIGHT:
        clrDebugFill = RGB( 128, 255, 255 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_LEFT|__EGBWA_OUTER_TOP:
        clrDebugFill = RGB( 255, 128, 255 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_LEFT|__EGBWA_OUTER_BOTTOM:
        clrDebugFill = RGB( 255, 255, 128 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_RIGHT|__EGBWA_OUTER_TOP:
        clrDebugFill = RGB( 255, 255, 128 );
    break;
    case __EGBWA_OUTER_CELLS|__EGBWA_OUTER_RIGHT|__EGBWA_OUTER_BOTTOM:
        clrDebugFill = RGB( 128, 128, 128 );
    break;
    case __EGBWA_INNER_CELLS:
        clrDebugFill = RGB( 255, 255, 224 );
    break;
    }
    if( clrDebugFill != COLORREF( -1L ) )
        dc.FillSolidRect( &rcArea, clrDebugFill );
}


Offer Har Oct 18, 2007 - 2:48 PM

Dear Support,

I understand that I can draw there manually but I think that this cell should be a normal cell, so that we won’t have to work with a DC each time we want to put something in this location.
In other grids I worked in the past this was a normal cell, and I think it should be here as well.

Please let me know what you think about this issue.

Regards,
Ron.

Offer Har Oct 23, 2007 - 6:59 AM

Dear Support,

Still waiting a reply.

Regards,
Ron.