SetMenuColumnHeader

SetMenuColumnHeader

Description:
Function SetMenuColumnHeader sets the caption of a column in a menu.
Crashes when passed an invalid menu ID.
Note that you can add only 12 items with AddMenuItem. The 13th object of a menu would replace the header of the column which is correctly set with this function.


Parameters:
(menuid, column, text[])
int menuid ID of the menu to change.
int column The column (0 or 1) to set the header of.
string text The caption text for the column.


Return Values:
This function does not return any specific values.


Examples:
new Menu:TestMenu;
 
// There are two rows in this menu
TestMenu = CreateMenu("Menu Header", 2, 200.0, 100.0, 150.0, 150.0);
SetMenuColumnHeader(TestMenu, 0, "Row 1");
SetMenuColumnHeader(TestMenu, 1, "Row 2");
 
// Add menu items to it.
AddMenuItem(TestMenu, 0, "Row1 Item1");
AddMenuItem(TestMenu, 1, "Row2 Item1");


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.