Navigation:  Classes > bBrowser >

bBrowser:Redraw()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Redraws the browser or parts of it.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:Redraw(

[<symArea>],

[<lAtOnce>],

[<uData1>],

[<uData2>],

[<uData3>],

[<uData4>],

[<uData5>],

[<uData6>],

[<uData7>]

) Æ lRedraw

Arguments

<symArea>The area that is to be redrawn. The following values are supported:

#Caption
Redraws the area of the column captions.

#Cell
Redraws an single cell.

In uData1 the column number must be specified.
Data Type:        DWord

In uData2 the row number must be specified.
Data Type:        DWord

In uData3 the record number must be specified.
Data Type:        Integer

In uData4 it can be specified whether the cell is to be drawn in selected state. If this argument is not specified, the cell is drawn in selected state.
Data Type:        Logic

In uData5 it can be specified whether the cell is to be drawn with a focus rectangle. If this argument is not specified, the focus rectangle is drawn, if the browser has the focus.
Data Type:        Logic

In uData6 it can be specified whether the associated selector cell (if actively) is to be drawn. If this argument is not specified, the selector cell is not drawn.
Data Type:        Logic

In uData7 it can be specified, how the state of the selector cell is to be drawn. If this argument is not specified, the selector cell is drawn in selected state. The argument becomes considers only if in the argument uData6 the value TRUE is specified.
Data Type:        Logic

#CellGroups
Redraws all cell groups.

#Current
Redraws the current cell or the current row dependent on bBrowser:CurrentMode.

In uData1 it can be specified whether the cell or row is to be drawn in selected state. If this argument is not specified, the cell or row is drawn in selected state.
Data Type:        Logic

In uData2 it can be specified whether the current selected cell is to be drawn with a focus rectangle. If this argument is not specified, the focus rectangle is drawn, if the browser has the focus.
Data Type:        Logic

In uData3 it can be specified whether the associated selector cell (if actively) is to be drawn. If this argument is not specified, the selector cell is not drawn.
Data Type:        Logic

In uData4 it can be specified, how the state of the selector cell is to be drawn. If this argument is not specified, the selector cell is drawn in selected state. The argument becomes considers only if in the argument uData3 the value TRUE is specified.
Data Type:        Logic

#Data
Redraws the area of the column data.

#DataArea
Redraws the whole area of the column captions, the column data and the column footer.

#DynamicArea
Redraws only the column captions, the column data and the column footer that is to the right of the frozen columns. If no columns are frozen, the whole data area is redrawn.

#Focus
Redraws a focus rectangle around a single cell.

In uData1 the column number must be specified.
Data Type:        DWord

In uData2 the row number must be specified.
Data Type:        DWord

In uData3 the record number must be specified.
Data Type:        Integer

#Footer
Redraws the area of the column footers.

#FromColumn
Redraws the area of the columns captions, column data, and column footer starting from the specified column.

In uData1 the column number must be specified.
Data Type:        DWord

#FromLine
Redraws the data area starting from the specified row.

In uData1 the row number must be specified.
Data Type:        DWord

#Info
Redraws the info value.

In uData1 it can be specified whether the info value is to be drawn with a focus rectangle. If this argument is not specified, the focus rectangle is drawn, if the browser has the focus.
Data Type:        Logic

#Line
Redraws a complete row.

In uData1 the row number must be specified.
Data Type:        DWord

In uData2 the record number must be specified.
Data Type:        Integer

In uData3 it can be specified whether the row is to be drawn in selected state. If this argument is not specified, the row is only drawn in selected state, if it is the current row.
Data Type:        Logic

In uData4 it can be specified whether the row is to be drawn with a focus rectangle. If this argument is not specified, the focus rectangle is drawn, if the browser has the focus.
Data Type:        Logic

In uData5 it can be specified whether the associated selector cell (if actively) is to be drawn. If this argument is not specified, the selector cell is not drawn.
Data Type:        Logic

In uData6 it can be specified, how the state of the selector cell is to be drawn. If this argument is not specified, the selector cell is drawn in selected state. The argument becomes considers only if in the argument uData5 the value TRUE is specified.
Data Type:        Logic

#RecordGroups
Redraws all record groups.

#RecordGroupHeader
Redraws the virtual group header for a record group item.

In uData1 the record group item must be specified.
Data Type:        DWord

In uData2 it can be specified whether the associated selector cell (if actively) is to be drawn. If this argument is not specified, the selector cell is not drawn.
Data Type:        Logic

#Selection
Redraws all selected cells.

In uData1 it can be specified whether the current selected cell is to be drawn with a focus rectangle. If this argument is not specified, the focus rectangle is drawn, if the browser has the focus.
Data Type:        Logic

#Selector
Redraws the area of the selector column.

#SelectorState
Redraws the status of a selector cell.

In uData1 the row number must be specified.
Data Type:        DWord

In uData2 the record number must be specified.
Data Type:        Integer

In uData3 can be specified in which state the selector cell is to be drawn. If this argument is not specified, the selector cell is drawn in normal state.
Data Type:        Logic

#Title
Redraws the area of the title.

If the argument symArea is not specified, then the entire browser is redrawn.

Data Type:Symbol

 

<lAtOnce>A logical value that indicates whether redrawing is to be accomplished immediately or whether only the appropriate area is to be marked as invalid. If the area is marked as invalid, the event system of Windows accomplishes the redrawing at a later time. If this argument is not specified, the appropriate area is marked as invalid.
Data Type:Logic

Return Value

lRedrawA logical value that indicates whether the area was redrawn.
TRUEThe area was redrawn.
FALSEThe area could not be redrawn.
Data Type:Logic

Description

bBrowser:Redraw() redraws the entire browser or parts of it.

 

As a rule, redrawing should always be made by the event system of Windows. This means that only the areas that need to be redrawn should be marked as invalid (thus, redraw it). The event system of windows then redraws the appropriate areas one at a time.

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_redraw.htm