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 Windows
 Charting and Real-Time Graphics Tools for Windows
 Why my timeAxis value are in negative.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chandrapnc

3 Posts

Posted - 27 May 2005 :  12:03:11  Show Profile  Reply with Quote
My initial TimeAxis label displays are in 24h format, after
I change time range, I call
WRResetTimeLabels (m_pDynGrDesc, m_XAxisLabels,
((time->tm_hour * 60 * 60)
+ (time->tm_min * 60)
+ time->tm_sec));
After ResetTimeLabels call, I get correct end time.
When I move horizontal bar, I get negative # for before midnight data.
Doesn't ResetTimeLabels automatically calculate time in 24hr format?
Do I need to make another WRUpdateTimeLabel call?

Thanks for your help!

quinncurtis

1164 Posts

Posted - 27 May 2005 :  13:31:06  Show Profile  Reply with Quote
In general it is not a good idea to change the time scale of real-time windows, if that is what you are doing. That is best left to the static plotting windows. The history buffer does not store the x-values for the related data and changing the scale may get the history buffer out of sync with the displayed scale. Please supply us with the complete source to a simple example that we can run that demonstrates the problem and we may be able to suggest something or explain the behavior. Zip a complete project that we can run and send it to support@quinn-curtis.com with an explanation of how to reproduce the problem.
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