LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting close control causes screen flicker

When I disable/enable the close control (x) using the SetPanelAttribute(handle, ATTR_CLOSE_ITEM_VISIBLE, 0), I get a noticeable screen flicker. Is there anyway to update the control without getting the flicker?
0 Kudos
Message 1 of 4
(3,221 Views)
I tried to reproduce what you described but I don't see what you describe. I can set the ATTR_CLOSE_ITEM_VISIBLE to 0 and it behaves as documented but I do not see the flicker.
 
Do you get this behavior for your specific application or for any application. If you can test this out with a simple application that doesn't do any thing else, we can try to narrow down the problem.
 
Regards,
Jack J.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,203 Views)
Hello Jack,
I
0 Kudos
Message 3 of 4
(3,187 Views)

Hello Jack,

I did some more experimenting with the ATTR_CLOSE_ITEM_VISIBLE feature to see if the flicker was only occurring with that specific program. I first tried the program on another computer to see if it was hardware specific. The flicker did occur, so ruling out hardware. I then coded up a simple program with a panel that just had a button that toggled the ATTR_CLOSE_ITEM_VISIBLE on and off. When I ran this program there was no flicker. I then started adding text boxes and graphics to the panel and got the flicker back. When you created your test program did your panel have other things on it?

0 Kudos
Message 4 of 4
(3,184 Views)