WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStWidget class reference

ShowBorder

This method shows or hides a thin-line border on a specific widget.

Ole declaration

VARIANT_BOOL ShowBorderByName(LPCTSTR sObjectName, VARIANT_BOOL bShow);

VARIANT_BOOL ShowBorderById(SHORT usObjectId, VARIANT_BOOL bShow);

Parameters
sObjectName
The name of the target widget.
usObjectId
The id of the target widget.
bShow
Specifies whether the widget's border is shown or hidden. If this parameter is TRUE the border will be displayed, otherwise it will be hidden.
Return Value

On success, ShowBorder returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks

By default the border is shown in almost all the supported widgets. The exception are: WS_LABEL, WS_CHECKBOX, WS_RADIO_BUTTON and WS_LINE .

Example
C#
using WirelessStudioOleWidgets;
WStWidget oWidget = new WStWidget();
/* Using a previously created widget */
short iButtonId = 77;
oWidget.ShowBorderById(iButtonId, False);
Visual Basic 6 (Full Example: LabelDemoModule.bas.txt)
Public wsWidget As New WStWidget
Public wsFactory As New WStFactory		
...
'Label Test 3: Border and Courier New font
wsFactory.CreateCustomFont 1, 17, FALSE, FALSE, FALSE, "Courier New", WS_CENTER
wsWidget.SetFontByName "labelTest3", 1
wsWidget.ShowBorderByName "labelTest3", TRUE
...
See also

Enable | Show

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference