Window_CreateButton
Prototype: GemRB.CreateButton (WindowIndex, ControlID, x, y, w, h)
Metaclass Prototype: CreateButton (ControlID, x, y, w, h)
Description: Creates and adds a new Button to a Window.
Parameters:
- WindowIndex - the value returned from LoadWindow
- ControlID - the new control will be available via this controlID
- x, y, w, h - X position, Y position, Width and Height of the control
Return value: N/A
See also: Window_CreateLabel, Window_CreateMapControl, Window_CreateWorldMapControl, Window_CreateTextEdit
Back to function index, GUIScript introduction.