Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - in-item progress indicators in ReportCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

in-item progress indicators in ReportCtrl

 Post Reply Post Reply
Author
Message
securigy View Drop Down
Groupie
Groupie


Joined: 23 November 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote securigy Quote  Post ReplyReply Direct Link To This Post Topic: in-item progress indicators in ReportCtrl
    Posted: 14 July 2009 at 3:56pm
How would you go about including progress indicators in each row or report control, something similar to this:

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2009 at 8:15pm
We already had similar item - as CXTPReportRecordItemPercentNumber:

//-----------------------------------------------------------------------

// Summary:

// Call this member function to Store/Load a report record item

// using the specified data object.

// c-tr can pass value and color to draw like task manager percent complete field

// Parameters:

// dValue - double value

// clr - color

// bPercentCompleteDisplay - show as colored rect inside

//-----------------------------------------------------------------------

CXTPReportRecordItemPercentNumber(double dValue = 0, COLORREF clr = RGB(224,224,224), BOOL bPercentCompleteDisplay = TRUE);

//-----------------------------------------------------------------------

// Summary:

// Should be overridden by descendants for drawing itself.

// Parameters:

// pDrawArgs - structure which contain drawing arguments.

// pMetrics - structure which contain metrics of the item.

//-----------------------------------------------------------------------

void OnDrawCaption(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs,

XTP_REPORTRECORDITEM_METRICS* pMetrics);

public:

COLORREF m_clr; //color

BOOL m_bPercentCompleteDisplay; //flag

};

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.