Page 1 of 1

Tip: Showing an AnimGIF in a window

Posted: Fri Sep 20, 2002 9:26 pm
by BackupUser
Code updated for 5.20+

Restored from previous forum. Originally posted by PB.

NOTE: You may wish to visit the following post to see how to compile
an animated gif as part of your executable, instead of loading it as a
separate file:

viewtopic.php?t=2047

The tip:

Code: Select all

; Example of an AnimGIF inside a window.
; By PB -- do whatever you want with it.
;
; IMPORTANT: Read PureBasic's requirements for WebGadgets!
;
If OpenWindow(0,200,200,450,200,"Test",#PB_Window_SystemMenu)
  
  url$="C:\AnimGIF.gif" ; You *must* specify the full path to the animgif for this to work!
  
  WebGadget(0,0,0,450,200,url$)
  
  Repeat
    ev=WaitWindowEvent()
  Until ev=#PB_Event_CloseWindow
EndIf

PB - Registered PureBasic Coder

Posted: Sat Sep 21, 2002 5:25 pm
by BackupUser
Restored from previous forum. Originally posted by Pantcho!.

thanks!
but is there anyway to disable the IE right click button?
that no menu will be shown for like copy/save pic etc... ?


---
Registered Purebasic Member!
---
Resp'cta!

Posted: Sat Sep 21, 2002 9:23 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> is there anyway to disable the IE right click button?

Put DisableGadget(0,#TRUE) after the WebGadget command.


PB - Registered PureBasic Coder

Posted: Sat Sep 21, 2002 10:01 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.

About disabling right-click, why don't do it in JavaScript? The transparent background is determined when you make your animated GIF.


El_Choni