Modifying embedded graphs

I need help modifying a graph on a user panel.

The experiment has three tabbed panels, the panels are created by a macro...
Window GridControl() : Panel etc etc.

In the 2nd tab panel are three graphs embedded (subwindows?) one of which has cursors.
the code setting up the graphs is in the attached code snippet.

Graph1
Display/W=(610,32,1215,306)/HOST=# ::::dummywave,corrected1

Graph2
Display/W=(610,309,1215,583)/HOST=# dummywave,:Data:Temp:Disp:abs_display0
Cursor/P A abs_display0 500;Cursor/P B abs_display0 600

I'd like to add cursors to the first graph as well
Cursor/P C corrected1 500;Cursor/P D corrected1 600
didn't seem to work.

I could use some help getting the 1st graph to have cursors
Thanks
pmsnippet1.txt (1.64 KB) maincontrolpanelmacro.txt (57.61 KB)
I made a panel with two graphs and manually put a cursor on one of the graphs. Then I saved a recreation macro and copied the cursor command to just below the Display command for the second graph. I changed the name of the cursor to C and changed the name of the trace. Then I ran the macro, and it worked correctly. Here is the recreation macro after it was modified:
Window Panel0() : Panel
    PauseUpdate; Silent 1       // building window...
    NewPanel /W=(150,50,597,752)
    ShowInfo/W=Panel0
    Display/W=(37,298,414,527)/HOST=#  junk
    Cursor/P A junk 45
    RenameWindow #,G0
    SetActiveSubwindow ##
    Display/W=(39,22,412,281)/HOST=#  junk2
    Cursor/P C junk2 45
    RenameWindow #,G1
    SetActiveSubwindow ##
EndMacro

One thing to watch out for: if the Cursor command is executed when the appropriate graph sub-window is not the active subwindow, it will not work. To make sure, you might use something like
Cursor/P/W=GridControl#G0 C corrected1 500;Cursor/P D corrected1 600
being very careful to make sure that the graph name there is correct.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com