U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Wy StyleNormal().Write() is global?
Wy StyleNormal().Write() is global? [message #40706] Sat, 07 September 2013 18:57 Go to previous message
iST1 is currently offline  iST1
Messages: 107
Registered: August 2013
Experienced Member
I need to set own background image for buttons:

Button::Style &s1 = btn1.StyleNormal().Write();
s1.look[0] = img1;
s1.look[1] = img1;
s1.look[2] = img1;
s1.look[3] = img1;
s1.pressoffset = Point(1, -1);

Button::Style &s2 = btn2.StyleNormal().Write();
s2.look[0] = img2;
s2.look[1] = img2;
s2.look[2] = img2;
s2.look[3] = img2;
s2.pressoffset = Point(1, -1);

But after this btn1 also have img2 instead img1.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PATCH: plugin/jpg CMYK support
Next Topic: Transparent Background - Image control
Goto Forum:
  


Current Time: Thu Sep 10 09:15:39 GMT+2 2026

Total time taken to generate the page: 0.00989 seconds