|
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);
|