API UIDropDownMenu Initialize

Binds an initialization function to a dropdown menu, configures its appearance. UIDropDownMenu_Initialize(dropDown, initFunc, displayMode, level, menuList)

Arguments

 * dropDown : Frame - dropdown frame inheriting from  to initialize.
 * initFunc : Function - function that will be used to display the menu.
 * displayMode : Optional string - if "MENU", the visual elements of dropDown will be hidden and the menu, when shown, will be styled as a context menu rather than a dropdown list.
 * level : Optional, Any - Used as an argument to initFunc.
 * menuList : Optional, Any - Used as an argument to initFunc.

Details
This function will call initFunc(dropDown, level, menuList) when called, although the dropdown menu will not be shown. If your initialization function uses  and , consider providing appropriate values.

If you're creating a dropdown menu, but do not need your initFunc to be called immediately, you can use dropDown.initialize = initFunc in place of this call.