Recent

Author Topic: Using the "Messages" window of the Lazarus IDE in own apps  (Read 128 times)

piola

  • Full Member
  • ***
  • Posts: 158
  • Lazarus 2.2, 64bit on Windows 8.1 x64
Using the "Messages" window of the Lazarus IDE in own apps
« on: August 06, 2026, 01:25:22 pm »
Hello,

I'm working on an app where I'd need to display log messages. I've thought about the usual suspects like `TMemo` and `TLazVirtualStringTree`, but now I've realized that the IDE's "messages" window is exactly what I'm looking for. Especially now that it supports multi-line display with automatic word-wrap.

It doesn't seem to be part of the regular components. But is it available as a separate component? I dosn't have to integrate into the component toolbars; I'd be sufficient if I could use it at runtime only.

Thanks :)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • Debugger - SynEdit - and more
    • wiki
Re: Using the "Messages" window of the Lazarus IDE in own apps
« Reply #1 on: August 06, 2026, 02:20:26 pm »
Its a unit in the IDE project itself (in the IDE folder). Probably ide/etmessageframe but I am not sure (that file was recently changed for a feature related to the messages, so probably...

And I don't know how much is in that unit. E.g. the organisation of the data to be displayed, I don't know where that is.

And likely it has references to other units in the IDE.

You would have to copy it, and clean it.

And just for info, its GPL, not LGPL (as is the IDE itself)

 

TinyPortal © 2005-2018