Requirement: bBrowser 1.4

 

If the bBrowser gets or loses the focus, the bBrowser examines whether in its owner the callback method ControlFocusChange() is defined and calls this with a FocusChangeEvent as argument. In the callback method e.g. the background color of the bBrowser can be changed.

The following code fragment demonstrates the proceeding:

oBrowser:Grid:BackgroundList:Add(Brush{Color{COLORGREEN}})

oBrowser:Grid:BackgroundList:Add(Brush{Color{COLORWHITE}})

oBrowser:Redraw()