setWidgetColor {PBSmodelling}R Documentation

Update Widget Color

Description

Update the foreground and background colors of a widget

Usage

setWidgetColor( name, winName, ... )

Arguments

name the name of the widget
winName window from which to select the GUI widget. The default takes the window that has most recently received new user input.
... any combination of "fg", "bg", "entryfg", "entrybg" depending on type of widget - see details

Details

Depending on the type of widget, different color options can be modified. entry widgets accept entryfg, entrybg (but do not currently support fg/bg)

droplist, check, label, button widgets accept fg/bg

Author(s)

Alex Couture-Beil

Examples

createWin("label \"hello world\" name=hello", astext=TRUE)
setWidgetColor( "hello", bg="lightgreen", fg="purple" )

[Package PBSmodelling version 2.55.175 Index]