Applying focus to an embedded window

Posted by Peter van Dam on 06-Aug-2013 05:39

You would think this is easy but it looks like it is anything but.

I have an application where some GUI windows are embedded and some are not.

Each of these windows has a 'Windows' menu that when dropped down shows all Window titles in the application (using SESSION:FIRST-CHILD etc). So this shows both embedded and non-embedded windows.

Simply applying focus to the GUI Window does not bring focus to any embedded window (at least not when it is embedded in an MDI FORM using the UltraTabbedMDIManager).

However, it does not seem to be trivial to find out the FORM of an embedded window. Or am I missing something?

All Replies

Posted by asthomas on 06-Aug-2013 05:49

I am out of the office August 6th 2013. I will not be checking my mail and phone on a regular basis, but will reply to your mail as soon as I can.

If you need support from appSolutions, please send your mails to

If you need Roundtable support, please send mails to :

Jeg er væk fra kontoret indtil den 6. august 2013, og checker ikke mail og telefon regelmæssigt. Jeg vil dog svare på din mail så snart som muligt.

Hvis du har behov for support, kontakt venligst, så vender vi tilbage så snart det er muligt.

Administrative henvendelser kan ske til :

Med venlig hilsen / Regards

Thomas Hansen

appSolutions a/s

Posted by cverbiest on 06-Aug-2013 10:13

We store the form object in a variable in the procedure that created window.

We also have a temp-table that contains all active windows. We added the object reference there as well.

The temp-table contains (among others)

  • the window handle
  • the instantiating procedure
  • the object reference

Posted by Peter van Dam on 07-Aug-2013 02:43

Hi Carl,

That's an idea worth considering.



This thread is closed