Code: Select all
FileName$="FM.gif"
Buffer$=Space(512)
GetFullPathName_(FileName$,Len(Buffer$),@Buffer$,@FilePart)
animgif$ = PeekS(@Buffer$)
OpenWindow(0,200,200,550,400,"",#PB_Window_SystemMenu)
url$="about:<html><body scroll='no' leftmargin='0' topmargin='0'><img src='"+animgif$+"'></img></body></html>"
WebGadget(0,20,20,500,363,url$)
Repeat : ev=WaitWindowEvent() : Until ev=#PB_Event_CloseWindow
It works and displays the file.
But: a file that is on disk
How do I get this done using a file that is included in a DATASECTION ?
Any constructive help greatly appreciated. TIA!
// Edit: Code tags added. (Kiffi)