The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Designate the symbol shape
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wufengseu

China
Posts

Posted - 03/11/2008 :  10:59:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Can I definitely designate the symbol as

e.g. solid square rather than the hollow square

int the same horizontal line in OC ?






Edited by - wufengseu on 03/12/2008 06:44:28 AM

Iris_Bai

China
Posts

Posted - 03/13/2008 :  02:40:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

wufengseu

China
Posts

Posted - 03/13/2008 :  04:35:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry, Must I made my question no clear, while I fails to upload the figure.

To depict it in more detai, following the Plot Detail Box -->symbol --->preview, e.g., there exist many similar symbols in every same line ¡ñ¡ð¡Ñ etc.
The command "...Symbol.Shape.nVal = value" is invalid in making symbol solely as ¡ñ , ¡ð or ¡Ñ, which reserves the default setting
property last used.

Hoping for the solution. Thanks a lot!


Edited by - wufengseu on 03/15/2008 10:34:31 PM
Go to Top of Page

Iris_Bai

China
Posts

Posted - 03/13/2008 :  9:52:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please use ...Symbol.Interior.nVal = 7; to do this, .Symbol.Shapre. just to set the shape like square, circle, triangle...



Iris
Go to Top of Page

wufengseu

China
Posts

Posted - 03/18/2008 :  07:15:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi£¬Iris_Bai
immense thanks to you help.
you are right.
which settled the default/disadvantage of using the order of tree_get_node_by_nodeid.


quote:

Hi,

Please use ...Symbol.Interior.nVal = 7; to do this, .Symbol.Shapre. just to set the shape like square, circle, triangle...



Iris

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000