Added non native menus support ; added the defaultFormatString parameter