<< We cover part of both forms with another program. We touch the first form. It comes to the top, but the second is still partially hidden. We want the second form to come to the top also. >>
This is a toughy. I assume both forms are called with the MDI option, and the second form can't be called modally from the first (which would allow only the topmost form to be clicked on, but would, I think, bring the form underneath to the top as well). I think you can call SET_FOCUS on a form. The problem is finding a hook on the first form that will run whenever it is brought to the top, to give you someplace to put the SET_FOCUS call. There are several events in the underlying Delphi form model (such as OnActivate), but they are not exposed in R:Base. Do you know WHERE on the first form the user is going to click? If so, you might want to place some kind of transparent control there that has an ON CLICK event associated with it. The only other thing I can think of is to use a UDF to hack into the first forms WNDPROC to trap the "bring to top" message and transmit it to the second form as well. That would be a very great deal of work for layout payoff, I suspect. -- Larry

