Hello Kohei,
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.
It seems that does not work for an Edit. I can set the font color with
SetForegroundColor but the SetBackgroundColor has no effect. I now
solved the problem by changing the color of the FixedText I use for
the information text. That is not that nice but better than nothing
and I have not enough time to fix the bug.
Thanks for your code pointer.
Regards,
Markus
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.