setWidgetColor {PBSmodelling} | R Documentation |
Update the foreground and background colors of a widget
setWidgetColor( name, winName, ... )
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 |
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
Alex Couture-Beil
createWin("label \"hello world\" name=hello", astext=TRUE) setWidgetColor( "hello", bg="lightgreen", fg="purple" )