LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

redraw problem when programmatically resizing chart when window size change

Hi,

I want to programmatically change the size of my chart when the user change the window size. I can't use the "Fit control to pane" option since this screw up the position of the other indicators/controls.

I use the Chart PropertyNode but when I resize the window, it is not redrawn properly (the borders of the chart still remains, especially when I decrease the window size).

How can I force the window to redraw?

I use LV 8.2.1

Thanks.
0 Kudos
Message 1 of 4
(2,982 Views)
I had a very similar behaviour about 3 years ago in the LabVIEW 7.x days. I looked at your VI and my old code, and in fact: It is the same in 8.2.1. (I missed in making a note at that time to post it later e.g. to this forum.)
"My way" of avoiding this was: Make the border of the chart transparent.
 
Minimizing the FP and making it reappear will also result in a correct redraw. (You will surely not like this idea, isn't it?)
 
Moving another object over the "bad drawings" also helps.
 
Are there any further ideas?
Guenter
0 Kudos
Message 2 of 4
(2,962 Views)
I have verified this issue has been fixed in LabVIEW 8.5. 

-Bob
Message 3 of 4
(2,942 Views)

Thanks, Bob.  Your answer is very satisfying and prevents us from doing any further nasty workarounds here.

Have a great day, Guenter

0 Kudos
Message 4 of 4
(2,936 Views)