BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Fully implemented BCGSuite (MFC)
Not available BCGControlBar (Microsoft .NET)

Duration control

Duration control allows you to edit event duration such as "6 days 10 hours 24 minutes".

  • Several customizable fields display days, hours and minutes of the duration data stored in the control
  • Ability to change the set of displayed fields
  • Duration control notifies its parent about duration changes. The parent may retrieve the current duration
Sample code:
CBCGPDurationCtrl m_wndDuration;
...

// Set duration:
COleDateTimeSpan dts (6l /* Days */, 10 /* Hours */, 24 /* Minutes */, 0 /* Sec */);
m_wndDuration.SetDuration (dts);
...
// Get duration:
COleDateTimeSpan dts = m_wndDuration.GetDuration();
Prev  Next