10-28-2014, 07:27 PM
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
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