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.
New PowerBasic examples
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
New PowerBasic examples
Last edited by DPlotAdmin on Fri Apr 14, 2006 12:16 am, edited 1 time in total.
Visualize Your Data
support@dplot.com
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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)
Last edited by DPlotAdmin on Fri Apr 14, 2006 12:17 am, edited 1 time in total.
Visualize Your Data
support@dplot.com
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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
DPlotJr: http://www.dplot.com/dplotjr_setup.exe
DPLOTLIB: http://www.dplot.com/lib/dplotlib.zip
Visualize Your Data
support@dplot.com
support@dplot.com