Copyright © 2006-2019 MultiMedia Soft

GraphicBarsManager.SetFlatBorder method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets parameters for the flat border surrounding the graphic bar. This method is ignored if the border of the graphic bar has been set to 3D mode by setting the bAppearance3d parameter of the GRAPHIC_BAR_SETTINGS structure to "True".

 

In the graphics below you can see the flat border having a width set to two pixels and the color set to green.

 

For details about the use of the Graphic Bars Manager refer to the How to perform custom feedbacks rendering using graphic bars section.

For further details about methods of the Graphic Bars Manager refer to the GraphicBarsMan class section.

 

 

Syntax

 

[Visual Basic]

Public Function SetFlatBorder (

hWndGraphicBar as IntPtr,

nWidth as Int32,

color as Color

) as enumErrorCodes


 

[C#]

public enumErrorCodes SetFlatBorder (

IntPtr hWndGraphicBar,

Int32 nWidth,

Color color

);


 

[C++]

public: enumErrorCodes SetFlatBorder (

IntPtr hWndGraphicBar,

Int32 nWidth,

Color color

);


 

 

Parameter

Description

 

 

hWndGraphicBar

Handle of the control returned by a previous call to the GraphicBarsManager.Create method

nWidth

Width of the border expressed in pixels

color

Color of the border

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.