Copyright © 2013-2014 MultiMedia Soft

SettingsRulersSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets rulers new settings for the waveform analyzer. Current settings can be obtained through the SettingsRulersGet method.

 

 

Syntax

 

[Visual Basic]

control.SettingsRulersSet (

settings as Long,

hFontText as OLE_HANDLE

) as enumWanErrorCodes


 

[C++]

short control.SettingsRulersSet (

WANALYZER_RULERS_SETTINGS settings,

OLE_HANDLE hFontText

);


 

 

Parameter

Description

 

 

settings

Address of a structure of type WANALYZER_RULERS_SETTINGS that contains the rulers new settings.

hFontText

The handle to the font that needs to be used for rendering the text of ruler's ticks.

The component will make a copy of this font so, when the method's call returns to the caller, you can remove this font from system resources by calling the DeleteObject function of the Windows API.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumWanErrorCodes.ERR_WAN_NOERROR (0)

The method call was successful.