Truncate the titlebar buttons text when it overflows