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
 Legend Autoupdate

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
SteveS2 Posted - 07/28/2006 : 2:42:56 PM
Origin 7.5 SP5:
Windows 2000


Is there a way in code to turn off the legend Auto update property?


1   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 07/30/2006 : 11:21:50 PM
If you are talking about turning off the legend auto update property for a graph page, there will be a way to do that.

The following function is an example. It reads the formats of a graph page, turns off the auto-update for legend, and updates the change of formats for the graph page.


void test4996()
{
//Get the first graph page in the project
GraphPage pg = Project.GraphPages(0);
if (!pg) return;

//Get part of its format
Tree tr;
tr = pg.GetFormat(FPB_OTHER, FOB_LABELS);

//Get the tree node for legend auto-update
TreeNode tn;
tn=tree_get_node_by_attributes(tr, "NodeID", "639");
if (!tn.IsValid()) return;

//Set legend auto-uplate to be false
tn.nVal=0;

//Apply the changed format
pg.ApplyFormat(tr);
}


Hope it helps. :)

Deanna
OriginLab GZ Office

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