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?
Irritating flicker
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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
support@dplot.com
-
- Posts: 19
- Joined: Fri Apr 29, 2005 9:10 am
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
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
support@dplot.com
-
- Posts: 19
- Joined: Fri Apr 29, 2005 9:10 am
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
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
support@dplot.com
-
- Posts: 19
- Joined: Fri Apr 29, 2005 9:10 am
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Sorry for the trouble; I'll take a closer look as soon as possible.
Visualize Your Data
support@dplot.com
support@dplot.com