@Elemenop
Change the SETUP GUI parameters from:
SETUP GUI WindowTitle$,InitCode$
to
SETUP GUI WindowTitle$,InitCode$,1
@1tg46
Quote: " or just having some other basic commands of DBP available to interact with the gadgets??"
No. BlueGUI is entirely independant of DBPro, there is no way I can "hook" a command like Print (ie. so I could respond to it in my own way).
However, if you want to do 2D drawing on a gadget, that will be possible in BGUI v2:
eg:
`Create a new canvas to draw in, if you want to draw in a window, create a window first, then create the canvas inside it. This canvas is 640 pixels wide by 480 pixels high
paintingArea=createCanvas(0,0,640,480,0)
`Draw some black text, the syntax is drawText canvasGadget,x,y,text$
drawText paintingArea,10,10,"I love"
drawText paintingArea,10,30,"BlueGUI version 2's"
drawText paintingArea,10,50,"new canvas drawing commands!"
`Set the drawing colour to red border / red fill / black text before drawing out rectangle
setDrawingColor paintingArea,RGB(255,0,0),RGB(255,0,0),0
`There are various shape drawing commands, for drawRect, the syntax is drawRect canvasGadget,left,top,right,bottom
drawRect paintingArea,10,70,100,140
(other commands for drawing are drawLine, drawEllipse and drawPoint)
BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games. - Plus URL download, win dialogs.
Over 140 new commands