API Documentation -> NtFlankControl -> Init

# NtFlankControl.Init Method

Initializes the Flank Control: Attaches this NtFlankControl to the NtTimeChartControl ntTimeChartControl, links to the horizontal scrollbar on its bottom and defines the sheet width of this Flank Control.

Overload List:

Modifier / Return Value | Name and Parameters | Description
--- | --- | ---
public void | Init ( NtTimeChartControl ntTimeChartControl, NtHScrollBar ntHScrollBar, int sheetWidth ) | Initializes the Flank Control. This links the NtFlankControl to the NtTimeChartControl given as a parameter.

Return value:

void

Parameters:

NtTimeChartControl ntTimeChartControl
The NtTimeChartControl you want this Flank Control to connect with. The process of connecting is done automatically by this Init() method. As a result both the controls follow each other on vertical scrolling and changes in row order and row height.

NtHScrollBar ntHScrollBar
The small horizontal scroll bar that is located to the bottom of this NtFlankControl and does the horizontal scrolling of the NtFlankControl. Please note that this scroll bar is a separate control of its own. The reason for this is that Windows controls have an issue activating one scroll bar only.

int sheetWidth
Determines the sheet width of the Flank Control. The sheet's height is always the same as the NtTimeChartControl's sheet height. Meanwhile the sheet width of the NtFlankControl is free to set. It can be wider than the NtFlankControl's ClientSize width. This makes sense for example if the texts you need to set up the legend of your rows is longer than the Flank Control's width or if you want to show a wider bitmap. In this case the Flank Control is scrollable in horizontal direction.
In general, it is good advice to set the sheetwidth to the Flank Control's ClientSize width. You do not need any scroll bars then, which feels common for a legend.

Remarks:

None.

Top API Documentation -> NtFlankControl -> Init © 2016 Bassaly