Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setting custome value to segmentclock
10-28-2014, 07:27 PM
Post: #1
setting custome value to segmentclock
Dear sir,

I am using InstrumnetLab V4.5
I am referring demo source code with visual studio 6 with MFC
I want to used this segmented clock with my custom value.
Basically wanted to create a up/down counter and not the clock.


This is my code snipets.

Clock1.Open( m_Clock1.m_hWnd );

Clock1.Segments.CenterColor = 0xFF00FFFF;
Clock1.Segments.Color = 0xFF4040FF;
//Clock1.Sections.Hours.Mode24Hours = false;
//Clock1.Sections.AmPm.Visible = true;
Clock1.Sections.Minutes.Separator.Points.Add( 2 );
Clock1.Sections.Seconds.Separator.Points.Add( 2 );
Clock1.TimeSource=tsValue;


Clock1.Value=691.9;
Now the “Value” is a double data type.
If I wanna set 14:32:50 what value I supposed to set and how to calculate it.


Thanking you,
Umesh
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
setting custome value to segmentclock - umeshwalkar - 10-28-2014 07:27 PM
RE: setting custome value to segmentclock - Dave - 10-29-2014, 02:33 AM
Alac converter bound - CobDiomi - 12-03-2016, 07:59 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)