Navigation:  Classes > bBrowserColumn >

bBrowserColumn:CaptionSortMarker

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

The sort marker which is shown in the column caption.

Class

bBrowserColumn

Type

Access / Assign

Data Type

DWord

Description

bBrowserColumn:CaptionSortMarker defines the sort marker in the column caption.

 

CaptionSortMarker

 

 

The exact appearance of the sort marker is dependent on the windows operating system.

 

The values below are supported:

 

Value

Description

BDCF_SORTMARKER_NONE

No sort marker.

BDCF_SORTMARKER_UP

Marker for ascending sort order.

BDCF_SORTMARKER_DOWN

Marker for descending sort order.

 

 

Remarks

So that sort markers are shown in the bBrowser, the method bBrowser:EnableCaptionSortMarker() must be invoked before.

 

So that changes at this access are also shown in the bBrowser, the column caption must be redrawn with the method bBrowser:Redraw(). This is only necessary if the column is inside the visible area of the bBrowser.

Samples

In the sample below a bBrowser control is created in which a sort marker is defined in the column caption for the field LASTNAME.

 

LOCAL odbsCUSTOMER AS DBServer
LOCAL oBrowser     AS bBrowser
LOCAL oColumn      AS bDataColumn
 
// Create a bBrowser
odbsCUSTOMER := DBServer{"CUSTOMER"}
odbsCUSTOMER:SetOrder("NAME")
 
oBrowser := bBrowser{oOwner,;
                     1000,;
                     Point{0, 0},;
                     Dimension{300, 250}}
 
// Set server in bBrowser and show it
oBrowser:Use(odbsCUSTOMER)
oBrowser:Show()
 
// Define sort marker in column LASTNAME
oColumn := oBrowser:GetColumn(#LASTNAME)
oColumn:CaptionSortMarker := BDCF_SORTMARKER_UP
 
// Importand!!!
// -> Redraw bBrowser
oBrowser:Redraw(#CAPTION)

See Also

bBrowser:AutoCaptionHeight

bBrowser:EnableCaptionSortMarker()

bBrowser:Redraw()

bSample - SortMarker

 


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