I need to colorize simple text fields with a specific background color (MEGA 2009 SP2 CP3).
The BackgroundColorSet function seems to work only on fields that already have a background color.
If text field has no background color defined, then the function will have no effect.
Is there a way to define the background color of a field that does not have any yet?
Thanks in advance!
Set oDiagram = oRoot.GetObjectFromId("~Aw4yS7lsFP50[Diagramme de zones d'urbanisme]")
Set oDrawing = oDiagram.Drawing("RW")
For Each oDI In oDrawing.DrawingItems
If oDI.DrawClassName = "DrwText" Then
Set oFont = oDI.Font
oFont.BackgroundColorSet 0, 255, 0, 0
oDI.Font = oFont
Set oDrawing = Nothing
Set oDiagram = Nothing
Note that in standard HOPEX installation a certificate is installed with expiration on 3rd of February 2020. If your installation cease to work, please have your administrator sign-in and download the new certificate. Thank you for your understanding. Download Certificate+