TEdit.Color := clBtnFace lazarus / 31-LCL ---------------------------------------------------------------------- tintinux · 2011-07-14 08:34 Hi On 0.9.30 / Linux / GTK2, when I assign (by code, or by object inspector) the color clBtnFace to a TEdit, the color property value is changed, but the color displayed remains clWindow (both at designtime and runtime). This doesn't occur on Windows. When I assign other colors (e.g clInfoBk or clGray), it is OK on Linux. (Note : clBtnFace is the default color of the forms and labels, but I do assign the actual value 2147483633) Why ?  Is it a bug ? Is there a workaround ? Regards Tintinux ---------------------------------------------------------------------- felipemdc · 2011-07-14 10:49 It is probably impossible to set this in gtk2. If you really need this you could create a custom control for that. There are many custom controls in lazarus/components/customdrawn but no edit control yet as far as I remember. ---------------------------------------------------------------------- tintinux · 2011-07-16 07:21 Hi Thanks for your reply. I just need a ReadOnly TEdit, or a TLabel from which is is possible to copy text to the clipboard. Any idea about an ancestor control to use for this ? Thanks Tintinux