Navigation:  Classes > bBrowser >

bBrowser:FocusView

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Defines the graphic representation of the focus rectangle.

Class

bBrowser

Type

Access / Assign

Data Type

bFocusStyle

Description

With FocusView the graphic representation of the focus rectangle can be defined. The focus rectangle highlights the cell that owns the focus. The style, thickness and color of the rectangle can be defined.

 

FocusRect_2

 

Focus-Rectangle with the Style BBS_SOLID, a
negative OuterSpace and a Foreground color.

 

 

So that changes made with FocusView can be shown in the browser, it must be redrawn immediately with the method bBrowser:Redraw().

 

Important note!
After creating a bBrowser control, this access contains no bFocusView object.

Samples

In the following sample a bBrowser is created in which the focus rectangle is displayed with a 2 pixels thick golden rectangle.

 

LOCAL odbsCUSTOMER AS DBServer

LOCAL oBrowser     AS bBrowser

 

// Create bBrowser and show it

odbsCUSTOMER := DBServer{"CUSTOMER"}

oBrowser := bBrowser{oOwner,;

                                         1000,;

                                         Point{0, 0},;

                                         Dimension{300, 250}}

oBrowser:Use(odbsCUSTOMER)

oBrowser:Show()

 

// Define focus rectangle

oBrowser:FocusView := bFocusStyle{BBS_SOLID,;

                                                                 Color{255, 165, 0},

                                                                 2,;

                                                                 -2}

 

// Important!!!

// -> Redraw focus

oBrowser:Redraw(#Focus,;

                                 oBrowser:CurrentColumn,;

                                 oBrowser:CurrentRow,;

                                 oBrowser:CurrentRecNo)

See Also

bBrowser:CaptionView

bBrowser:DataView

bBrowser:InfoView

bBrowser:RecordGroupView

bBrowser:Redraw()

bBrowser:SelectorView

bBrowser:TitleView

bBrowser:WallpaperView

bFocusStyle

 


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