Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my cwgraph flicker the first time I move the cursor.

If my graph is larger then the form it is on. The first time I try to move a cursor the graph starts to flicker. If I open up the form so it does not cover the graph the flicker stops. If I close up the form back to the old size everything works fine. I have tried the invalidation and immediate update option. Both give this result. If the graph is not larger then the form everything works fine.
0 Kudos
Message 1 of 5
(3,484 Views)
AMC-1:

I haven't been able to reproduce this problem. I'm using ComponentWorks 3.0.1 (Measurement Studio 1.0.1) with Microsoft Visual C++ 6.0 SP3.

I made a simple MDI application using the National Instruments Application Wizard, using all the defaults except that I changed my view class to derive from CFormView. The example seems to work fine for me and doesn't demonstrate the problems you report. I'm attaching a copy here.

AMC-1, if this problem continues, please contact National Instruments' Technical Support via email at http://www.ni.com/ask or by calling the technical support number for your area listed on the page at http://www.ni.com/support/wrldwide.htm .

Good Luck,

Chris Wood
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,484 Views)
I have the exact same problem. I am using a class which allows me to resize my form. It resizes the controls on the form accordingly (including CWGraph). After I maximize the form the display flickers when I drag a rubberband for zooming. It also leaves ghost images of the rubberband.

I have attached the Cursors example for you to try with the resize class.
0 Kudos
Message 3 of 5
(3,484 Views)
I have the exact same problem. I am using a class which allows me to resize my form. It resizes the controls on the form accordingly (including CWGraph). After I maximize the form the display flickers when I drag a rubberband for zooming. It also leaves ghost images of the rubberband.

I have attached the Cursors example for you to try with the resize class.
0 Kudos
Message 4 of 5
(3,484 Views)
Here a work around I found. In the InitUpdate function post two message from the graph WM_LBUTTONDOWN and WM_LBUTTONUP. Set the point to zero. This will issue a response to update the control and it will not start to flicker.
0 Kudos
Message 5 of 5
(3,484 Views)