Menu assignment has lot of unneeded LCL code lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2019-04-02 09:36 Form1.Menu:= MainMenu1; has lot of code: some destroying of menus, some validating handles... Imho at least on Win32 it should be simple code: Windows.SetMenu(Form1.Handle, Menu1.Handle); //or 0 if to hide Agree? ---------------------------------------------------------------------- ASerge · 2019-04-02 17:34 Quote from: Alextp on April 02, 2019, 11:36:00 amForm1.Menu:= MainMenu1; has lot of code: some destroying of menus, some validating handles... Imho at least on Win32 it should be simple code: TMenuItem is a separate wrapper objects around the system menu items. Therefore, they should be removed if menu items are not used. ---------------------------------------------------------------------- AlexTP · 2019-04-11 18:13 Sorry for noise, I see that all LCL code is needed.