Welcome to the 4D Plug-In Tutorials. We hope the following tutorials will help to educate and expand your 4D knowledge. The tutorials are designed to be step by step instructions on how to create plug-ins. We will start with more of the basic functionality of the 4D Plug-In Wizard and build up to more complex designs.
Tutorial One - Basic Functionality of the 4D
Plug-In Wizard
This tutorial should give you a good working knowledge of the 4D Plug-In
Wizard. The tutorial will cover all aspects of the Wizard and by the end
you should be able to write your first plug-in using calls to the API that
will mimic the CONFIRM and REQUEST commands.
Download Tutorial 1 Source Files - Mac
| Windows
Tutorial Two - 4D Constants
This tutorial will explain in depth how to create and use Constants inside
a plug-in. Here we will show you how to create a plug-in that contains only
Constants using the 4D Plug-In Wizard.
Download Tutorial 2 Source Files - Mac
| Windows
Tutorial Three - Using a 4D Dialog in a Plug-in
This tutorial will cover the basics on how to create a 4D dialog and then
use that dialog within a 4D plug-in. The topics will include creating a
4D dialog and then saving as a resource to disk, importing the dialog into
a 4D plug-in, and then finally, writing the code on how to display and use
the 4D dialog from the plug-in.
Tutorial Four - Working with 4D Pointers
This tutorial covers the basic operations of how to pass and use 4D pointers
in a plug-in. The topics include passing the pointer into a plug-in, and
determining if the pointer is to a table/field or a variable.
Tutorial Five - Creating and Working with Queries
This tutorial will cover the two different ways in which you can create
a query within a plug-in. One is to use 4D's built-in Query Dialog, and
the other is to create a Query similar to the QUERY command in 4D. The topics
will include code examples on how to build and execute these queries from
within a plug-in.