View previous topic :: View next topic |
Author |
Message |
meany
Joined: 21 Jul 2003 Posts: 16 Location: Missouri
|
Posted: Mon Jan 10, 2005 2:45 pm Post subject: Displaying a Wait Cursor while waiting for DPlot to return |
|
|
I'm using DDE from C++ to get a bitmap of a contour plot represented by a large number of XYZ points. Because of it's size, there is a few seconds delay while the plot is generated and the bitmap returned. I've tried every trick I know on the C++ side to set an hourglass wait cursor to fill this time lag. It flashes up for an instant, and then changes into a standard arrow pointer. I'm presuming this is while DPlot has execution control. Any suggestions? Thanks! |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Mon Jan 10, 2005 5:45 pm Post subject: |
|
|
If your own application is activated (rather than DPlot) then this is most likely due to you own app's response to a WM_SETCURSOR message from Windows rather than anything DPlot is doing. If you're ignoring WM_SETCURSOR then Windows will force the cursor to a default (standard arrow or one of the sizing cursors or perhaps an I-beam, depending on where the cursor is). And you'll get a WM_SETCURSOR every time you move your mouse.
If this was no help I'll be happy to give a more detailed explanation of how I typically handle this in my apps, but I'm a little banged up at the moment and this hunt-and-peck mode is making me grind my teeth _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
meany
Joined: 21 Jul 2003 Posts: 16 Location: Missouri
|
Posted: Tue Jan 11, 2005 1:15 pm Post subject: |
|
|
I added an OnSetCursor member to my view, put a CWaitCursor in there and it took care of the problem. I have a CWaitCursor in the routine that calls DPlot, but I think the WinProc function envokes a new WM_SETCURSOR when calling DPlot (I guess replacing the current cursor back to the default). Normally, the wait cursor stays in place until exiting the routine, even when the mouse is moved. Thanks for the steer in the right direction. Hope you quickly recover from the banged up state . Your quick response was appreciated as always. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|