Copyright © 2013-2017 MultiMedia Soft

GraphicItemBuddyTextFontParamsSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies one of the font settings for the buddy text of the given graphic item.

This method is provided with the purpose of allowing single settings modifications when dealing with languages like JavaScript where data structures are not easy to implement.

 

 

Syntax

 

[Visual Basic]

control.GraphicItemBuddyTextFontParamsSet (

nUniqueId as Integer,

nParam as short,

strValue as String

) as enumWanErrorCodes


 

[C++]

short control.GraphicItemBuddyTextFontParamsSet (

short nUniqueId,

short nParam,

LPCTSTR strValue

);


 

Parameter

Description

 

 

nUniqueId

Unique identification number assigned to the graphic item.

The unique identification number of a graphic item is generated using one of the following methods:

GraphicItemHorizontalLineAdd for horizontal lines
GraphicItemVerticalLineAdd for vertical lines
GraphicItemWaveRangeAdd for wave ranges

nParam

Numeric identifier of the requested parameter.

Supported values are the following:

Value

Meaning

0

lfFaceName member of the LOGFONT data structure (for details about the LOGFONT data structure see the MSDN documentation).

1

lfHeight member of the LOGFONT data structure

2

lfWeight member of the LOGFONT data structure

3

lfItalic member of the LOGFONT data structure

4

lfUnderline member of the LOGFONT data structure

5

lfStrikeOut member of the LOGFONT data structure

strValue

String representing the numerical value to set: the multimedia engine will manage converting the string into the corresponding numerical value.

 

 

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.