ChartDirector 6.0 (C++ Edition)

CChartViewer.setUpdateInterval


Usage

void setUpdateInterval(int interval);

Description

Sets the minimum gap interval between two CVN_ViewPortChanged messages in milliseconds.

Some GUI designs may be capable of generate a lot of CVN_ViewPortChanged messages rapidly. For example, an external scroll bar may update the viewport and call CChartViewer.updateViewPort rapidly and repeatedly when it is scrolling. As the chart is usually updated in the main GUI thread, updating too rapidly without a gap interval in between may cause other GUI elements to become sluggish.

This method specifies the minimum gap interval between two CVN_ViewPortChanged messages. The default is 20ms.

If a CVN_ViewPortChanged message needs to be sent during the gap interval, the message will be delayed and sent after the gap interval.

If multiple CVN_ViewPortChanged messages needs to be sent during the gap interval, they will be merged into one message, and be sent after the gap interval.

Arguments

ArgumentDefaultDescription
interval(Mandatory)The minimum gap interval between two CVN_ViewPortChanged messages in milliseconds.

Return Value

None