LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Canvas clear problem

I have a canvas control to display data in a graph format (much faster than drawing graphs) ,

however if I place a control in front of the canvas the clear canvas does not clear the entire object, it only appears to clear blocks around the previous drawn data.

This even occurs if the label for the canvas cotrol overlaps the canvas.

 

I use the following to clear the panel

                CanvasClear (panelHandle,  panel_canvas, VAL_ENTIRE_OBJECT);


Apart from moving the other controls away is there a better solution, is this a known problem?

 

Many Thanks

 

 

0 Kudos
Message 1 of 2
(4,348 Views)

I tried to reproduce this by modifying the samples\userint\canvas.cws example program by placing one of the buttons on top of the canvas:

 

canvas.png

 

... but I wasn't able to reproduce the problem. Clearing the canvas cleared everything. So there must be some other subtle difference in your program. Would you be able to attach here a reduced version of your program that reproduces the problem?

 

Luis

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