03-19-2013 11:48 AM
I have a mixed signal graph that is fit into tight screen space and as a result is inside of a pane that it must fit into. When I make the cursor legend visible, the object is redrawn with the cursor list box on the right and resizing/drawing occurs. I immediately after this want to perform the method Fit Control to Pane to make it fit properly into the pane. So I have have 2 consecutive program nodes for my graph that get executed - Cursor Visible property and then Fit Control to Pane Method. There appears to be a problem in that sometimes the Fit Control to Pane method begins before the redrawing of thegraph object completes which leaves my screen in a mess. Is there a way to know when the graph is done drawing to add its cursor list box? A simple time delay could be inserted but it would be better if I knew what to trigger the Fit Control to Pane Method on.
03-19-2013 04:28 PM
That does sound messy and unexpected. Generally, property nodes should force an actual update synchronously. Are you sure the two are actually consecutive? Are they connected with an error wire or a reference? Can you upload a VI which demonstrates this?
If that doesn't help, you could try using defer panel updates. The ideal would probably be to call it once before and once after, but you might need to place it in between as well.