Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it possible for Clarion to load a web page within a clarion window?

686 views
Skip to first unread message

egp...@yahoo.com.au

unread,
Jul 1, 2014, 2:30:06 AM7/1/14
to
Hi Everyone

I've asked to investigate if is possible for Clarion to load a web page within a clarion window..

I've already try using OLE Control and hyperlink from capesoft, these work opening in a new web browse window..

Any idea if it is possible?
Thanks appreciate you help

Ely

zone...@gmail.com

unread,
Jul 1, 2014, 6:14:05 AM7/1/14
to
I suggest you make a COM control with WinForms and their Browser control.
You can learn how to make COM controls on ClarionMag. A guy named Wade Hatler has a great 5 part tutorial about making COM controls for clarion. Here are the urls:
http://archive.clarionmag.com/cmag/v7/v7n08dotnetinterop1.html
http://archive.clarionmag.com/cmag/v7/v7n09dotnetinterop2.html
http://archive.clarionmag.com/cmag/v7/v7n09dotnetinterop3.html
http://archive.clarionmag.com/cmag/v7/v7n09dotnetinterop3b.html
http://archive.clarionmag.com/cmag/v7/v7n10dotnetinterop5.html




If you need a new browser with all the new standards ( you got alot of javascript in) you should read this answer how to incorporate a newer browser into winforms:

http://stackoverflow.com/questions/142184/is-there-an-embeddable-webkit-component-for-windows-c-sharp-development

Paul Attryde

unread,
Jul 1, 2014, 8:11:50 PM7/1/14
to
Yes, it's possible.
You can put the IE ActiveX object on a window, then change the
properties of the object to navigate the web page you want.
I have some source around here somewhere, I'll see if I can find it for you.

HTH,
Paul

egp...@yahoo.com.au

unread,
Jul 2, 2014, 12:15:13 AM7/2/14
to
thanks Paul. I added a OLE/OCx in a clarion window but I can't see the IE OCX, I choose 32 Bit and Ocx radio control but I don;t know which one in the object type correspond with IE

egp...@yahoo.com.au

unread,
Jul 2, 2014, 1:22:02 AM7/2/14
to
I'm using the following code to setup my OCX control but it's still opening a web browser to show it

WebBrowser = CREATE(0,CREATE:OLE)
WebBrowser{PROP:Create} = 'InternetExplorer.Application'
WebBrowser{'Visible'} = True
UrlString = 'http://google.com.au'
WebBrowser{'Navigate(' & UrlString & ')'}


I want to see google web page inside my Clarion window, Is it possible??

sand...@yahoo.com

unread,
Jul 2, 2014, 5:35:14 PM7/2/14
to
!I want to see google web page inside my Clarion window, Is it possible??
!Hi.
!You have to populate OLE/OCX control template in your window.
!Set 32-bit check box and OCX control type.
!Choose Microsoft Web Browser for object type (Shell.Explorer.2 will be displayed).
!Fill your UrlString with 'www.google.com' :).
!Reference OLE/OCX control using "Use" attribute of the control.
!(Don't forget question mark!!!):
?MyOCX{'Navigate(URL="' & Clip(URLString) & '",Flags=' & 14 & ')'} !14 = No History, try 0 but its flaky
SELECT(?URLString)
!See
!http://www.attryde.com/clarion/cw_ieocx.htm
!for more details (Back, Forward, Home actions and similar).

!Hope it helps.
!Zoran.

!PS It is also possible to create IE ocx control in source code, I do not know details.



sand...@yahoo.com

unread,
Jul 2, 2014, 5:56:12 PM7/2/14
to
You can fill URLString with path to files which resides on your local disks or flesh media. Some of extensions (but not all) will be shown in ?ocx control; the rest will be shown in original application for these extensions.

On http://www.tek-tips.com/viewthread.cfm?qid=1641441
is shown how to show/display Google map on IE ocx xontrol :).
Very interesting and usefull example.
Regards, Zoran.

egp...@yahoo.com.au

unread,
Jul 2, 2014, 9:31:43 PM7/2/14
to
thank Zoran, it's working very good!!

0 new messages