Setup


Xlnt-GUI is supplied as an external BlitzBasic source file. In order to access the GUI Functions within your code, you must insert a few lines of setup code into your program. These lines of code a included within the main Xlnt file - all you need to do is copy & paste them into your code and remove the marked comments. However, here is the setup code in full, complete with a few more detailed comments.

Xlnt-GUI Setup Code

Please Note: All Blitz Source is highlighted in
Bold. Also, these lines of code must be executed in the order that they are shown and they must be executed before any Xlnt-GUI Functions are called.

Firstly we must include the Xlnt-GUI Functions into our code
Include "XLNT-GUI.BB"

This will load the Xlnt file from the current directory, please feel free to move the file to another directory - but don`t forget to change the pathname for the Include command.

Now we make a Graphics display.
Graphics 800,600,16,1


The following line calls the gfx function. This function draws all the mouse pointers etc. thus reducing the need for external gfx files
GUI_GFXSETUP()

Thats it! We are now ready to access the GUI Functions :)