Packaging the theme
When the PowerBuilder application is deployed, the system DLLs
such as pbtheme.dll and pbjson.dll for supporting the UI Theme will
be deployed automatically. However, you will also need to manually
copy the “theme” folder when creating the application installation
package, so that the theme definition files will be installed along
with the application and will be accessible to the
application.
To package the theme folder:
-
Manually copy the theme definition folder (just like copy
the other resource files) to the path according to how you apply
the theme:-
If you have not specified the path in the ApplyTheme
function (and no matter if you have specified the theme path
in the Application painter), copy the “theme” folder to the
same location of the application’s executable file and place
the theme definition folder into the “theme” folder. -
If you have specified the relative path in the
ApplyTheme function, then copy the theme definition folder
to the path relative to the location of the application’s
executable file; -
If you have specified the absolute path in the
ApplyTheme function, make sure the theme definition folder
exists in the specified path or change to use no path or the
relative path and then copy the theme folder according to
the above instructions. -
If you have specified the theme path in the
Application painter instead of using the ApplyTheme
function, copy the “theme” folder to the same location of
the application’s executable file and place the theme
definition folder into the “theme” folder.
-