I guess I asked this question in wrong forum earlier.... I am using Windows Real Time Tools from QC. When display historical data after change in time-range.. the time label are in negative format....
I am using following.... // Draw a horizontal time axis with tick marks. m_XAxis = WRDrawTimeAxis (m_pDynGrDesc, majorTickTimeDelta, // dist between major tick marks numSmallTicksBetweenLargeOnes, // number of minor tick mark between major ones POS_BELOW, // where to place the minor tick marks OR_HORZ, // axis to use AXU_SEC); // the unit that the xMax val in WGScalePlotArea corresponds to
// Label the horizontal time axis. struct tm *time = localtime (&m_StartTime); m_XAxisLabels = WRLabelTimeAxis (m_pDynGrDesc, m_XAxis, // axis to label POS_BELOW, // label position DLB_HMS, // label format HH:MM:SS 0, // does not apply to this label format time->tm_hour, // start hour time->tm_min, // start min time->tm_sec, // start second 0, // does not apply to this label format LL_ON, // display last label NULL); // this parameter is ignored since LL_ON
Then I use WRStartTimeLabelsUpdate (pGrDesc, m_XAxisLabels, m_ScrollingGraph); to get automatic update label when time-range changes and redraw graph happens...
Initial label are in 24h format... When I move horizontal bar to left I see negative time label...
I do get label update but it changes to -1.00 0.0 1.0 time-range. I would like to see time change in 24H format.
Can you please advice me on how I can get xAxis label in 24h format? Thanks, |