LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

picture control lines drawn with width 1 or greater change thickness if the "Print Window" application menu item is invoked

I am using a picture control to display a rectangle. I had to wire the pen input with a width of "0" to avoid an undesired thickness increase occurring whenever the "Print Window" command was invoked. I observed the behavior in LabVIEW 7 and 7.1.1, and if I remember correctly, also in 6.1. Has anybody else run across this behavior? Is this a "feature" or a bug?
Message 1 of 3
(2,459 Views)
Hi Isaak,

By default the picture control's pen width is 1 pixel. If you do not wire any pen input and invoke the 'print window' command, the resulting printout has a line thickness of 1 pixel. However, if you want a lower thickness, you can wire a value of zero to the pen width input. This is expected behavior. Are you seeing something else?

Regards,
Ankita A.
0 Kudos
Message 2 of 3
(2,441 Views)
>>Are you seeing something else?

Yes, what I am seeing is that if I choose a pen width of 1 pixel, the rectangle is originally drawn on the screen with a line width of 1 pixel, until Print Window is invoked, then it draws to both the page and on-screen with a line width of about 5. It seems like, within LabVIEW at a level for which I do not have source code access, a decision has been made based on a perceived anticipated problem with the printout to increase the line width to ?5?, but this decision (which is probably intended to apply only to the printout) is either mistakenly being applied to the picture control as well or there is a failure to undo the line width variable change after the printout information is sent but before the screen refresh occurs.

I wonder if the fact that my picture control drawing VI's are being called in a seperate thread than the VI in which the picture control is located has something to do with it?
Message 3 of 3
(2,394 Views)