Hi,
First of all, in DBpro, functions must be declared after the 'end' command (see code below). Second, BlueGUI requires the command 'startBlue "UserID","Key"', where UserID and Key are your UserID and Key that you had to type into the BlueGUI site to download it or that you were emailed by TGC.
Here's how the code should look:
sync on : sync rate 0
startBlue "UserID","Key"
global Gadget1
createUI()
make camera 1
make object cube 1,20 : position object 1,0,0,0
do
control camera using arrowkeys 1,1,1
sync
loop
end
function createUI()
If Not GUI_CONSTANTS Then errorMessage "GUI Constants not defined. Please include gui.dba when you compile" : end
Gadget1=createListBox(460,0,180,433,0)
endfunction
function createMainMenu()
menu=createMenu(0)
endfunction
Also, make sure you copy gui.dba from the BlueGUI extras folder into your program's folder and then attach it to your program by clicking on 'Files' in the project manager sidebar and then clicking 'Add New' and choosing gui.dba. This file has constant declarations that BlueGUI needs for many commands.
-Xol