Rather than roll my own method of alerts to the user as I have done in
the past I have been attempting to use the Message Dialog class because
of the built-in icon handling but I have run into two issues that I
would like to accomplish that the base class does not appear to be able
to do.
1. The Message Dialog appears to calculate its width based on the length
of the Message or Explanation string, (whichever is longest). If I want
a multi-line message to prevent the dialog from being extremely wide I
have used EndOfLine for a multi-line message, but the Message Dialog
width remains the same since the message string length is the same. The
class does not recognize that the message is split into two lines.
2. There is no existing method to style the message or explanation text.
I would like to create a subclass of the message dialog that calculates
the width based on the longest line in a multi-line string instead of
the entire message and I would like to make the message or explanation
text Bold, Italic or BoldItalic for emphasis where appropriate. I am not
sure how to accomplish the first item at all and would like some advice
on how to address how the Message Dialog calculates its width.
Anyone have any clues on how to do this?
Tom Dixon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|