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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 How to modify graph's name in origin C program?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
liujibao Posted - 12/16/2003 : 10:16:50 PM
I created many graphs,but I cann't how to recognize each of them ,so I want to do it through modifying the graphs' name.
ou,sorry,the "graph" just is GraphPage.

Thanks.

Your service is very earnest to customers.
4   L A T E S T    R E P L I E S    (Newest First)
Iris_Bai Posted - 12/18/2003 : 01:58:53 AM
Yes, this is a bug. "ReName" appear in help document in earlier Origin version. For now, it has updated to "Rename".
liujibao Posted - 12/18/2003 : 12:38:52 AM
ou, I see, I just write "Rename" as "ReName",but it is exactly written in origin help.
liujibao Posted - 12/18/2003 : 12:34:21 AM
Thank Your for reply.
Your code is out of question when I run it.
but when I use it in my code, the question appears:

void Plot_Data(Worksheet &wks,UINT xcol,UINT y1col,UINT y2col,UINT y3col,UINT y4col,UINT y5col)
{
GraphPage grph; // Create a graph window from a Template
string strTemplate="D:\mytemplate.otp
BOOL bOK = grph.Create(strTemplate, CREATE_VISIBLE);
if (!bOK)
return;
grph.ReName("Es graph");
}


the result is:

D:\Test.c(254) :Error, Member function GraphPage::ReName not defined or does not have matching prototype.
D:Test.c(247) :Error, error(s) found in compiling method
D:\Test.c(254) :Error, general compile error
D:\Test.c(247) :Error, error(s) found in compiling function Plot_Data

Compiling errors found, linking cannot start!


why?
Iris_Bai Posted - 12/17/2003 : 04:42:13 AM
Hi Liujibao,

Please try the following testing code to rename page name and set label.

 
void run_this()
{
GraphPage gp;
gp.Create(NULL, CREATE_HIDDEN);//Create one page as hidden
gp.Show(TRUE); //Show the graph page
gp.Rename("New Name"); //Rename the page's name
printf("%s\n", gp.GetName());

gp.Label = "This is Label"; //Set the page's label
gp.TitleShow = WIN_TITLE_SHOW_BOTH; //Show Name and Label of the page

}


Iris



Edited by - Iris_Bai on 12/17/2003 05:36:15 AM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000