Label:Tlabel color problems lazarus / 10-Designer ---------------------------------------------------------------------- argon99 · 2010-08-08 20:38 Hello I am getting my feet wet with FPC and Lazarus.  I would like to put a label on an image.  I have been able to do this but I can't seem to change the color of the text.  I can change the background color but not the text color.  How is this done?  I think it would be really cool to have the text color xored with the background color but maybe that is to much to ask. Just to let everybody know I am an old fossil that has crawled back to a keyboard.  It's been over twenty years that someone paid me to write code and the last UI I did was in ANSI.  I did learn Pascal at one point but haven't done anything with it in more then twenty years.  So thanks for any help you all can give me. ---------------------------------------------------------------------- felipemdc · 2010-08-08 20:50 Quote from: Andy99 on August 08, 2010, 10:38:21 pmHello I am getting my feet wet with FPC and Lazarus.  I would like to put a label on an image.  I have been able to do this but I can't seem to change the color of the text. The text color is the color of the font. Change TLabel.Font.Color QuoteI think it would be really cool to have the text color xored with the background color but maybe that is to much to ask. You can do that, but not with TLabel. What is in your background? One solution would be drawing your label manually (with TCanvas.TextOut or another text rendering method) in the OnPaint event of the control where you are placing the label. Supposing it has an OnPaint event, like is done here: http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Draw_on_th e_OnPaint_event