poIFLDCtrl SetCategoryColor
Sets the color of a particular band of the FLD zone category legend.
Syntax
poIFLDCtrl SetCategoryColor band_idx color_str
Application
HyperView Tcl Modify
Description
This command sets the color of a particular band of the FLD zone category legend.
Inputs
- band_idx
- The index of the color band (valid values are 0,1,2,3,4,5).
- color_str
- The color string (RGB value or color index from 0-63).
Example
To set the 3rd band of the FLD zone legend to red:
Note: The example below assumes that an
FLD is currently plotted in a HyperView
session.
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetFLDCtrlHandle fld_ctrl
fld_ctrl SetCategoryColor 2 "255 0 0"
fld_ctrl SetEnableState true
client_handle Draw
hwi CloseStack
Error
Returns a non-zero value if there is an error.