Print Page | Close Window

in-item progress indicators in ReportCtrl

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=14746
Printed Date: 29 September 2024 at 5:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: in-item progress indicators in ReportCtrl
Posted By: securigy
Subject: in-item progress indicators in ReportCtrl
Date 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:




Replies:
Posted By: mdoubson
Date 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

};



-------------
Mark Doubson, Ph.D.



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