This is the WebLink Manager code:
I am using Import Pub.Win32 & Include "puremax.bmx" for myself but at the end you will just have to import it as a module.
Import Pub.Win32 Include "puremax.bmx" main:TWindow = New TWindow edit:TEditBox = New TEditBox list:TListBox = New TListBox add:TButton = New TButton remove:TButton = New TButton launch:TButton = New TButton main.Create("WebLink Manager",380,200,200,243,5) add.create("Add",132,10,50,20,main.hwnd) edit.create(10,10,119,22,main.hwnd) list.create(10,35,172,160,main.hwnd) remove.create("Remove",97,188,80,22,main.hwnd) launch.create("Launch",14,188,80,22,main.hwnd) Repeat Select list.selecteditem() Case 0 Print "google" Case 1 Print "yahoo" End Select If add.click() list.additem(edit.gettext()) End If If remove.click() list.removeitem(list.selecteditem()) End If WaitEvent() Forever
I am using Import Pub.Win32 & Include "puremax.bmx" for myself but at the end you will just have to import it as a module.