The Delphi Bug List

Entry No.
687
VCL - Dialogs - Dialogs
MessageDlg does not wrap long lines.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
ExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsUnknown
Description
Reported by Jordan Russell
(Reported as #687 on QualityCentral)

A message box displayed with the MessageDlg function containing a long, unbreaked line can go off the screen.

To demonstrate the problem, try this line of code:

MessageDlg(StringOfChar('A', 500), mtInformation, [mbOk], 0);
The message box goes off the screen; the line is not wrapped as it should be.

On the other hand, a message box displayed with MessageBox is wrapped properly:

MessageBox(0, PChar(StringOfChar('A', 1000)), 'Information', MB_OK or MB_ICONINFORMATION);
Latest update of this entry: 2002-05-01

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.