Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pick a child window? 1

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
Right now, when i want to access and do some manipulation on a child window, I use:
var
Child: TMDIChild;
begin
Child := ActiveMDIChild as TMDIChild;

That selects the foremost child displayed. The problem I am encountering is that I have a requester that pops up. I want to enter data in this requester that is not really a child window and the data entered need to affect the window behind it. If i use the above statement, the requester is the activechildwindow. How do i find out what is the child behind the requester?
I hope i'm making sense.
Thanks.
PO
 
the requester should be a non MDI modal form, then will the above statement work...

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Thanks, I changed it from fsstayontop to fsnormal and it is working. I wonder why it did not work with fsstayontop. It is not a mdi window.
PO
 
you don't need the fsstayontop. just show the requesterform with .ShowModal instead of .Show, this will disable all the windows except the requester (this means the user can no longer put another MDI child into focus)

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top