From: Frazier, J. J. <Joe...@Pe...> - 2002-03-26 01:03:58
|
> -----Original Message----- > From: Laurent ROCHER [mailto:ro...@cl...] > Sent: Monday, March 25, 2002 5:54 PM > To: per...@li... > Subject: Re: [perl-win32-gui-users] Add ActiveX Hosting to Win32::GUI >=20 >=20 > Hello, >=20 > I have put a new release with some improvement, some doc=20 > and add a new > method Release. >=20 > See : http://perso.club-internet.fr/rocherl/Win32GUI.html >=20 > The Release Method must be call before all the window was=20 > destroy. The > best place is in the _Terminate handler. It's necessary for=20 > my container > class to release all the interface on the control before the=20 > activex window > was destroy. I don't know actualy how automaticly detect that. >=20 > > I downloaded Laurent's AxWindow package, and I created a=20 > wrapper for a > > WebBrowser object that acts like a regular=20 > Win32::GUI::Window (that is, > you > > don't need to worry about the special conventions for=20 > calling methods and > > registering events - you can call methods directly and if=20 > you define a sub > > for an event, the event will automatically be registered.) =20 > I'll put it up > > somewhere this week, but if anybody's interested and=20 > impatient, I'll send > it > > to you by email. >=20 > It's exactly what i have in mind. > The goal of AxWindow package is to be a base class for=20 > derived package. > I made one for DHTMD Edit control (see new samples in source zip). >=20 > I have made an error in my sample with WebBrowser. > I have put : -control =3D> "SHDocVw.WebBrowser", > but the correct way is : -control =3D> > "{8856F961-340A-11D0-A96B-00C04FD705A2}" >=20 > Because, by default if the activex was not found, a=20 > webbrowser is open > with a html error page. > In this case SHDocVw.WebBrowser is understand as a=20 > ProgId, but not exist > and not a webbrowser. > The second way is the CLSID (ActiveX numeric identifier) and it's > webbrowser object. >=20 > For list all ActiveX informations and CLSID, it's better to use > microsoft OleViewer utility. > I think it's possible to donwload it from microsoft site=20 > if you don't > have VC++. >=20 > Laurent. >=20 I tested the MSFlexGrid and got it to display. I also tried Excel, but = could not get any methods/properties(access violation errors). I assume = that is because it is not a "real" active X control. =20 Anyway, even if I can't get the Excel to work(my big wish), thanks for = this GREAT addition to Win32::GUI. Adding the ability to embed and IE = control or DHTML editor is awesome indeed! Joe |