Sets the maximum character count this panel should have.
This function will only work on RichText and TextEntry panels and their derivatives.