Fit Columns to Window - GRID SENDMSG() Function 29

Syntax

TF$=SENDMSG(sysgui,id,29,cols,$${,context{,ERR=lineref}})

Description

For BBj-specific information, see Fit Column to Window - GRID SENDMSG() 29 – BBj.

This function adjusts the width of the columns specified to fill the entire body of the grid.

Parameter

Description

sysgui

SYSGUI channel.

id

Grid control ID.

29

Number of this SENDMSG() function.

cols

Number of columns to fit into the grid display.

$$

Always null.

The columns are adjusted so that width proportions are maintained. For example, if column 0 is three times as wide as column 1 before the function is called, column 0 will still be three times as wide as column 1 after the function has been called. The return value is a one-byte string that indicates the success or failure of an operation; $01$ indicates success, $00$ indicates failure.

See Also:

Set Column Width - Grid SENDMSG() Function 36, Set Best Fit - Grid SENDMSG() Function 24.

BBjGrid::setFitToGrid