Using DPlot In Conjuction With Other Applications

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
raydela
Posts: 46
Joined: Wed Sep 10, 2003 2:01 pm
Location: Oxford, MI, USA

Using DPlot In Conjuction With Other Applications

Post by raydela »

As on who is using DPlot in conjunction with Excel, here is a suggested improvement:

> Provide option to keep DPlot visible in the foreground when the focus is changed to another application.

My specific use of this would be to have Excel maximized and DPlot reduced somewhat and set over to one side. Currently, when I set the focus to Excel (to change data), my DPlot window disappears to the background and I have to then press the DPlot icon in the taskbar to see a change in my linked curve. Sometimes it's beneficial to see a live change in the curve when some data is changed a certain way (doing a "what-if" scenario)

I can do this now if I reduce both Excel and DPlot and set them side by side on the desktop. However, I would like to be able to keep Excel fully maximized to allow changing cells more widely spaced without (or with less) need to use the scroll bars.

Ray
raydela
Posts: 46
Joined: Wed Sep 10, 2003 2:01 pm
Location: Oxford, MI, USA

Post by raydela »

P.S. In the topic, meant "ConjuNction".

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

Post by DPlotAdmin »

Use [SetWindowPos(0,-1,x,y,cx,cy,flags)]

For what you want to do the critical parameters are the first 2. The first 0 says you want to play with the main DPlot application window, the -1 makes it "stay on top". x,y are the coordinates of the upper left corner of the window. cx,cy are the width and height. Search the Help for SetWindowPos for more information.
Visualize Your Data
support@dplot.com
raydela
Posts: 46
Joined: Wed Sep 10, 2003 2:01 pm
Location: Oxford, MI, USA

Post by raydela »

OK, thanks. For some reason I never considered checking out the DPlot Commands -- a lot of neat looking stuff there!

Btw, I initially had a little trouble getting [SetWindowPos(index,hwndInsertAfter,x,y,cx,cy,uflags)] to work (getting an error when trying to run the command from the macro editor). I finally figured out that the cause was uflags: I can't use either a constant label (such as SWP_NOSIZE) or hexadecimal notation (0x0001) -- its got to decimal (1).

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

Post by DPlotAdmin »

Btw, I initially had a little trouble getting [SetWindowPos(index,hwndInsertAfter,x,y,cx,cy,uflags)] to work (getting an error when trying to run the command from the macro editor). I finally figured out that the cause was uflags: I can't use either a constant label (such as SWP_NOSIZE) or hexadecimal notation (0x0001) -- its got to decimal (1).
Good point, thanks. The values are shown in hex... well, because that's the way I think, I suppose, and it makes it more clear how the different flags can be combined. I need to spell out in the Help that decimal numbers are expected.
Visualize Your Data
support@dplot.com
raydela
Posts: 46
Joined: Wed Sep 10, 2003 2:01 pm
Location: Oxford, MI, USA

Post by raydela »

Actually, I also prefer hex representating for flags.

Ray
Post Reply