rem: W_Screen	*scr = WMWidgetScreen(panel->win); RColor		from; RColor		to; RHSVColor	hsvcolor; RImage		*sliderImg; WMPixmap	*sliderPxmp;  from.red = from.green = from.blue = 0; hsvcolor = panel->hsvcolor; hsvcolor.value = 255;  RHSVtoRGB(&hsvcolor, &to);  sliderImg = RRenderGradient(141, 16, &from, &to, RGRD_HORIZONTAL); sliderPxmp = WMCreatePixmapFromRImage(scr, sliderImg, 0); RDestroyImage(sliderImg); W_PaintText(W_VIEW(panel->hsbBrightnessS), sliderPxmp->pixmap, WMSystemFontOfSize(scr, 12), 2, 0, 100, WALeft, W_GC(scr->white), False, "Brightness", strlen("Brightness")); WMSetSliderImage(panel->hsbBrightnessS, sliderPxmp); WMReleasePixmap(sliderPxmp);
add: W_Screen    *scr = WMWidgetScreen(panel->win); RColor        from; RColor        to; RHSVColor    hsvcolor; RImage        *sliderImg; WMPixmap    *sliderPxmp;  from.red = from.green = from.blue = 0; hsvcolor = panel->hsvcolor; hsvcolor.value = 255;  RHSVtoRGB(&hsvcolor, &to);  sliderImg = RRenderGradient(141, 16, &from, &to, RGRD_HORIZONTAL); sliderPxmp = WMCreatePixmapFromRImage(scr, sliderImg, 0); RDestroyImage(sliderImg); W_PaintText(W_VIEW(panel->hsbBrightnessS), sliderPxmp->pixmap, panel->font12, 2, 0, 100, WALeft, W_GC(scr->white), False, "Brightness", strlen("Brightness")); WMSetSliderImage(panel->hsbBrightnessS, sliderPxmp); WMReleasePixmap(sliderPxmp);
context: hsbUpdateBrightnessGradient(W_ColorPanel *panel){	W_Screen	*scr = WMWidgetScreen(panel->win);	RColor		from;	RColor		to;	RHSVColor	hsvcolor;	RImage		*sliderImg;	WMPixmap	*sliderPxmp;		from.red = from.green = from.blue = 0;	hsvcolor = panel->hsvcolor;	hsvcolor.value = 255;		RHSVtoRGB(&hsvcolor, &to);		sliderImg = RRenderGradient(141, 16, &from, &to, RGRD_HORIZONTAL);	sliderPxmp = WMCreatePixmapFromRImage(scr, sliderImg, 0);	RDestroyImage(sliderImg);	W_PaintText(W_VIEW(panel->hsbBrightnessS), sliderPxmp->pixmap, WMSystemFontOfSize(scr, 12), 2, 0, 100, WALeft, W_GC(scr->white), False, "Brightness", strlen("Brightness"));	WMSetSliderImage(panel->hsbBrightnessS, sliderPxmp);	WMReleasePixmap(sliderPxmp);}