New PowerBasic examples
Posted: Fri Aug 22, 2003 12:17 pm
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.
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.