Thao said:
Most (if not all) chart objects have an Interior object.
Use the Interior.Color to get the color. The Interior
object also have a BackGround color, but this is for fill
effects such as pattern and gradients.
Thao Moua
OWC Webchart Support
Thanks Thao Moua,
I am not sure how to reference these properties. I am calling out to an OCX
whcih is the chart OCX from OWC10 Chart. I am using UNIFACE to to
communicate with the OCX. This is the way that I am calling out to it...
I enumerate for the available properties and their current values, and I get
the following.....
HasMultipleCharts=0
PrintQuality3D=0.25
DisplayScreenTips=1
AllowPointRenderEvents=0
CanUndo=0
MinorVersion=0
Toolbar=
DisplayToolbar=0
ChartWrapCount=-1
International=
PlotAllAggregates=0
ChartSpaceTitle=
Charts=
ScreenUpdating=1
ObjectType=12
Right=294
AllowFiltering=1
AllowGrouping=1
RevisionNumber=0
AllowLayoutEvents=0
HasChartSpaceLegend=0
AllowPropertyToolbox=0
DisplayFieldButtons=1
Selection=
BuildNumber=4109
Left=0
DisplayFieldList=0
CommandText=
HasUnifiedScales=0
AllowScreenTipEvents=0
XMLData= <stripped because its long>
DisplayPropertyToolbox=0
MajorVersion=10
Commands=
HasSeriesByRows=0
EnableEvents=1
Parent=
Bottom=176
HasRuntimeSelection=1
HasPassiveAlerts=1
HasSelectionMarks=0
ChartSpaceLegend=
DataSourceType=0
DataMember=
DataSource=
Border=
LanguageSettings=
HasPlotDetails=0
InternalPivotTable=
ConnectionString=
Interior=
ViewOnlyMode=0
DataSourceName=
Constants=
SelectionType=
ChartLayout=0
DisplayOfficeLogo=0
Top=0
AllowRenderEvents=0
Version=Chart: 10.0.0.4109
HasChartSpaceTitle=0
....... I do not see anything that would be the internal colour, or the axis
font family, etc.
...then, I enumerate for methods, and I get the following...
Repaint
Undo
SetSpreadsheetData
DropZones
SetData
Refresh
Load
ShowContextMenu
Clear
GetPicture
RangeFromPoint
Select
EndUndo
ExportPicture
ShowHelp
BeginUndo
Toolbar.OLEDrag
Toolbar.Refresh
Toolbar.SaveToolbar
Toolbar.RestoreToolbar
Toolbar.Customize
ChartSpaceTitle.Select
Charts.Add
Charts.Delete
ChartSpaceLegend.Select
Interior.SetPresetGradient
Interior.SetPatterned
Interior.SetTwoColorGradient
Interior.SetOneColorGradient
Interior.SetSolid
Interior.SetTextured
.... I would love to see something like Interior.GetColor, but such a thing
does not exist when I enumerate the methods...
In UNIFACE, I get a property by doing something like this....
$51 = PropertyName
eg...
$51 = "DisplayScreenTips"
perform "ugetocxprop"
This will return "1" or "0"
However, this will only work on properties that are returned by enumerate.
How may I get properties that are not returned by enumerate?
Thanks