Jump to content

Recommended Posts

Posted
I have a folder in the "files" path that contains the icons used in the program.

I do not want to load all these files into UniNativeImageList as images, creating a big dfm.

I would like UniNativeImageList to only store the relative urls,  or file names, as it does with IconCls.

I think it is more convenient to have icon files in a folder than to include them in the compiled program.

 

Everything so that Images.GetImageDefaultUrl (FImageIndex) returns the stored url and not the url of the cached icon.

 

In addition, add a property such as FornatUrlIconPath.

that in order for the GetImageDefaultUrl result to be formatted.

example:

an item with the file name "Home"

and with FornatUrlIconPath = "/ files/32x32/%s.png '

 

result: = format (FornatUrlIconPath, [item url])> "/files/32x32/Home.png '.

 


I wish I could do it and do not disturb

but even if I paid the "uniGUI Complete - Professional Edition" version

I do not have the source of uniImageList.pas

to be able to create my TUniImageListUrls


 

Thank you

 

 

 

 

  • 2 weeks later...
Posted
you can create an event on TUniNativeImageList

 


  OnGetImageIconCls (FImageIndex);

  OnGetImageDefaultUrl (FImageIndex);


 

so you can change the results of the procedures

 

  Images.GetImageIconCls (FImageIndex);

  Images.GetImageDefaultUrl (FImageIndex);

 

or you would need a documentation of how TUniNativeImageList is done to be able to inherit the functions to be changed.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...