public HistoryViewer(Rect Bounds, ScrollBar AHScrollBar, ScrollBar AVScrollBar, int AHistoryId) : base(Bounds, 1, AHScrollBar, AVScrollBar) { HistoryId = AHistoryId; SetRange(History.HistoryCount(AHistoryId)); if (Range > 1) { FocusItem(1); } HScrollBar.SetRange(1, HistoryWidth() - Size.X + 3); }