New PowerBasic examples

Q&A for Visual Basic, Visual Basic .NET, and PowerBasic developers using DPlot

Moderator: DPlotAdmin

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

New PowerBasic examples

Post 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.
Last edited by DPlotAdmin on Fri Apr 14, 2006 12:16 am, edited 1 time in total.
Visualize Your Data
support@dplot.com
Blueb
Posts: 4
Joined: Tue Jul 08, 2003 9:15 am
Location: Vancouver Island, Canada

Post by Blueb »

David,

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

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

Post 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)
Last edited by DPlotAdmin on Fri Apr 14, 2006 12:17 am, edited 1 time in total.
Visualize Your Data
support@dplot.com
Blueb
Posts: 4
Joined: Tue Jul 08, 2003 9:15 am
Location: Vancouver Island, Canada

Post by Blueb »

Sorry David,

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

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

Post 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
Visualize Your Data
support@dplot.com
Post Reply