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
 Page.Info - GraphPage

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
hajo Posted - 10/07/2004 : 07:50:34 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 10/11/2004 : 2:16:08 PM
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


hajo Posted - 10/08/2004 : 05:05:50 AM
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
cpyang Posted - 10/07/2004 : 10:59:24 AM
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

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