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 » Developing U++ » UppHub » StaticImage enhancement
Re: StaticImage enhancement [message #39713 is a reply to message #39711] Fri, 19 April 2013 15:44 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 681
Registered: November 2008
Location: France
Contributor
Hi Koldo,

Quote:

It is possible to call a .iml Image by program "manually" but AFAIK this is only possible for the IMAGECLASS and IMAGEFILE defined in source.

This way StaticImage code cannot open an IMAGEFILE defined in your source.

The ModifiedStaticImage can open images from iml files that come from any package (at least the ones added in you're project : I didn't verify for other cases).

Quote:

Image img = LoadFromIml("Controls4U:Controls4U.iml:ImageSample_90");

I think iml images can be retrieved by name so "all their is to do" is being able to get an iml image from this longer 'namePath' pattern.

==> Their are probably only 2 things to do:
  • modify '.lay' files and <CtrlCore/lay.h> so that the file namePath gets automatically added to the generated iml class
  • Add a global object that can retrieve iml class instances from the file pathName .... and then we could get the image using 'ImlManager.Get("imlPath").Get("imageName")'

NB: point 1 requires a modification in the layout designer of theIde

[Updated on: Fri, 19 April 2013 15:46]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Functions4U doesn't compile anymore
Next Topic: Added FSMon - FileSystem Monitor class
Goto Forum:
  


Current Time: Mon Jun 17 00:23:24 CEST 2024

Total time taken to generate the page: 0.02433 seconds