Using a Web Browser Control


To put a web page onto a Dyalog form...


∇ ShowURL(url icon);⎕IO;⎕ML;form;mwb
[1] ⍝ Use the Microsoft Web Browser control
[2] ⎕IO ⎕ML←0 3
[3] form←⎕NEW'Form'(('Caption' 'Display URL')('Coord' 'Pixel')('Posn'(500 500))('Size'(800 800))('IconObj'icon))
[4] mwb←⎕NEW'OCXClass'(,⊂'ClassName' 'Microsoft Web Browser')
[5] 'form.w'⎕WC'mwb'
[6] form.w.(Posn Size)←(0 0)(800 800)
[7] form.w.Navigate2⊂url
[8] form.Wait
     ∇

Sample usage:

ShowURL 'www.dyalog.com' ''

Notes:
Page created 5 February 2009.
Copyright © Dogon Research 2009.