Recent

Author Topic: IDE Window Message  (Read 3213 times)

AndreaM

  • Newbie
  • Posts: 1
IDE Window Message
« on: November 16, 2017, 06:41:34 am »
Hello everybody,
I would be curious to know what kind of component uses the window of lazarus messages, that is to tell us where the compilation process, the possible warnings or errors are. I would need to write like a memo, but I need to include at least one icon for each line and be able to vary the text and background color for a single line.
Is it a standard component of lazarus?
Thank you
Andre.

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: IDE Window Message
« Reply #1 on: November 16, 2017, 07:28:29 am »
VirtualTreeView
ListView
TreeView
ListBox
Paint everything yourself inside a PANEL or on a FORM..
etc....

A lot of options, btw: The IDE window... ? I don't know... you can check the source if you like...  :)
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: IDE Window Message
« Reply #2 on: November 16, 2017, 05:29:56 pm »
Is it a standard component of lazarus?

The key word you need to assist your search is owner draw.  Several components within the LCL support owner draw.

You have to set the TListBox.Style to ownerdraw, then put code in the OnDrawItem handler. In owner draw you're fully responsible for drawing everything.

Here's a few forum posts that cover some elements of owner draw TListBox
http://forum.lazarus.freepascal.org/index.php?topic=22580.0
http://forum.lazarus-ide.org/index.php?topic=32703.0
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: IDE Window Message
« Reply #3 on: November 16, 2017, 08:53:31 pm »
Quote
I would need to write like a memo, but I need to include at least one icon....
Does that mean you need a Keyboard Input?
Maybe you can use a RICHMEMO or KMEMO... maybe there is a "OnPaint" event out of the box... just a thought...
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

 

TinyPortal © 2005-2018