[Libreoffice] setting the background color of an Edit

Kohei Yoshida kohei.yoshida at gmail.com
Sat Dec 3 16:18:26 PST 2011


Hi Markus,

On Sat, Dec 3, 2011 at 5:30 PM, Markus Mohrhard
<markus.mohrhard at googlemail.com> wrote:

> Do you have any ideas?

You are almost there.  IIRC there is some quirk with setting a
background color with the Edit control; you need to set fore ground
color before setting the background color in order to change the
background color.  No idea whether it's a bug or not (I think it is),
but that's how I did it.

You can take a look at formula::RefEdit::SetRefValid() method to see
how I did it.

HTH,

Kohei


More information about the LibreOffice mailing list