* * *

Author Topic: [SOLVED] need ShowMessage() or MessageDlg() with greater width  (Read 403 times)

Hartmut

  • Full Member
  • ***
  • Posts: 102
I need something like ShowMessage() or MessageDlg() to display some text, but I have some longer lines and don't want them to be broken. So I want to set the width of their dialog box to a larger value. I found no way. Is that possible?

If not, is there another Control you could recommend, where I can display some text, wait for an OK-button or Escape-key and where I can manipulate the width of the dialog box? I'm a beginner to the LCL...

Thanks in advance. I use Lazarus 1.6.2 with FPC 3.0.0 on Win7
« Last Edit: July 16, 2017, 07:37:36 pm by Hartmut »

Handoko

  • Hero Member
  • *****
  • Posts: 1644
  • My goal: build my own game engine using Lazarus
Re: need ShowMessage() or MessageDlg() with greater width
« Reply #1 on: July 16, 2017, 06:38:19 pm »

Hartmut

  • Full Member
  • ***
  • Posts: 102
Re: [SOLVED] need ShowMessage() or MessageDlg() with greater width
« Reply #2 on: July 16, 2017, 07:38:28 pm »
Yes! Although the solution from Zoran with the 'NonBreakingSpace' does not work for me, because the long lines are cut and some text parts are replaced by '...', but the solution from GetMem works perfectly.
Thanks a lot for your valuable help!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus