Link to home
Start Free TrialLog in
Avatar of AngryC
AngryC

asked on

Is it possible to design my Delphi app interface in HTML?

Hello,

I am wondering if it's possible to use HTML (e. g. using IWebBrowser) to create a Delphi app that intracts with the database?

If so, how this can be done?

Thanks.
Avatar of aikimark
aikimark
Flag of United States of America image

Can you elaborate on what you'd like to happen?  You question is devoid of details.

There is an emerging WinFX/Longhorn standard, XAML, that is supposed to define a user interface.  However, I don't know how you would use this with Delphi.  There seems to be some similarity between XAML and the Delphi .dfm file (from the literature).

Here are some XAML references:
http://www.xaml.net/
http://www.ondotnet.com/pub/a/dotnet/2004/01/19/longhorn.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnintlong/html/longhornch03.asp
using ASP.NET in Delphi 8/2005/2006 you can.. or Intraweb
basically anything you can make you win32 / .net app do you can make your asp.net app do by coding in html/pascal

http://www.atozed.com/intraWeb/
The IWebBrowser browser itself will not do anything more that just displaying the HTML files.

If you want to make your application work you will need a web server to serve these HTML files. For e.g. when you click submit button, all the fields on your form will be available in the POST parameters, which you can handle serverside.

If this Delphi application will just some ready web site - why not, you can integrate it. Otherwise - it is useless.
Avatar of Kunfufaresi
Kunfufaresi

hello,

if you use web browser as interface you must create teh html files and load them into the system but afterwards you can ues the go event to capture clicks easily and act accordingly. for instance you could say a href="mycode:open(table1)" when user clicks on a link you search for mycode: if you find it you interpret the rest of the link and make the browser go to another file:///c:\... which you would already have created. getting for values is also similar instead of go event you would work on the post event.
The answer is in your question: you can use IWebBrowser for UI in your application. For example, MonarchSearch (which developers team leadr I am) uses it (http://www.monarchsearch.com)
I would NOT delete the question as it contains potentially useful information
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial