1
votes

I want to develop a Web application in Delphi using VCL. I tried UniGUI, but it does not seem to work. Well, it works, but quite not how I wanted. Let me explain.

My problem is that I do want a library whose visual controls expose Handle to them. UniGUI does that, but it's not working correctly - for example, the main form has a Handle set to 0, but a TUniPanel has a different handle and what's more - it's always the same, even if I run the app in another window or tab.

I want to have a control which exposes its Handle correctly, because I need it for the purposes of the application I want to develop.

Do you know any other VCL library which allows me to do that? I tried Intraweb, but it does not seem to solve my problem either.

1
Do you mean that you want to write an application that runs on a browser using Delphi or you want to write an Internet Browser in Delphi?Buhake Sindi
The first one. But I need the GUI of the app to have Handle of its visual controls.Pateman
Are you talking about creating an ActiveX application or one that generates HTML?Steve Mayne
No, look at my comment below.Pateman
TWinControls are only for native or ActiveX (native DLL) programs. Try using different classes (say, use IntraWeb) and generate the HTML. For those classes, there will be different ways to achieve whatever it is you're trying to do with a Handle property. A Handle is only valid on Windows.David

1 Answers

2
votes

The only way I know that a web browser could host VCL code would be through an ActiveX. I wouldn't really advise you to take that approach.