Page 1 of 1

New PowerBasic examples

Posted: Fri Aug 22, 2003 12:17 pm
by DPlotAdmin
Three PowerBasic examples making use of DPLOTLIB.DLL to plot data are available here: [Edit: link removed. PowerBasic examples are now included with DPLOTLIB and DPlot Jr]. You'll of course need either DPlot or DPlot Jr in addition to this file, and DPLOTLIB.DLL. If you don't have those, you can get the latest versions (1.8.2.5) here:

DPlot: http://www.dplot.com/dplotsetup.exe
DPlot Jr: http://www.dplot.com/dplotjr_setup.exe
DPLOTLIB: http://www.dplot.com/lib/dplotlib.zip (DPLOTLIB is included with DPlot Jr; you don't need both)

Unzip pbtest.zip to the folder where you have DPlot or DPlot Jr installed, making sure to preserve the folder names in the zip. This will install 3 executables to the \DPLOTLIB folder below DPlot, and PowerBasic source to the \PB folder below that.

pbtest2 demonstrates generating a plot, retrieving a bitmap of that plot, and painting the bitmap on a window owned by the application. DPlot is hidden from the user.

pbtest3 is a realtime simulation that plots sine and cosine waves at a user-specified interval.

pbtest4 is similar to pbtest2, but works with enhanced metafiles rather than bitmaps. It also provides the ability to copy the metafile to the clipboard and/or print it.

All of these demos will be included in the next DPLOTLIB release, pending comments or suggestions from PowerBasic users... and your comments and questions are of course welcome.

Posted: Tue Nov 04, 2003 10:21 am
by Blueb
David,

It appears that the above link to the sample PowerBasic files is broken. Any way to get these samples?

Regards,
Bob

Posted: Tue Nov 04, 2003 11:36 am
by DPlotAdmin
Sorry, I should have mentioned this in this thread. The pbtest.zip file has been removed; the PB examples are now included in the DPLOTLIB distribution - available with both the DPlot Jr download (http://www.dplot.com/dplotjr_setup.exe) and the much smaller DPLOTLIB zip file (http://www.dplot.com/lib/dplotlib.zip)

Posted: Thu Nov 06, 2003 10:11 am
by Blueb
Sorry David,

The links you gave me are broken, that is what I mean't to say.

Bob

Posted: Thu Nov 06, 2003 1:28 pm
by DPlotAdmin
Argggghhh... sorry, I copy/pasted instead of thinking. The DPlotJr and DPLOTLIB distributions on the main site contain the PowerBasic examples you're interested in. The links are:

DPlotJr: http://www.dplot.com/dplotjr_setup.exe

DPLOTLIB: http://www.dplot.com/lib/dplotlib.zip