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
 Page.Info - GraphPage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hajo

Germany
Posts

Posted - 10/07/2004 :  07:50:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5SR4
Operating System: WinXP

Creating a text label at a graphpage, I can access the Page.Info storage of the data-worksheets that are base for the curves I display at the graphpage by CTRL+H.

Now I wanted to acces those Page.Info tree using OriginC.
Making the graphpage active and typing "Page.Info. = " at the script window only shows me the following tree:
Page.Info. = ;
<SYSTEM>
[PRINTING]
PRINTERNAME$ = "\\RBGS390A\44706_PS"
NUMBEROFCOPIES = 1
PAPERSOURCE = 15
<ExportWMF>
...

and not the tree displayed in the dialog I open by using CTRL+H!

Is there a possibility to access those Info structures out of the graphpage directly in OriginC or do I have to loop over the data-worksheets and read out the values I'm interested in?

Thanks for comments
Hajo

--
Dipl.-Ing. Hans-Joerg Koch
SiemensVDO Automotive,
Regensburg, Germany

cpyang

USA
1406 Posts

Posted - 10/07/2004 :  10:59:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
When you have a graph active, page.info shows only the info for the graph page. Cntrl-H, on the other hand, loop over all the data plots and bring in the page.info from their respective worksheets.

See OriginC\Originlab\InsertUserVar.c, and in particular, the function

graph_get_info_tree

This function calls tree_add_info in tree_utils.c, which you can use directly.

CP




Edited by - cpyang on 10/07/2004 11:01:29 AM
Go to Top of Page

hajo

Germany
Posts

Posted - 10/08/2004 :  05:05:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello, CP

thanks for feedback ...
graph_get_info_tree is really what I'm looking for!

could you make that function public like graphlayer_get_info_tree or add it as member function to the GraphicLayer class as I think that could be a function with general interest ...

An other point:
I examined the InfoVarsDlg() function and found some problems:
  • There are two colums holding the labels and the values. clicking on the values column to edit the value scrolls the viewed part of the flexGrid to the value column, the label column is hidden ...
    I can't make the value column a smaller width, so I alsways have to scroll back to the label column to get a description of the next label!
  • An other issue is, that only the window frame of the dialog can be resized. The flexGrid can't be resized ...
  • Changes made in the editor aren't written back to the page info!



Thanks
Hajo


--
Dipl.-Ing. Hans-Joerg Koch
SiemensVDO Automotive,
Regensburg, Germany


Edited by - hajo on 10/08/2004 05:36:40 AM
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 10/11/2004 :  2:16:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
graph_get_info_tree is moved into page_utils.c as page_graph_get_info_tree for SR5 and Origin8.

As for the nfoVarsDlg, we are going to redo this for Origin8.


CP


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