LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

gauge Lab Style

The control gauge Lab Style is redrawed badly when the control change value
0 Kudos
Message 1 of 7
(2,974 Views)
I don't have any problem redrawing the Lab Style gauge, whether the value is changing slowly or quickly (as fast as I can in a loop).
I'd check to make sure you have the latest driver for your video card.
0 Kudos
Message 2 of 7
(2,974 Views)
It's not possible a problem with a video driver. I have the same problem on most PC with various SO (win2000, WinNT, WinXP). I tryed with a panel with a guage only and in this mode this control work fine. But with other controls or with two gauge one above the other the problem appear. I dont know where the problem is.
0 Kudos
Message 3 of 7
(2,974 Views)
Can you try this example with two gauges? Set a value or Spin the gauges and see how the gauges look. They look fine to me.
0 Kudos
Message 4 of 7
(2,974 Views)
Your example work fine on my PC. I modify your example and this doesn't work. For modify it I must to disable the "Conform to System Color" option.
Thanks
0 Kudos
Message 5 of 7
(2,974 Views)
The problem starts when you make the face of a gauge transparent. It does seem like a problem with the control. But there's a work around.
I found this tip from Thomas Deutscher here<
/a>:
Use SetCtrlAttribute instead of SetCtrlVal. You may also need to call ProcessDrawEvents to...

0 Kudos
Message 6 of 7
(2,974 Views)
That's work fine!!!
Thanks a lot for your suggestion!!!
I'm very happy!!!

Giovanni
0 Kudos
Message 7 of 7
(2,974 Views)