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 » Draw, Display, Images, Bitmaps, Icons » Clickable SetImage in Button
Re: Clickable SetImage in Button [message #58721 is a reply to message #58720] Tue, 02 August 2022 09:54 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello Mesimo

Your demo runs well. I have created a little .jpg file, with the red and black arrow, and it loads it in the button:
	    img_chad = StreamRaster::LoadFileAny("c:\\tmp\\3.jpg");
	    if (IsNull(img_chad))
	        Exclamation("Image 3.jpg not found");

And in the Paint(), I have included the Klugier advice. For this kind of images, it is better including them in .iml files. I have put one from CtrlLib/Ctrl.iml:
w.DrawImage(220, 350,180,180, CtrlsImg::O1()/*img_chad*/);

index.php?t=getfile&id=6646&private=0


Best regards
Iñaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a way to get all character supported in a font with Font?
Next Topic: 2 Buttons clicked
Goto Forum:
  


Current Time: Sat May 04 10:29:21 CEST 2024

Total time taken to generate the page: 0.04043 seconds