Navigation:  Classes > bBrowser >

bBrowser:Title

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

The title which is displayed in the bBrowser.

Class

bBrowser

Type

Access / Assign

Data Type

String | Bitmap | Icon | bCompoundValue

Description

The title is shown in the header of the bBrowser. The title can be either a string, a bitmap object, an icon object or a bCompoundValue object.

 

A title of multiple rows are supported. For this the individual rows must be separated with the constant CRLF. The title can be formatted with the access bBrowser:TitleView.

 

If the access bBrowser:AutoTitleHeight contains the value TRUE, then the height of title area is calculated automatically. Otherwise the height of title area must be defined with the access bBrowser:TitleHeight.

 

So that changes are shown in the bBrowser, the browser must be recalculated with the method bBrowser:Recalculate() and redrawn with the method bBrowser:Redraw().

Samples

In the following sample a browser is created with a title. The title is in addition formatted with an object of the class bViewStyle.

 

LOCAL odbsCUSTOMER AS bDBServer

LOCAL oBrowser     AS bBrowser

 

// create and show browser

odbsCUSTOMER := bDBServer{"CUSTOMER"}

oBrowser := bBrowser{oOwner,;

                                         1000,;

                                         Point{0, 0},;

                                         Dimension{300, 250}}

 

// set title

oBrowser:Title := "Database: CUSTOMER.DBF"

 

// format title

oBrowser:TitleView:Foreground := Color{COLORRED}

oBrowser:TitleView:Options := BVO_END_ELLIPSIS

 

// recalculate and redraw browser

oBrowser:Recalculate()

oBrowser:Redraw()

See Also

bBrowser:AutoTitleHeight

bBrowser:Recalculate()

bBrowser:Redraw()

bBrowser:TitleArea

bBrowser:TitleHeight

bBrowser:TitleView

 


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