Copyright © 2001-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 further details about methods of the Graphic Bars Manager refer to the GraphicBarsManager object.

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

 

 

Syntax

 

[Visual Basic]

control.GraphicBarsManager.SetFlatBorder (

hWndGraphicBar as OLE_HANDLE,

nWidth as Integer,

color as OLE_COLOR

) as enumErrorCodes


 

[C++]

short control.GraphicBarsManager.SetFlatBorder (

OLE_HANDLE hWndGraphicBar,

short nWidth,

OLE_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, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful