| View previous topic :: View next topic |
| Author |
Message |
briglia23 OOo Enthusiast

Joined: 24 Jun 2008 Posts: 121
|
Posted: Mon Jul 07, 2008 6:24 am Post subject: how to change note's background color |
|
|
What is the method or the property to change the note's background color?
I think that it is the oShape but i can't find it.
Thank you |
|
| Back to top |
|
 |
davidh182 OOo Advocate

Joined: 01 Apr 2004 Posts: 413
|
Posted: Thu Jul 10, 2008 8:14 am Post subject: |
|
|
This should work provided there is already a note in cell 0,0
| Code: |
sub notecolor
oDoc = StarDesktop.CurrentComponent
oCurSheet = oDoc.CurrentController.ActiveSheet
r=255
g=128
b=128
oCurSheet.getCellByPosition(0,0).Annotation.AnnotationShape.fillColor=65536*r+256*g+b
end sub
|
|
|
| Back to top |
|
 |
briglia23 OOo Enthusiast

Joined: 24 Jun 2008 Posts: 121
|
Posted: Thu Jul 10, 2008 11:18 pm Post subject: |
|
|
| Thank you |
|
| Back to top |
|
 |
|