Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graphics
Message
De
07/03/2002 13:11:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/03/2002 12:57:12
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00629680
Message ID:
00629745
Vues:
36
>Cetin,
>
>Can you tell me how to attach the file name to the control and make it appear when the form is ran?
#Define WEBCLASSLOC home()+'gallery\_webview.vcx'
#Define GIF1 'file://'+sys(5)+curdir()+'bmps/animatedgif.gif'

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"

  Procedure Init
    With ThisForm
      .NewObject('_webbrowser','_webbrowser4',WEBCLASSLOC)
      With ._WebBrowser
        .Height = 150
        .Width = 150
        .visible = .t.
      Endwith
      .LoadFile(GIF1)
    Endwith
  Endproc

  Procedure LoadFile
    Lparameters tcURL
    With this._WebBrowser
      .Navigate(tcURL)
      lnStart = datetime()
      Do while .ReadyState # 4 and datetime()-lnStart < 5
      Enddo
      .document.body.bgcolor = 0xFFFF00 && Change backcolor to yellow
      .document.body.scroll = 'auto' && 'no' for none
    Endwith
  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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform