
Prototype: GemRB.CreateLabelOnButton(WindowIndex, ButtonControlID, NewID, font, text, align)

Description: Creates and adds a new Label to a Window, based on the dimensions of an existing button. If the NewID is the same as the old button ID, the old button will be converted to this Label (the old button will be removed). 

Parameters:
WindowIndex     - the value returned from LoadWindow
ButtonControlID - the button control to be copied/converted
NewID           - the new control will be available via this controlID
font            - a .bam resref which must be listed in fonts.2da too
text            - initial text of the label (must be string)
align           - label text alignment

Return value: N/A

See also: CreateButton, CreateLabel

