Forum > Editor

IDE Window Message

(1/1)

AndreaM:
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:
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...  :)

Mike.Cornflake:

--- Quote from: AndreaM on November 16, 2017, 06:41:34 am ---Is it a standard component of lazarus?
--- End quote ---

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

RAW:

--- Quote ---I would need to write like a memo, but I need to include at least one icon....

--- End quote ---
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...

Navigation

[0] Message Index

Go to full version