Navigation:  Classes > bGrid >

bGrid:Style

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

The style of the Grid.

Class

bGrid

Type

Access / Assign

Data Type

Integer

Description

Several styles are supported that are specified in the following table:

 

Style

Appearance

Flat

Width

Height

InnerSpace

(Left/Top/Right/Bottom)

OuterSpace

(Left/Top/Right/Bottom)

BGRID_NONE

The grid does not have horizontal and vertical lines.

TRUE

0

0

2 / 1 / 2 / 1

0 / 0 / 0 / 0

BGRID_OUTLINE

BGRID_OUTLINE

TRUE

1

1

2 / 1 / 2 / 1

-1 / -1 / 0 / 0

BGRID_OUTLINEHORIZONTAL

BGRID_OUTLINEHORIZONTAL

TRUE

0

1

2 / 1 / 2 / 1

0 / -1 / 0 / 0

BGRID_OUTLINEVERTICAL

BGRID_OUTLINEVERTICAL

TRUE

1

0

2 / 1 / 2 / 1

-1 / 0 / 0 / 0

BGRID_CONVEX

BGRID_CONVEX

FALSE

2

2

1 / 0 / 1 / 0

0 / 0 / 0 / 0

BGRID_CONVEXSMOOTH

BGRID_CONVEXSMOOTH

FALSE

1

1

2 / 0 / 2 / 0

0 / 0 / 0 / 0

BGRID_AUTO

The appearance of the Grid depends on the context in that the grid is used.

 

Note:
If the style is used for the bBrowser, then the InnerSpace and OuterSpace should be defined with the following values, too:

InnerSpace:bRectangle{2, 1, 2, 1}
OuterSpace:bRectangle{-1, -1, 0, 0}

TRUE

0

0

2 / 2 / 2 / 2

0 / 0 / 0 / 0

 

In the case of an assignment of one of the constants specified above, automatically the thickness of the grid lines is calculated by the method bGrid:CalculateSize() and the properties for bGrid:Flat and bGrid:Overlapped is set.

bBrowser and BGRID_AUTO

The bBrowser represents the style BGRID_AUTO differently. The graphic representation is dependent for which area the Grid is defined and whether the Visual Styles are supported. The table below lists the different areas and the graphic representation:

 

Area

Grid Style

Representation
without
Visual Style

Representation
with
Visual Styles

 

(Windows XP)

Representation
with
Visual Styles

 

(Windows Vista)

Title

BGRID_CONVEX

BGRID_AUTO_TA2000

BGRID_AUTO_TAXP

BGRID_AUTO_TAVISTA

Column Caption

BGRID_CONVEX

BGRID_AUTO_CA2000

BGRID_AUTO_CAXP

BGRID_AUTO_CAVISTA

Column Footer

BGRID_CONVEX

BGRID_AUTO_FA2000

BGRID_AUTO_FAXP

BGRID_AUTO_FAVISTA

Selector

BGRID_CONVEX

BGRID_AUTO_SA2000

BGRID_AUTO_SAXP

BGRID_AUTO_SAVISTA

Grid in Data Area

BGRID_OUTLINE

BGRID_AUTO_DA2000

BGRID_AUTO_DAXP

BGRID_AUTO_DAVISTA

Info

BGRID_NONE

 

 

 

See Also

bGrid:CalculateSize()

bGrid:Flat

bGrid:Height

bGrid:InnerSpace

bGrid:OuterSpace

bGrid:Overlapped

bGrid:Width

 


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