DesktopX 2.4 Developer’s Guide
_____________________________________________________________________________
_____________________________________________________________________________
Page 30
3.6 Custom Files
In the summary tab, there is a button labeled “Custom Files”. This allows you to attach files to
objects just as you would do to email that you send.
The first reason that you may wish to do this is to attach fonts to a package. If you have text
objects that use a font that you are not sure a user has on their machine then you can attach them
as a Custom File.
DesktopX automatically installs any fonts that included with a pack, so then you text objects will
appear as intended.
This introduces an important point. You must ensure that by attaching Custom Files of any sort
that you have the file author’s permission or that the file is not subject to any copyright or
licensing agreement which does not permit distribution.
There are many other potential uses for Custom Files. When a package containing Custom files
is loaded they are automatically extracted to the theme directory so they are accessible from
there.
For example, if you attach your brochure as a PDF you could create an object that links to it
using the shortcut “%objectdir%\Brochure.pdf”
You may want to attach a flash movie which can then be loaded into a web browser control.
Budding musicians may want to attach MP3 files and create a “demo track” object that they want
to send to record companies.
The options are unlimited.