Also - here is an example of the code. This is the code for the net browser app:
Setup GUI "DarkBASIC Professional Internet Browser",[PARAMETER HIDDEN]
`Default Win Size
defwin = DBP Window Width()
defheight = DBP Window Height()
Create Hidden
`Create the Top Panel
Create Gadget Panel 1,0
Resize Gadget 1,defwin,50
`Create Explorer Buttons
Create Gadget Button 2,"Back"
Position Gadget 2,10,10
Create Gadget Button 3,"Refresh"
Position Gadget 3,100,10
Create Gadget Edit 4
Position Gadget 4,190,12
Resize Gadget 4,350,20
Create Gadget Button 5,"Go!"
Position Gadget 5,550,10
`Internet Browser Component
Create Gadget Explorer 10
Position Gadget 10,0,50
Resize Gadget 10,defwin-8,defheight-80
Open URL 10,"http://www.google.com"
last$ = Current URL(10)
`Bookmark Window
Create Without Parent
Create Gadget Window 20,1,"Store Files in...",1
` Set Parent Gadget 20,0
Create With Parent 20
Create Gadget Folders 22
Align Gadget 22,1
Bring Gadget To Front 20
Show All Gadgets
do
current=Gadget Clicked()
if current=2 then Open URL 10,last$
if current=3 then Refresh Page 10
if current=5 then last$=Current URL(10) : Open URL 10,Get Gadget Text(4)
`Detect New Window Size
If defwin <> DBP Window Width() or defheight <> DBP Window Height()
defwin = DBP Window Width()
defheight = DBP Window Height()
Resize Gadget 1,defwin,50
Resize Gadget 10,defwin-8,defheight-80
Endif
loop