How to create Chrome like application in Delphi which runs multiple processes inside one Window?

I guess basically you would create multiple processes each of which creates a window/form. One of the processes has the master window in which every child window is embedded. That is as simple as calling SetParent. The windows in different processes would talk to each other using an IPC (Inter Process Communication) mechanism like named pipes or window messages.

See this question for an embedding example of using SetParent in Delphi. See this question for an example of using named pipes in Delphi.


Have a look at the Delphi code of HeidiSQL. It's a great open source MySQL client that implements this mechanism.

Read this newsitem that was posted when Chrome was released:

"Google playing catch-up with HeidiSQL?"

:-)

HeidiSQL
(source: heidisql.com)


Harriv, you can use a scheme based on plugins. where you have a main application and this dynamically load news functionality. There are several libraries available here I leave some.

alt text

Frameworks

  • TMS Plugin Framework
  • TJvPluginManager from JVCL
  • Delphi Plugin Framework
  • Hydra

Tutorials

  • Implementing Plug-Ins for Your Delphi Applications
  • How to make a Plugin for Your Application (Source Code)

Bye.