Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser control
Message
De
26/08/2009 09:05:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01420704
Message ID:
01420719
Vues:
82
>Hi all,
>
>I have dropped the web on themed control (available at codeplex) it's all good stuff. However the vertical scrollbar is missing when it should be there. Any ideas how I can force it to show please.
Public oForm
Local lcHTML
oForm = Newobject('HTMLViewerForm')
oForm.Show
With oForm.htmlviewer
  .navigate2("about:blank")

  TEXT TO lcHTML noshow
<html>
<body scroll="no">
Remove <font color=#FF0000>scroll="no"</font> from body element<br><br>
<input
  type="button"
  value="Click here to toggle scroll bar"
  OnClick='return body.scroll=(body.scroll=="yes"?"no":"yes")'/>
</body>
</html>
  ENDTEXT

  .Document.Write(m.lcHTML)
Endwith

Define Class HTMLViewerForm As Form
  Height = 500
  Width = 800
  Add Object htmlviewer As OleControl With ;
    height = 500, Width = 800, Anchor=15, ;
    oleclass = 'Shell.Explorer'

  Procedure htmlviewer.Refresh
    Nodefault
  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