# Fs Menu Regist Rect

### Signature

```c
void fsmenu_registrect(int windowId, int posX, int posY, int width, int height); //id:0x7019
```

### Description

Creates a rectangle with a specific size in a specific location.

### Arguments

#### Window Identifier

The window the rectangle will be displayed in.

There are a total of 8 windows (0 -> 7) that can be used to simultaneously display several dialogues, shapes (textures), etc. at the same time.

If the window is already used before calling this function, it will overwrite the properties of the current one.

#### Position X

The position on the x-axis.

#### Position Y

The position on the y-axis.

#### Width

The width of the rectangle.

#### Height

The height of the rectangle.

### Notes

{% hint style="warning" %}
This function will just return if the rectangle menu section wasn't loaded via the [fs-menu-load-resource](fs-menu-load-resource "mention") function before.
{% endhint %}

{% hint style="info" %}
The rectangle is initially hidden and must be shown via the [fs-menu-show-rect](fs-menu-show-rect "mention") function afterwards.
{% endhint %}
