Calling ProMenuFileRegister()
The input arguments to
ProMenuFileRegister() are as follows:
• ProMenuName menuname—The unique title of the menu that appears as the first word on the first line of the menu file and on the heading of the menu on the screen when you run in English. This argument is case-insensitive.
• ProMenufileName filename—The name of the menu file, including the extension but not the directory.
The function outputs the integer identifier of the menu, which you do not normally need. If the function fails for some reason (for example, the menu file did not exist), it returns PRO_TK_GENERAL_ERROR. If you call this function a second time on the same menu file, it has no effect.
Calling ProMenuAuxfileRegister()
This function has the same arguments and return value as
ProMenuFileRegister(). Instead of loading a new menu into memory, the function adds the buttons in the file to a menu already in memory.
Parent topic