rem: RColor	color; int		value[3]; char	tmp[3];  W_ColorPanel *panel = (W_ColorPanel*)data;  value[0] = WMGetSliderValue(panel->rgbRedS); value[1] = WMGetSliderValue(panel->rgbGreenS); value[2] = WMGetSliderValue(panel->rgbBlueS);  sprintf(tmp, "%d", value[0]); WMSetTextFieldText(panel->rgbRedT, tmp); sprintf(tmp, "%d", value[1]); WMSetTextFieldText(panel->rgbGreenT, tmp); sprintf(tmp, "%d", value[2]); WMSetTextFieldText(panel->rgbBlueT, tmp);  color.red = value[0]; color.green = value[1]; color.blue = value[2];  WMSetColorPanelColor(panel, color); panel->lastChanged = WMRGBModeColorPanel;
add: RColor    color; int        value[3]; char    tmp[4];  W_ColorPanel *panel = (W_ColorPanel*)data;  value[0] = WMGetSliderValue(panel->rgbRedS); value[1] = WMGetSliderValue(panel->rgbGreenS); value[2] = WMGetSliderValue(panel->rgbBlueS);  sprintf(tmp, "%d", value[0]); WMSetTextFieldText(panel->rgbRedT, tmp); sprintf(tmp, "%d", value[1]); WMSetTextFieldText(panel->rgbGreenT, tmp); sprintf(tmp, "%d", value[2]); WMSetTextFieldText(panel->rgbBlueT, tmp);  color.red = value[0]; color.green = value[1]; color.blue = value[2];  WMSetColorPanelColor(panel, color); panel->lastChanged = WMRGBModeColorPanel;
context: rgbSliderCallback(WMWidget *w, void *data){	RColor	color;	int		value[3];	char	tmp[3];		W_ColorPanel *panel = (W_ColorPanel*)data;	value[0] = WMGetSliderValue(panel->rgbRedS);	value[1] = WMGetSliderValue(panel->rgbGreenS);	value[2] = WMGetSliderValue(panel->rgbBlueS);		sprintf(tmp, "%d", value[0]);	WMSetTextFieldText(panel->rgbRedT, tmp);	sprintf(tmp, "%d", value[1]);	WMSetTextFieldText(panel->rgbGreenT, tmp);	sprintf(tmp, "%d", value[2]);	WMSetTextFieldText(panel->rgbBlueT, tmp);	color.red = value[0];	color.green = value[1];	color.blue = value[2];		WMSetColorPanelColor(panel, color);	panel->lastChanged = WMRGBModeColorPanel;}