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

Home » U++ Library support » Look and Chameleon Technology » changing button image make program crash
Re: changing button image make program crash [message #18604 is a reply to message #18593] Sat, 11 October 2008 08:32 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member

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);


SetStyle only stores a pointer.

Mirek
 
Read Message
Read Message
Previous Topic: Menu look correction for Vista
Next Topic: coloring menu background
Goto Forum:
  


Current Time: Thu Sep 17 09:08:29 GMT+2 2026

Total time taken to generate the page: 0.00528 seconds