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
 Dialog Builder and Multiple Graphs?

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
dlw21 Posted - 10/23/2002 : 3:35:32 PM
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

4   L A T E S T    R E P L I E S    (Newest First)
Gary Lane Posted - 11/05/2002 : 2:11:30 PM
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
dlw21 Posted - 11/04/2002 : 1:33:56 PM
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

CStorey Posted - 11/04/2002 : 1:13:08 PM
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
Gary Lane Posted - 11/04/2002 : 10:18:53 AM
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


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