Print Page | Close Window

How could be draw an rectangle around a row?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19080
Printed Date: 02 July 2024 at 4:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How could be draw an rectangle around a row?
Posted By: FSauer
Subject: How could be draw an rectangle around a row?
Date Posted: 18 October 2011 at 8:49am

CXTPReportRow::Draw & FillRow <> earlier vers (2)

*******************************************

How could be draw an rectangle around a row?

By changing my code only at the following line:
    CRect rc = pRow->GetRect(); (instead rcItem)
the rectangle is draw, but not for the previewItem area.

Also, FillRow is called for every item. (please have a look to CXTPReportRow::Draw)

    rc.right -=2;
    rc.top +=1;
    rc.left +=2;
    rc.bottom -=2;

            if(...)
            {
                pDC->SelectObject(CreatePen(PS_INSIDEFRAME, 2, RGB(255,0,0)));
                pDC->Rectangle(rc);
            }



Replies:
Posted By: FSauer
Date Posted: 20 October 2011 at 4:20am
Hi Andre,

Confused is there no solution?




Posted By: ABuenger
Date Posted: 23 October 2011 at 11:17am
Hi,

I'll add a row border property.

Andre



-------------
Codejock support


Posted By: FSauer
Date Posted: 19 March 2012 at 4:56pm
Hi Andre,

did you add the border property? Could you provide me this update?
Or what is the best way to draw a rectangle with my version around a row? 


Posted By: FSauer
Date Posted: 22 March 2012 at 11:28am
Hi Andre,  did you add the border property? 

Wacko



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net