createPanel()

Creates an (empty) panel file in a defined size (width and height) named "filename".

Synopsis

int createPanel(string filename, int width, int height)

Parameters

Parameter Meaning
filename Name of the panel file ("panelname")
width Width of the panel
hight Hight of the panel

Return Value

The following return values exist:

0 The function was executed successfully

-1 Missing argument

-2 The file "filename" already exists

-3 The file "filename" already exists in the version. The panel is created in the project.

-4 Error during writing (filename is a directory, file open failed, mkdir failed

Errors

See above

Description

Creates an (empty) panel file in a defined size (width and height) named "filename";.

Example

Creates a panel named "new_panel".

main()
{
  int x;
  x = createPanel("new_panel", 120, 250);
  DebugN(x);
}

Assignment

Graphics functions

Availability

UI