This method takes a DIPath. A DIPath does not take a protocol, it describes a local file.
Thanks for the answer. So there is no way to convert the URL to a Path in order to apply that PDF of the link to the icon?
The UI is doing things the runtime engine will not. A DIPath cannot represent a URL.
Thanks a lot for your help and answer.
So there is no other way to load an image/pdf from a URL to embed it into a button?
I never heard of such a thing. But I admit I am surprised that you can do it in the UI.