SetLayout method

[Top]  [Chapter] 

Applies to

WPDLLInt

Declaration

procedure SetLayout(const LayoutFile: WideString; const LayoutName: WideString; const LayoutPASS: WideString; const MainXML: WideString; const SecondXML: WideString);

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.

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

 

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".

 

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).

 


[idh_wpdllint_setlayout.htm]    Copyright © 2007 by WPCubed GmbH