LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

metafile flickering

Hi everybody,

I'm programing an application under LabView to visualize a control panel with a background image (metafile format).
I need to scroll and zoom with the mouse all elements of the control panel (metafile image included), like a pdf viewer.
I've got it, but I get a flickering effect when I scroll it. I have read the solution is using double buffering. Anyone knows how
can I do it, but using the Windows API (using the Call Library Function Node)?

Thanks.

0 Kudos
Message 1 of 3
(2,357 Views)

When you Initailize a process again and again flickering will be there... you can post your code if its not a problem.....

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(2,348 Views)

no problem, (the vi is labview 2009 version)

 

Another question...

in the zoom case, I used invalidaterect and updatewindow for redraw metafile ,but it didn't work, now I use only invalidaterect and It works, I think it was because updatewindow calls WndProc and WndProc is defined by labview and wm_paint message didn't reach my wm_paint message case, there is any way to rewrite the WndProc call? 

 

thanks for your reply.

Download All
0 Kudos
Message 3 of 3
(2,325 Views)