Hi,
Please look at the following codes, it shows how to setup symbol interior(can set solid to hollow), size, color and shape...
void show_how_to_setup_symbol()
{
GraphLayer gl = Project.ActiveLayer();
if(gl)
{
DataPlot dp = gl.DataPlots(0); //the first data plot
if(dp)
{
Tree trFormat;
trFormat = dp.GetFormat(FPB_STYLE);
trFormat.Root.Page.Layers.All.Curves.All.Symbol.Size.nVal = 20; //set the size of symbol
trFormat.Root.Page.Layers.All.Curves.All.Symbol.Shape.nVal = 1;// set symbol type to square
trFormat.Root.Page.Layers.All.Curves.All.Symbol.Interior.nVal = 1; // set Interior path to hollow
trFormat.Root.Page.Layers.All.Curves.All.Symbol.EdgeColor.nVal = SYSCOLOR_BLACK; // set fill color to none(white)
trFormat.Root.Page.Layers.All.Curves.All.Symbol.FillColor.nVal = SYSCOLOR_WHITE; // set fill color to none(white)
if(dp.ApplyFormat(trFormat))
{
out_str("success");
gl.GetPage().Refresh();
}
}
}
}
Iris