set_add_tearoffs


Description:

public void set_add_tearoffs (bool add_tearoffs)

Sets the “add_tearoffs” property, which controls whether menus generated by this UIManager will have tearoff menu items.

Note:

Tearoff menus are deprecated and should not be used in newly written code.

Note that this only affects regular menus. Generated popup menus never have tearoff menu items.

Parameters:

this

a UIManager

add_tearoffs

whether tearoff menu items are added