Page 1 of 1

Deleting/Modifying Text Notes via DDE Interface

Posted: Tue Jan 20, 2009 3:53 pm
by raswaim
I'm using an external script to drive DPlot, creating individual frames of a data plot animation. I'd like to add notes via TextNoteEx, but having added them, is there a way of deleting/hiding them or modifying the text/position for successive frames?

Best I've been able to do so far is over-write with another note, but there's a limit to how far you can take that, and you can't move the note.... I realize I could probably re-load the plot from scratch for each frame, but that seems a bit clumsy. Other options? Thanks - R

Posted: Sat Jan 24, 2009 4:18 pm
by raswaim
The following might be a relative low impact solution to this problem: I assume you're using an indexed array for note storage... How about one more (optional) parameter in the TextNoteEx command for specifying a note index number (ala curve index)? If the note index already exists, the accompanying data over-writes the parameters for the existing note. Your call on what happens if a non-existent, non-sequential index is passed.

Posted: Sat Jan 24, 2009 7:48 pm
by DPlotAdmin
Hmm... there are DeleteLabel and DeleteRefLine commands, but no DeleteNote command. I suppose because nobody has asked before. Easy change, will have it in the next release.

PS: I think you're one that I promised an update this weekend to. Unfortunately that won't happen, mostly due to my new life as soccer dad. I'll get a new version up sometime in the next week.

Posted: Sun Jan 25, 2009 10:22 am
by raswaim
DeleteNote <#> would work just fine also, and be less restrictive for any future enhancements to TextNoteEx.

No worries here about the update for the other problem, as there is a simple workaround for that issue right now.