Page 1 of 1
Irritating flicker
Posted: Fri Apr 29, 2005 9:20 am
by Jens Andenaes
Hi,
I am trying to plot several dynamic plots on a dialog window using DPlotJr. I am modifying the the code in example BTEST2 for the application wich is being written in VB6. However, every time the plot is updated the Windows bar makes an irritating flicker. Is there a way to eliminate this flicker?
Posted: Fri Apr 29, 2005 2:12 pm
by DPlotAdmin
Not at your end, but thanks for the reminder. This will require a change in dplot.exe. I'll try to have this fixed in the next update, hopefully by the end of the weekend.
Posted: Sat Apr 30, 2005 1:55 am
by Jens Andenaes
Hi David,
Thanks for the quick response, it would be really great if you can make an update that quick.
Jens
Posted: Sat Apr 30, 2005 2:00 am
by DPlotAdmin
Jens,
There are 2 ways to get around this problem before the next release:
1. Instead of DPlot_Plot followed by DPlot_GetBitmap, use DPlot_PlotBitmap. If you don't need the extra scaling information returned by DPlot_GetBitmapEx, this is preferable to:
2. The first command in the command string sent to DPlot_Plot should be the undocumented [DPLOTLIB_HIDE]. This is case-specific and it must be the first command string, as in
cmds = "[DPLOTLIB_HIDE]"
cmds = cmds & "[ManualScale(0,-1.25,4,1.25)]"
Either of the above should work with all versions of DPlot. With the next release this won't be necessary: if DPlot is hidden you won't get the change in focus that results in the annoying flashing of your caption.
Posted: Sat Apr 30, 2005 4:02 am
by Jens Andenaes
David,
Wow! I tried the HIDE instruction and it worked straight away. Thanks for an incredible and unsurpassed level of support.
Cheers
Jens
Posted: Sun May 01, 2005 11:45 pm
by DPlotAdmin
Jens,
This is fixed in the 1.9.9.5 update. You don't need the [DPLOTLIB_HIDE] command, and you can also delete any calls to BringWindowToTop you might be using. Thanks again for calling attention to the problem.
Posted: Mon May 02, 2005 2:59 am
by Jens Andenaes
David,
Thanks for your quick support. I'll download the update and try it out.
Jens
Posted: Tue May 16, 2006 5:36 pm
by adamp
David,
It's strange but I have the same problem with flickering windows toolbar. Please note, that I work with newest versions of dplotlib and DPlotJr. Is seems that such flickering is "strongly" present in Windows 2000 (I'm testing my application with with OS).
Posted: Tue May 16, 2006 9:28 pm
by DPlotAdmin
Sorry for the trouble; I'll take a closer look as soon as possible.