Delphi to Web

Delphi to Web: Running a Delphi Application from a Web-Browser

Delphi to Web: Running a Delphi Application from a Web-Browser

Take your software written in Delphi to web, in minutes!

In this article, we will show you how to adapt your Delphi application, Windows-based, so you can run it in the cloud (as if it was 100% HTML5) with Thinfinity VirtualUI.

If you’re new to VirtualUI, you should start reading the product description.

If you are ready to convert your Win32 apps written in Delphi into a pure web app, let’s start!

Below you’ll find the link to download the example app: https://www.cybelesoft.com/support/files/DemosVUI/VCLFileTest.zip

A previous setup of Thinfinity® VirtualUI is required. Click here for further instructions about how to install and register Thinfinity VirtualUI.

Transform your legacy Delphi app into HTML5

First, we will see how to start the app within the development environment.
1. Open Delphi.
2. Open the application’s project.
3. Add the VirtualUI_AutoRun unit to the ‘Uses’ clause of the project source file. This unit will typically be located in the C:\Program Files (x86)\Thinfinity\VirtualUI\dev\Delphi folder.

 Thinfinity VirtualUI code, screenshot example
4. Compile the program and run it in debug mode.

You will see this message:

Welcome message Thinfinity VirtualUI, screenshot example

If you press the ‘Start Web Browser’ button, a web browser will open pointing to the application. The application will also open in desktop mode.
NOTE: You may need to register a trial license for the VirtualUI Development Server, if you need help with this point contact us.

5. Alternatively, choose to not show the message and observe on the Windows tray bar that the Thinfinity VirtualUI Development Server icon will appear.

VirtualUI tool bar, Screenshot example

6. Right-click on the icon, and after that click on the ‘Open Web Browser’ menu.

A Web browser window will open and your application will be running inside.
Running a Delphi Application in a Web-Browser

Now you can build the .exe of the app and add it to VirtualUI’s server manager.

Continue reading: https://blog.cybelesoft.com/how-to-virtualize-applications/

Have any questions?

Book a call today to learn more about how Thinfinity® can help your organization. We are always available to guide you and provide the best solution based on your specific needs.

8 Comments

yona
Reply
December 18, 2024 at 11:51 pm

Subject: Assistance Needed with Modal Form Refresh Issue in Thinfinity VirtualUI

Dear Thinfinity Support Team,

I hope you’re doing well. I’m currently experiencing an issue with Thinfinity VirtualUI when displaying a modal form from a Delphi application. The situation is as follows:

The Delphi application runs on a server and is presented through Thinfinity VirtualUI.
When the browser tab displaying the application is minimized or not visible and a modal form is opened during that time, the modal does not appear when the tab is restored.
Although the modal form is logically on top and even accepts input (i.e., I can type into fields), it is not visible onscreen until some action forces a redraw.
I’ve attempted various solutions, including calling BringToFront and Repaint on the modal form, but the issue persists. My goal is to ensure the modal form is clearly visible once the browser tab is brought back into view.

Could you please advise on any known workarounds, configuration settings, or best practices to ensure the UI fully refreshes and displays the modal form after the browser tab is restored?

Thank you for your time and assistance. Any guidance would be greatly appreciated.
please also respond in email

    Luke Gileno
    Reply
    December 23, 2024 at 2:44 pm

    Hi Yona, Thank you for reaching out through our site. I see that you’re already in touch with our technical support team. They’ll continue working with you to address the issue. If there’s anything else I can assist you with, please don’t hesitate to let me know. Wishing you a wonderful end of the year! Best regards.

Dmitry
Reply
November 8, 2022 at 9:00 pm

Does the VirtualUI technology support DevExpress VCL built applications?

    Nick
    Reply
    November 8, 2022 at 9:09 pm

    Hello Dmitry,

    Thank you for contacting us.
    Yes, Thinfinity VirtualUI does work perfectly with DevExpress VCL built applications. If you would like to know more about it, or have more questions, please email us to [email protected].
    You can also call us to +1 302-892-9625.
    Do not hesitate to contact us again.

    Best regards,

    Nick

Józef
Reply
June 27, 2019 at 11:29 am

Hello,
Is it possible to change a flag that I have may application run in standalone mode like I was before adding VirtualUI_AutoRun in my project source. And If I want debug the program in the web mode I could change the flag to the previous value. Thanks in advance.
Josef

    Josef
    Reply
    July 1, 2019 at 8:43 pm

    Thanks to Herman from Cybelesoft support I managed to figure this out. I changed VirtualUI_AutoRun.pas in the initialization section like this ” if ParamStr(1) = ‘-web’ then VirtualUI.Start();”. This way, whenever I want to start my exe under VirtualUI, I run it like “MyApp.exe -web”.
    Kind Regards,
    Josef

Andrew Wetmore
Reply
June 6, 2019 at 5:40 am

I clicked that “Do not show again” option and now regret it. How do I undo that setting?

    Cybele Support
    Reply
    June 10, 2019 at 9:39 pm

    Hi Andrew,
    Thanks for your comment.
    To restore this dialog you have to edit Windows Registry. You’ll need to ren ‘regedit’ and navigate to “HKEY_CURRENT_USER\Software\Cybele Software\Thinfinity\VirtualUI”. Here you must delete FirstTimeDialog.
    Don’t hesitate to contact [email protected] if you need any further assistance.

Add Comment

Thinfinity_logo

Get a Demo

Experience how Universal ZTNA with Thinfinity® integrates with VDI and DaaS for unmatched security and flexibility.

Blogs you might be interested in

<span>Application Modernization</span>, <span>Delphi</span>, <span>Developer</span>, <span>HTML5 Conversion</span>, <span>Independent software Vendor (ISV)</span>, <span>Secure Application Delivery</span>, <span>Thinfinity VirtualUI</span>