My macros assigns BackgroundColor to some text box. All is OK with my desktop, but with my laptop this doesn't work. What could be the reason?

asked 2018-01-29 23:25:14 +0200

shma_lo gravatar image

updated 2018-02-01 16:02:17 +0200

Desktop: Windows 10, Libre Office 5.4.4.2, standard installation.

Laptop: Linux Mint 18.2, Libre Office 5.4.4.2, standard installation.

Desktop: the command Dlg.GetControl(sTxt).GetModel.BackgroundColor = RGB(255,222,173) change the back color of the control sTxt as I want.

Laptop: the command Dlg.GetControl(sTxt).GetModel.BackgroundColor = RGB(255,222,173) doesn't change the back color of the control sTxt.

What could be the reason?

BTW, the command Dlg.GetControl(sTxt).GetModel.TextColor = RGB(255,222,173) works properly with both computers.

edit retag flag offensive close merge delete

Comments

Hard to tell from the given line of code; the problem could be caused by something happening before that line, or perhaps by a different GUI setting on your laptop.

librebel gravatar imagelibrebel ( 2018-01-30 00:57:06 +0200 )edit

Did you test it on the same document?

paul1149 gravatar imagepaul1149 ( 2018-01-30 19:27:53 +0200 )edit