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
 Dialog Builder and Multiple Graphs?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dlw21

USA
18 Posts

Posted - 10/23/2002 :  3:35:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I would like to display two graphs in a single dialog (not a wizard). Is this possible? So far I have attempted this by adding two picture placeholders on the dialog window. I've given them two different names, and made sure to use the -G option in the string table.

Next, I naively wrote this in my .OGS file:

DialogName!graph.create(LINE);
DialogName!Graph1Placeholder.Attach();
DialgoName!Graph1Placeholder.setRef();

DialogName!graph.create(LINE);
DialogName!Graph2Placeholder.Attach();
DialogName!Graph2Placeholder.setRef();

which SORT of does the job...

except that only one graph exists in the project (Graph1) -- though two graphs (which look exactly the same, of course) are displayed in the dialog.

As you might expect, any changes to the graphs made via a command like:

%A = DialogName!Graph1PlaceHolder.graph$;
%A!layer.x.from = 0.0;

affects both graphs (this fact might be considered obvious!).

I've tried removing all references to the dialog in the ORIGIN.INI file, I've reset (read: deleted) the .OPS file associated with the dialog, and I've added the -N flag to the string table entries for the placeholders. I've even tried using "graph2.create(LINE)" in the hope that it might work... Nothing seems to make a difference.

Any magic I need to perform to do this? Is it even possible?

Thanks,
Dave

Gary Lane

USA
150 Posts

Posted - 11/04/2002 :  10:18:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Dave,

To my knowledge multiple graphs on a single dialog has not been tried before. I will check with our Dialog Builder developer to see if this is currently supported or not. In any case it seems, at least at first glance, like a reasonable request.

One hint: When writing scripts to control a graph on a dialog I recommend putting the script in a win -o { } block. This facilitates matters because the graph on the dialog is never the active graph and many commands work on the active graph. See Help on the Window command for details.

I suspect this may not help this particular situation though as it seems the problem is that one (the same) graph is automatically being linked to two different placeholders by Dialog Builder. Currently I know of no way to specify that a particular graph get associated with a particular placeholder but I will check on this and get back to you.

Gary

Go to Top of Page

CStorey

Canada
137 Posts

Posted - 11/04/2002 :  1:13:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Gary,

Multiple graphs do not work.
I tried several months ago and reported my problems to Laurie.
There should be a tracking number for this topic.

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
Go to Top of Page

dlw21

USA
18 Posts

Posted - 11/04/2002 :  1:33:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Folks,

Thanks for the input and advice. It looks like it's not supported in the current version... and if OriginLab is considering/working on future support of multiple graphs, let me put an official "YES!" vote in!

In the meantime, I can sort of achieve similar results by creating new graphs as separate entities. While this gets the job done, I'd really prefer to have the graphs all contained in the dialog!

Thanks again,
Dave

Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 11/05/2002 :  2:11:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Craig and Dave,

Yes...as you both know this is not currently supported in Origin 7 SR2. There is a good chance that this may be implemented at some point though and is reported as QA70#1644.

Thanks...

Gary



Edited by - Gary Lane on 11/05/2002 2:12:26 PM
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