far.SubscribeDialogDrawEvents
far.SubscribeDialogDrawEvents () Parameters: none Returns: nothing Description: This function affects the action of export.ProcessDialogEvent. There is a group of frequently called events that slow down the processing, especially in menus containing 10000+ items. This occurs due to conversion of arguments between C and Lua. For each new dialog, export.ProcessDialogEvent will not be called for the following values of Param.Msg: DN_CTLCOLORDIALOG DN_CTLCOLORDLGITEM DN_CTLCOLORDLGLIST DN_DRAWDIALOG DN_DRAWDIALOGDONE DN_DRAWDLGITEM DN_DRAWDLGITEMDONE In order to start receiving this group of messages, call far.SubscribeDialogDrawEvents() after the dialog creation, e.g. when DN_INITDIALOG comes. Far API used: none