Irritating flicker

Q&A for Visual Basic, Visual Basic .NET, and PowerBasic developers using DPlot

Moderator: DPlotAdmin

Post Reply
Jens Andenaes
Posts: 19
Joined: Fri Apr 29, 2005 9:10 am

Irritating flicker

Post 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?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Jens Andenaes
Posts: 19
Joined: Fri Apr 29, 2005 9:10 am

Post by Jens Andenaes »

Hi David,
Thanks for the quick response, it would be really great if you can make an update that quick.

Jens
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Jens Andenaes
Posts: 19
Joined: Fri Apr 29, 2005 9:10 am

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Jens Andenaes
Posts: 19
Joined: Fri Apr 29, 2005 9:10 am

Post by Jens Andenaes »

David,
Thanks for your quick support. I'll download the update and try it out.

Jens
adamp
Posts: 2
Joined: Tue May 16, 2006 4:29 pm

Post 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).
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Sorry for the trouble; I'll take a closer look as soon as possible.
Visualize Your Data
support@dplot.com
Post Reply