rem: RColor	color; int		value; char	tmp[3];  W_ColorPanel *panel = (W_ColorPanel*)data;  value = WMGetSliderValue(panel->grayBrightnessS);  sprintf(tmp, "%d", value);  WMSetTextFieldText(panel->grayBrightnessT, tmp); color.red = color.green = color.blue = rint(2.55*value);  WMSetColorPanelColor(panel, color); panel->lastChanged = WMGrayModeColorPanel;
add: RColor    color; int        value; char    tmp[4];  W_ColorPanel *panel = (W_ColorPanel*)data;  value = WMGetSliderValue(panel->grayBrightnessS);  sprintf(tmp, "%d", value);  WMSetTextFieldText(panel->grayBrightnessT, tmp); color.red = color.green = color.blue = rint(2.55*value);  WMSetColorPanelColor(panel, color); panel->lastChanged = WMGrayModeColorPanel;
context: grayBrightnessSliderCallback(WMWidget *w, void *data){	RColor	color;	int		value;	char	tmp[3];		W_ColorPanel *panel = (W_ColorPanel*)data;		value = WMGetSliderValue(panel->grayBrightnessS);		sprintf(tmp, "%d", value);		WMSetTextFieldText(panel->grayBrightnessT, tmp);	color.red = color.green = color.blue = rint(2.55*value);		WMSetColorPanelColor(panel, color);	panel->lastChanged = WMGrayModeColorPanel;}