Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Animated Gif
Message
De
11/09/2001 06:54:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/09/2001 16:14:31
Fabian Borghi
Xenon Information Technology
Itaparica, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Divers
Thread ID:
00554894
Message ID:
00555034
Vues:
15
>How can i put an animated gif into a form ?

Fabian,
Use webbrowser control. ie:(sorry paths are hardcoded check)
oForm = createobject('form1')
oForm.Show
Read events

Define CLASS form1 AS form
  Top = 0
  Left = 0
  Height = 467
  Width = 577
  DoCreate = .T.
  Caption = "Form1"
  Name = "Form1"

  Add OBJECT command1 AS commandbutton WITH ;
    Top = 360, ;
    Left = 468, ;
    Height = 27, ;
    Width = 84, ;
    Caption = "Change", ;
    Name = "Command1"

  Add OBJECT container1 AS container WITH ;
    Top = 0, ;
    Left = 0, ;
    Width = 420, ;
    Height = 457, ;
    BorderWidth = 0, ;
    Name = "Container1"


  Procedure Init
  With ThisForm.container1
    .NewObject('_webbrowser','_webbrowser4',home()+'gallery\_webview.vcx')
    With ._WebBrowser
      .Height = 450
      .Width = 450
      .visible = .t.
      .Navigate('file://C:/WINDOWS/SYSTEM/OOBE/HTML/MOUSE/IMAGES/moving.gif')
    Endwith
    .setfocus()
  Endwith
  Thisform.command1.Setfocus()
Endproc

  Procedure command1.Click
  Thisform.container1._WebBrowser.Navigate('file://C:/WINDOWS/SYSTEM/OOBE/HTML/MOUSE/IMAGES/dragging.gif')
Endproc
  Procedure QueryUnload
  Clear events
Endproc
Enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform