tblITableEditor SetCellBackgroundColor

Sets the background color on the selected cell.

Syntax

tblITableEditor_handle SetCellBackgroundColor cellName bgColor

Application

HyperWorks Tcl Query

Description

Sets the background color on the selected cell.

Inputs

cellName
The name of the cell. For example, A1.
bgColor
The background color. An integer between 0 and 63.

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
$activetableHandle SetCellData A1 "Max"
$activetableHandle SetCellBackgroundColor Color A1 3
puts "Background color of cell A1 is [$activetableHandle GetCellBackgroundColor A1]"
$activetableHandle ReleaseHandle

Errors

Returns success(0) or an error code.