getting a property from the OWC 10 chart

D

Disco

Hi,

I would like to know what is the best way to get the colour that is the
background of the chart for the OWC 10 Chart.
.... And - in fact - any property! I can get the XML stream, and I can get
properties that respond to property enumerations, but I can not get things
such as the colours, or the labels, or other layout stuff.

Thanks for any help.
 
T

Thao Moua [ms]

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
 
D

Disco

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
 
D

Disco

Thao said:
Interior is an object. To access the Interior object
would be

Chartspace.Interior.Color = xxxx

See if this works.

Thao Moua
OWC Webchart Support

Fantastic. Thanks for that.
No, how can I get a list of all available properties? Is there some kind of
enumeration method that I can activate?

Thanks
 
D

Disco

Disco said:
Fantastic. Thanks for that.
No, how can I get a list of all available properties? Is there some
kind of enumeration method that I can activate?

Thanks

.... to elaborate... I would like to know if there is such a thing that I can
activate that will give ma a list (array) of all properties that are
set....eg... something liek this....

myArray = myChartSpace.getAllProperties()

Where myArray would now basically contain the entire dumped Chartspace in a
multiple level arrays within arrays.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top