SetLayout method |
[Top] [Chapter] [Previous] [Next] |
Applies to 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
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)
2 = Brushed Metal - use Command(9501, 1) to make the dialogs use this background
3 = Shaded. Use Command 9503 and 9504 to change colors)
4 = Simple gray
The shading colors can also be changed, see "Command".
|