Copyright © 1998-2010 MultiMedia Soft

SetTemplateBinDir method

Previous pageReturn to chapter overviewNext page

Remarks

Sets a directory from which the extended templates, created using the SaveTemplateEx method and loaded using the LoadTemplateEx method, will take the binary files for pictures, textures, sounds and cursor.

Usually extended templates store binary files pathnames that are relative to the machine used to develop the application: these pathnames will be probably invalid when the application runs over the target machine. Using this method, only the binary filename will be taken from the extended template and appended to the strFilepath parameter in order to obtain the target machine directory: usually this directory is created by the application setup program.

It is recommended that you call this method for every kind of binary file that has been stored inside the extended template.

For further information about button templates support see How to manage button templates

 

Syntax

Visual Basic

control.SetTemplateBinDir (nType as enumTplBinaryTypes, strFilepath as String)

 

Visual C++

void control.SetTemplateBinDir (short nType, LPCTSTR strFilepath);

 

Parameter

Description

 

 

nType

The type of binary files that will be found inside the directory indicated by the strFilepath parameter.

Supported values are the following:

Mnemonic constant

Value

Meaning

RT_TPL_TYPE_PICTURE

0

The strFilepath parameter is relative to the directory containing pictures files.

RT_TPL_TYPE_TEXTURE

1

The strFilepath parameter is relative to the directory containing textures files.

RT_TPL_TYPE_SOUND

2

The strFilepath parameter is relative to the directory containing sounds files.

RT_TPL_TYPE_CURSOR

3

The strFilepath parameter is relative to the directory containing cursors files.

strFilepath

String containing the pathname of the binary files inside the target machine