Wide question...
I'll try to give some very basic clues
1. Populate a listbox with files
Find First
FileType = Get File Type()
For i = 0 To 1
FileName$ = Get File Name$()
If FileType = 0
rem If File is valid
AddItem ListBox, FileName$
rem EndIf
EndIf
Find Next
FileType = Get File Type()
i = (FileType = -1)
Next i
2. detecting a selection
Do
clickListBox = 0
For EventQueueEmpty = 0 to 1
GetEvent
_EventSource = EventSource()
_EventType = EventType()
_EventData = EventData()
If _EventSource = ListBox
If _EventType = MOUSE_CLICK Then clickListBox = 1
EndIf
EventQueueEmpty = (_EventType = 0)
Next EventQueueEmpty
If clickListBox
SI = SelectedItem(ListBox)
Message Str$(SI)
EndIf
Loop
3.Load a file
Here's an exemple with objects:
Dont load an object directly but setup internal data:
Type EditorObject
FileName$
Object
EndType
Dim EditorObjects(0) As EditorObject
Function AddEditorObject(FileName$)
Array Insert At Bottom EditorObjects(0)
EditorObjects().FileName$ = FileName$
EditorObjects().Object = Reserve Free Object()
EndFunction
Function RestoreEditorObject(EditorObject)
Load Object EditorObjects(EditorObject).FileName$, EditorObjects(EditorObject).Object
EndFunction
This struct remembers the filename so that if the screen is lost, objects can be reloaded more easyly.
4.Windowed Mode(Bonus topic)
I made a snippet a while ago about using windowed mode and blueGUI
http://forum.thegamecreators.com/?m=forum_view&t=193293&b=6&msg=2303764#m2303764
!