Knartz,
Object-Oriented Programming is made up of libraries and 'objects', which themselves are essentially made up of a group of functions and variables. An object is an interface linked to an array of data.
As the hand of Bruce Eckel in his open-source e-book, '
Thinking in C++, 2nd ed. Volume 1' wrote, "
The interface establishes what requests you can make for a particular object. However, there must be code somewhere to satisfy that request. This, along with the hidden data, comprises the implementation. From a procedural programming standpoint, it’s not that complicated. A type has a function associated with each possible request, and when you make a particular request to an object, that function is called. This process is usually summarized by saying that you “send a message” (make a request) to an object, and the object figures out what to do with that message (it executes code)."
You can find this
free e-book and many more by Bruce Eckel at his website,
http://www.mindview.net/.
Create seperate .DBA files which inlcude function(s), and then make use of the
#include command to implement these resuable functions into your current program. Design interfaces for your objects(buttons, panels etc), and use them, once clicked on or many other methods possible, to call these functions which execute specific code.
Have you ever practiced Microsoft Visual Basic? With it and some C++ knowledge, you should be able to get a firm grasp of how OOP is programmed. OOP is, at it's roots, proceduraly coded. DarkBasic is a procedural language.
In conclusion, you code the interface for the user to interact with buttons and more. When a button is triggered or something within the interface is triggered, then a boolean variable within that object's array should trigger a function call. Whatever you need to be accomplished, this called function, or functions, will do the job. This is simply how it is done.
+NanoBrain+