Purpose
Defines the graphic representation of the focus rectangle.
Class
Type
Access / Assign
Data Type
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.
Focus-Rectangle with the Style BBS_SOLID, a
negative InnerSpace 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
Page url: http://www.YOURSERVER.com/index.html?bbrowser_focusview.htm