TBColumn() > Methods xHarbour Developers Network  

oTBColumn:setStyle()

Retrieves or changes a column style.

Syntax

:setStyle( <nStyle>, [<lNewOnOff>] ) --> lOldOnOff

Arguments

<nStyle>
This is a numeric value indicating the style to query or change. #define constants are listed in the file TBrowse.ch which can be used for <nStyle>.

Constants for TBColumn styles
ConstantValueDescription
TBC_READWRITE1Is the user allowed to edit cells in the column?
TBC_MOVE2Is the user allowed to move this column in the browser?
TBC_SIZE3Is the user allowed to resize this column in the browser?
TBC_CUSTOM4Minimum value for use-defined custom styles.

<lNewOnOff>
This is an optional logical value. When .T. (true) is passed, the style <nStyle> is switched on, .F. (false) switches it off.

Description

A TBColumn object maintains a set of styles that can be switched on and off. The styles can be used as a convenient way of implementing specific behaviour for a TBColumn object. A TBColumn object itself does not use this information.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe