delphi - HTMLHelp in Automation Server -


i have application utilizes vcl style , have found chm files not styled correctly (among other issues). workaround, created com automation server not utilize vcl styles , styled application client app sends necessary parameters (filename, command, topic) automation server. automation server (the main window of hidden) calls hthmlhelp: htmlhelp(getdesktopwindow, fname, acommand, atopic);

the problem viewer appears behind client app if client app compiled in release mode. oddly, viewer correctly appears on top of client app if client app compiled in debug mode.

how can viewer reliably launch on top of client app? of course don't want viewer stay on top if client app clicked -- want expected behavior viewer on top until client app clicked.


Comments