Prevent Legend edit

Ok, this is annoying me now.
I have a waveform graph in my current application. I use a lot of programmatic control to get it to adapt and display just the way I like it on the front panel (the application is meant to very customisable for the user). The waveform graph displays any number of plots from 1 to 12 simultaneously, and automatically adapts sensible things like axes labels and legend size to show those plots I want to show.
Now. I don't want the user to be able to edit the name of the plots in the Legend. However, if I use the Disable Legend property, this disables the whole legend resulting in the user not being able to change the plot style/colour/symbols etc. As I need to keep this level of customisation I therefore need to keep the legend enabled, but somehow prevent them from being able to change the plot name.
I can't detect plot name changes programmatically, so I can't restore them if the user makes any changes. Therefore I'm stuck.
Any ideas anyone
Thoric (CLA, CLED, CTD and LabVIEW Champion)
Solved!
Go to Solution.

Thanks for the ideas everyone.
Ravens Fan - I would normally put a transparent box over the text, but the chart size changes with the front panel, and the legend changes size too, so I'd need to continually resize the box. I presume by box, you mean a classic decoration, so I'd have to be quite careful in returning a reference to it to allow property changes. I'm sure that possible, but I preferably need a quick solution.
TonP - I've had a play around, but all I can return is a reference to the chart within an event case, not the legend. If I refuse the key down? filter event every time, then my users won't be able to change scale ranges with the keyboard. I definitely need to check the focus object is the legend, but I can't see a way to do that. Any ideas?
Rich - Yes, I'm aware of programmatic control of charts, apologies if my opening message was not clear.
Am I the only one tired of creating lengthy workarounds to artifically construct behaviours I expect to be quite standard in LabVIEW? All I want is to stop a user changing plot names, but allow them to modify everything else 
Looks like I'm going to have to start using user tags, decorations, and property nodes again...
Thoric (CLA, CLED, CTD and LabVIEW Champion)

Similar Messages

  • Prevent text edition in some lines

    Hi people,
    I need to prevent text edition in some areas, like the NetBeans IDE generated code (for the visuals).
    I think I must handle the user input and check if that line is avaible for edition.
    How can I write this code?.
    Thanks in advance.

    Hi,
    Please check the following URL for some functions that will help you achieve what you want. Also note however that the task of identifying which lines to restrict user input from and the actual restricting of user input would be left to you.
    http://forum.java.sun.com/thread.jspa?threadID=608220
    Hope this helps.
    cheers,
    vidyut

  • Chart Legend Edits not holding - CR XI R2

    We are making a report with multiple sub reports. Many of the sub reports are charts (Pie, stacked bar & line). The default legend labels are "Sum of [table or query name].[field name]." When we preview, then edit the legend labels to something more user friendly and save, the edits don't stick. As long as the report is open it looks OK, as soon as the report is closed and reopened it reverts back to the default legend label.
    What can be done to correct this behavior so the legend labels once edited will hold the value assigned?
    FYI
    The main report is simply a shell to hold the sub reports with conditionals for each section/sub report to allow for that sub report to be shown or not. There are no links between the sub reports or the sub reports and the main report. There are approximately 100 sub reports and about 1/3 of them are charts.

    Hi Steve,
    Preferably the solution would be to edit the Legend from the Design window.
    The other workaround is just delete the auto generated legend and manually creates legends.
    The charts used in Group Headers uses the summaries, which are evaluated while previewing the report and are referred to as u201CWhileprintingrecordsu201D stage and happens in Pass #2. Hence, the modifications that are done to the chart labels are not retained when you preview the report after closing the report. When you save the data with report, the modification are retained because they are not evaluated again and uses the existing data. You can observe this by closing the preview and then if you preview it again, you will not get the modified axis label as they are evaluated freshly.
    In case of charts which are placed in Report Header, these are evaluated in Pass #1.
    For more information on this, refer the document cr9_evaluationtimes.pdf
    OR search for multi-pass reporting in Crystal Reports Online Help.
    To create manual legends, follow the below steps:
    Step 1: Open the report.
    Step 2: Select u2018Boxu2019 from Insert menu and draw a small box near Chart
    Step 3: Select u2018Text Objectu2019 from Insert menu and insert it near the small box inserted in step 2 and enter the required label text in it.
    Step3: Right click on the box and select u2018Format Boxu2019 option, check u2018Fillu2019 checkbox and select the required color.
    Step 4: Repeat step 2,3 to have mores manual legend labels.
    Step 5: Preview the report.
    Hope the above helps.
    Regards,
    Alpana

  • Can the timeline be locked to prevent accidental edit slips ?

    Just wondering what the procedure in Speedgrade is to lock the timeline to prevent accidental frame and edit slips while selecting footage and grading?

    To the left of the timeloine with the eye and sound icon, you'll find a lock icon. This appears to lock position/sync while still allowing you to select clips to grade.

  • Preventing the editing of illustrator files when given to a client

    Hi all,
    Wondering if someone can help.
    Our problem is, one of our clients has asked for the actual illustrator file with the artwork in it. We want to somehow prevent them from editing the artwork and just be able to read & print the artwork from illustrator.
    Is there any way of doing this, maybe password protecting layers or something? were on CS3.
    Thank you for your time.
    Jason

    In my opinion one should NEVER send original artwork to clients. PDFs are o.k. and so are good quality screen shots, but if you send editable artwork to a client you are asking for trouble. After all, you are the designer and if the client wants to make alterations he should ask you to make them. More often than not clients operate on Windows, so pdfs and RGB pixel files (jpg, png, tiff etc.) are all he will really need.

  • Can pages be 'locked' to prevent further editing?

    I've created a website for our church and been updating it on my home computer. I expect to carry on for a while, but want to prepare for someone else taking it over.
    I also created two websites for our youth groups to work with and placed them onto the church laptop, (i did this by copying the whole iWeb folder, domain.site2 included, onto the lap[top) then deleted the church site from that file.
    Now, the youth have access to their own sites and edit them. When i add the official church site to the laptop, how can i prevent one of them from accidentally (or otherwise) changing/deleting some of our pages?
    Is there any way that I could keep the 2 domain.site2 files separate? I've experimented and can't get iWeb 09 to run by doubleclicking the domain icon, no matter where it is on my HD.
    Thank you
    Elizabeth

    Thank you, Roddy
    I read the info on the link you suggested but still have a question.
    If I duplicate the domain.sites2 file and make the changes so that I have 2 different domain files for 2 different sites, how does iWeb know which site to open when I run it?
    Currently, double-clicking the file gets an error message that iWeb can't read it and iWeb closes, yet when i next open iWeb it brings up the very same 'document' (for a better name) that it just wouldn't open.
    Elizabeth
    (PS I do have timemachine running so get regular backups ... now)

  • Prevents me editing pictures

    Hello!
    I've been using Photoshop CS6 for a while, and suddenly, some random "squares" shows up! A kind of a filter?
    And it prevents me for editing my pictures..! How this suddenly came up?
    I'm using a MacBook Pro 15,4" Retina.
    Anyone could help me?

    Have you been able to turn »Use Graphics Processor« off yet?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • Error message prevents further editing

    Of course, after working for hours on a project, I'm now getting an error message that reads: You may be able to continue without any problems. You may also wish to save, quit, and re-launch iMovie HD.
    Now, I can't make any alterations/edits, etc. to the file. I've copied it and renamed it, but to no avail. I have a copy of the file backed up on my external hard-drive, but I'd like to discover the problem.
    Thanks for your expertise.

    Hello and Welcome to the Discussions.
    Posted below are some general tips that may assist.
    First start off with a basic Uninstall of Apple software. This is listed in a particular order to reduce reboots. And you may or may not see everything in the list. If you run into issues during this phase skip to step 2
    1. Uninstall the following programs
    -Apple Mobile Device Support
    -Apple Software Update
    -Bonjour
    -iPod Updaters
    -Mobile Me
    -Quicktime
    -iTunes
    *Reboot, then download and install iTunes
    http://www.apple.com/itunes/download/
    2. Follow the steps in the document below. It will assist with full removal of Apple Software and files. This does not touch the iTunes Music Library at all.
    http://support.apple.com/kb/HT1926?viewlocale=en_US

  • Preventing Page Edit access

    I'm looking for information that explains how portal access control works in Oracle Application Server 10g (9.0.4).
    The situation I have at the moment is that I've created a page with one user QAManager and set its Access with the following settings:
    * Display to public users is unchecked
    * Enable Item Level security is unchecked
    QAManager user has 'Manage' privilege
    Authenticated Users group has 'View' privilege
    I've clicked the 'clear cache' link at the bottom of the page as well.
    No matter who I log on as (QAManager, Portal, Demo) I can still edit the page even though I thought that only QAManager would have edit access. This seems counter intuitive - is there some other cache I should be clearing, or have my users got some 'superuser' setting on them that overrides the page access control? What am I missing here? Any help appreciated.

    Ok - with a bit of trial an error I've answered my own question. It appears Users in the Demo Portal Administrator's group have the ability to edit the content created by other users even when they haven't been granted access to edit that content (not sure what this has to do with administering portal but now that I know it I can live with it).

  • How to prevent saving edits when closing Adobe

    I have several blank forms saved on my tablet and I need to use the same blank form for different jobs. Every time I fill the form it gets automatically saved and I no longer have my original blank form.
    Is there a way to disable this feature.
    Thank You

    Adobe Reader for iOS automatically saves any changes to a currently viewed PDF document when you close the document by going back to the home screen (showing the file browser).  There is no preference or option to disable/turn off the "Auto Save" feature.
    You can make a copy of your blank form before you open it.
    In the home screen, tap Documents.
    Long press (press & hold) the document that you want to make a copy of.
    Tap the overflow icon (with small three squares) in the upper right corner.
    Tap Duplicate.
    Open the newly duplicated PDF document (instead of the original one).

  • Video white balance levels not showing, so video effects and color editing won't work

    I've watched white balance tutorials, and I tried clicking the dropper onto the viewer to change the color. But, in the gray box above it there are normally red green and blue lines, but I have nothing there. I think this is preventing any edits to my color balance, can anyone help?

    Well, no offense, but you seriously should read the C4D help. That's normal specular shading behavior and it is uniform acroos the plane because you obviously haven't defined any scene lights and use the default viewport light. Read up on how to create materials and adjust there properties and then learn the fine art of scene lighting as well as how to use object buffers to isolate objects with multipass renders.
    Mylenium

  • Itens of legend in the same line

    Hi, I built a chart and now I need to put the itens of legend in the same line, but the each iten is in a new line. How I can modify this?
    The code XML of legend
    <.legend enabled="yes" x="80" y="0">
    <.names enabled="yes">
    <.font type="Verdana" size="10" color="0x000000" />
    <./names>
    <.values enabled="no"/>
    <.scroller enabled="no"/>
    <.header enabled="no"/>
    <.background alpha="0"/>
    <./legend>
    Edited by: chodos on 30/01/2009 08:37

    Nobody know or nobody understood me?

  • Selecting in Non-Editable JTextField in JDK 1.4

    Hi.
    Posting as new thread - maybe somebody can help.
    I want a formatted non-editable (!) display component (for incoming Instant Messages, if anyone cares), which allows selecting with the mouse (including selection highlighting) and then copying FROM it into another application or window. Currently (starting from JDK 1.4), this does not appear to be possible with a JTextArea. It works absolutely fine in all 1.3 JDKs, so It appears it was broken starting with JDK 1.4.
    Imagine not being able to copy FROM your Web browser (which is non-editable) INTO another application. That's what the situation is currently like.
    So - maybe I'm missing the obvious (well, a setSelectable(true) method would probably be TOO obvious), but can anyone help me as to how I can achieve the desired effect.
    From how I understood the workarounds in another thread, they would mean actually making the TextPane editable, but preventing all edits. Oh, and manually making its appearance resemble a non-editable Pane, so that the GUI doesn't appear inconsistent. SURELY this cannot be reasonable.
    Thanks,
    Daniel.

    Hi!
    I managed to boil the problem down to a simple test case (and, in doing so, actually found a fix for our problem). It seems that JTextPane does not allow selection if the method isFocusTraversable (which, by the way, is deprecated in JDK 1.4) is overridden:
    import java.awt.*;
    import javax.swing.*;
    public class test
    extends JDialog
         public test()
              super((JFrame)null, "JTextPane Test");
              getContentPane().setLayout(new BorderLayout());
              JTextPane pane = new JTextPane()
    // public boolean isFocusTraversable()
    // return false;
              String s1 = "01234567890123456789012345678901234567890123456789";
              String s2 = "";
              for (int i=0;i<50;i++)
              s2 = s2+s1+"\n";
              pane.setText (s2);
              pane.setEditable(false);
              getContentPane().add(new JScrollPane(pane), BorderLayout.CENTER);
              pack();
         public static void main(String argv[])
              (new test()).show();
    If you remove the comment lines around the inner class method, selection stops working. If you leave the comments in, selection and copy/paste do indeed work.
    Now why, one wonders, does a method which is deprecated in JDK 1.4 actually cause a PROBLEM in JDK 1.4 that wasn't there before?
    Daniel.

  • Two or more users editing the same script file in cq5, is it possible?

    In cq5 is possible two or more users editing the same jsp file? There is a lock system preventing simultaneous editing of the same file?
    Thanks,
    Gabriel

    you really should use eclipse and maven to work with multiple developers. something like [1] will be helpful
    [1] http://www.cqblueprints.com/xwiki/bin/view/Blue+Prints/The+CQ+Project+Maven+Archetype

  • Can not edit my program, I know about edit mode

    When I run demo programs I can switch to edit mode, but my program will only come up in run mode. I can not switch to edit mode. Those commands are grayed out and edit tools are disabled.

    Another possibility: Maybe the VIs had their diagram removed?
    This would prevent any editing of course.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for