//-------



        protected string getWrappedMessage(object obj)
        {
            string inText  = obj.ToString();
            string outText = TextFunctions.FormatFreeText(inText, 25);

            outText = TextFunctions.FormatLineBreaks(outText);

            return(outText);
        }
        protected string formatNote(object obj)
        {
            string result = "...";

            if (obj != null)
            {
                result = obj.ToString();
                result = TextFunctions.FormatFreeText(result, 50);
                result = TextFunctions.FormatLineBreaks(result);
            }

            return(result);
        }