Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 xAxis label need to display in 24h format.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chandrapnc

3 Posts

Posted - 26 May 2005 :  12:19:50  Show Profile  Reply with Quote
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,

quinncurtis

1164 Posts

Posted - 26 May 2005 :  12:51:57  Show Profile  Reply with Quote
You are still posting in the wrong forum. Both forums you have posted in are for the .Net products. You should be posting in the "Tools for Windows - Charting and Real-Time Graphics Tools for Windows.

You should create the simplest possible example of your problem and zip together the complete project and send it to support@quinn-curtis.com. We may be able to make some suggestions after we review a complete working program.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07