Button::Style ImageStyle() { Button::Style s = Button::StyleNormal(); s.look[0] = imgs::kkk; s.look[1] = imgs::kkk; s.look[2] = imgs::kkk; s.look[3] = imgs::kkk; s.pressoffset = Point(1, -1); return s; } void ImageSkin() { Button::StyleNormal().Write() = ImageStyle(); }
SetSkin(ImageSkin); Button::Style imgsty; imgsty = ImageStyle(); btn_download_all.SetStyle(imgsty);
Report message to a moderator
Button::Style& ImageStyle() { static Button::Style s = Button::StyleNormal(); s.look[0] = imgs::kkk; s.look[1] = imgs::kkk; s.look[2] = imgs::kkk; s.look[3] = imgs::kkk; s.pressoffset = Point(1, -1); return s; }
btn_download_all.SetStyle(imgsty);