Re: Forms: modal and stay-on-top



"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:45645d5d$0$332$e4fe514c@xxxxxxxxxxxxxxxxx
"Tom de Neef" <tdeneef@xxxxxxxx> wrote in message
news:45644d1c$0$334$e4fe514c@xxxxxxxxxxxxxxxxx
[...]
If you've been able to follow me this far: is there an easier way of
keeping the helpForm visible and accessible while opening modal forms
in the application?

If you've ever read the source to TCustomForm.ShowModal, you probably
got the same impression that I did (apart from the urge to re-examine
your breakfast): that Delphi uses its very own, very different way of
making forms modal.

One step in it is 'DisableTaskWindows', a procedure that appears to
walk all the windows of a thread and call DoDisableWindow on them.
Perhaps you could modify this code to not disable the help window?


This doesn't sound appealing.
Luckily, for the MS HTML Help window (which was my concern) I have received
suggestions that seem to work quite well. It involves repositioning the
window in the TOPMOST state. I will follow that path for the moment.
Thank you,
Tom


.