TAsciiChart::TAsciiChart() : TWindowInit(&TAsciiChart::initFrame), TWindow(TRect(0, 0, 34, 12), "ASCII Chart", wnNoNumber) { TView *control; flags &= ~(wfGrow | wfZoom); palette = wpGrayWindow; TRect r = getExtent(); r.grow(-1, -1); r.a.y = r.b.y - 1; control = new TReport(r); control->options |= ofFramed; control->eventMask |= evBroadcast; insert(control); r = getExtent(); r.grow(-1, -1); r.b.y = r.b.y - 2; control = new TTable(r); control->options |= ofFramed; control->options |= ofSelectable; control->blockCursor(); insert(control); control->select(); }
void TGroup::selectNext( Boolean forwards ) { if( current != 0 ) { TView* p = findNext(forwards); if (p) p->select(); } }