TBrowse() > Display methods xHarbour Developers Network  

oTBrowse:setStyle()

Retrieves or changes a browse 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 TBrowse styles
ConstantValueDescription
TBR_APPEND1Is the user allowed to add data to the data source?
TBR_APPENDING2Is the user adding data to the data source?
TBR_MODIFY3Is the user allowed to edit cells in the browser?
TBR_MOVE4Is the user allowed to move columns in the browser?
TBR_SIZE5Is the user allowed to resize columns in the browser?
TBR_CUSTOM6Minimum 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 TBrowse 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 TBrowse object. A TBrowse object itself does not use this information.


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