Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » changing button image make program crash
changing button image make program crash [message #18593] Fri, 10 October 2008 18:20 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello

i want to set some an image to a button

this is the image
http://img259.imageshack.us/img259/6812/cisl2te2.png
i looked at chameleon example but every time the program compiles but it crashes and Windows error ( send report / dont send appears)

this is the code
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();
}


and here

SetSkin(ImageSkin);
Button::Style imgsty;
imgsty = ImageStyle();
btn_download_all.SetStyle(imgsty);


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


Current Time: Wed Mar 26 21:33:03 CET 2025

Total time taken to generate the page: 0.03145 seconds