SetLayout method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

WPDLLInt

Declaration

void SetLayout(string LayoutFile,

 string LayoutName,

 string LayoutPASS,

 string MainXML,

 string SecondXML);

Description

The method SetLayout() is used to load the description file for the user interface. The editor cannot display a toolbar without such a file.

 

Please see the introduction chapter for examples.

 

If you specify a relative path the directory which contains the engine DLL will be used as basis.

 

Parameters

LayoutFile

the path to the layout file, i.e. "Buttons.PCC".

LayoutName

the name of the layout entry in the package file, i.e. "default".

LayoutPW

the password used for the PCC file or an empty string.

LayoutMainXML

the XML branch for the main editor, i.e. "main".

LayoutSecondXML

the XML branch for the second editor (can be the same as LayoutMainXML).

 

 

Example:

SetLayout(".\\buttons.pcc", "default", "", "main", "main");

 

The .NET assembly also implements the SetLayout method with only two parameters, LayoutFile and LayoutPW. The other parameters will use the values "default", "main", "main".

 

So you can also type:

SetLayout(".\\buttons.pcc","");

 

To select from different design styles use function Command(ID,Mode,0) with ID WPDLL_COM_ToolbarDesign (5902) and a number between 1 and 4:

 

   1 = Titanium (default)

 clip0127

   2 = Brushed Metal - use Command(9501, 1) to make the dialogs use this background

 clip0126

   3 = Shaded. Use Command 9503 and 9504 to change colors)

 clip0128

   4 = Simple gray

 clip0129

 

The shading colors can also be changed, see "Command".

 

 

 

 


[idh_wpdllint_setlayout.htm]    Copyright © 2007 by WPCubed GmbH