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)

Task types

The Gantt Chart supports the following task types:

  • Regular
  • Milestone
  • Group (Project)

 

Sample code:
// Create a regular task
COleDateTime t = COleDateTime::GetCurrentTime ();
t.SetDate (t.GetYear (), t.GetMonth (), t.GetDay ()); // reset time

CBCGPGanttItem* pItem = new CBCGPGanttItem;
pItem->SetInterval (t, t + COleDateTimeSpan(3, 0, 0, 0));

// add to Gantt
pChart->AddItem (pItem);

// Milestone
pItem = new CBCGPGanttItem;
pChart->InsertItem (3, pItem);

t -= COleDateTimeSpan (1, 12, 0, 0);
pItem->SetInterval (t, t);

// Insert a group item
pItem = new CBCGPGanttItem;
pChart->InsertItem (2, pItem);
t -= COleDateTimeSpan(3, 6, 0, 0);
pItem->SetInterval (t, t + COleDateTimeSpan(4, 12, 0, 0));
pItem->SetGroupItem (TRUE);
Prev  Next