Board index » delphi » Calling Delphi gurus! Need help with setting active child form in MDI app

Calling Delphi gurus! Need help with setting active child form in MDI app

I want to be able to switch between child windows in an MDI app. However,
when I use setfocus, the focus is set, but the Title bar of the
corresponding child window is not highlighted as if you had actually
clicked on the control.

ActiveMDIChild property is Read Only, so I can't set that.

What can I do to get the Title bar to highlight? (set focus does move the
focus there ok)l

Thanks.

 

Re:Calling Delphi gurus! Need help with setting active child form in MDI app


Take a look at the ShowWindow API.

--
Mark Pritchard
-------------
http://www.ozemail.com.au/~pritchma

Robert Reister <fastt...@alliance.net> wrote in article
<01bbaa8e$880aaea0$34e96...@fasttrax.alliance.net>...

Quote
> I want to be able to switch between child windows in an MDI app. However,
> when I use setfocus, the focus is set, but the Title bar of the
> corresponding child window is not highlighted as if you had actually
> clicked on the control.

> ActiveMDIChild property is Read Only, so I can't set that.

> What can I do to get the Title bar to highlight? (set focus does move the
> focus there ok)l

Other Threads