tommesbx Posted July 2, 2003 Posted July 2, 2003 Quite a tricky one here: for my application I need one form on top of another, but both should be look like they're active. My problem here: I declare the form on the top to be topMost, but if it loses its focus to the one behind, it also changes the color of the titlebar from blue (active) to grey (inactive). But I want the form look like they're both active, no matter which one got the focus. MDI and the topMost-Value didn't help me out here, because one form always loses its focus. So I'm looking for a workaround: if only I could change the color of the titlebar of the background form to blue, so that it looks like it is focused, I'd propably get what I want. But since there's no property to do this, I'm stuck. Anyone knows how to solve my problem? Thanks in advance. Quote
*Experts* Nerseus Posted July 2, 2003 *Experts* Posted July 2, 2003 Other than custom drawing, I can't think of any way to do what you want. Windows has the concept of a focused window per process (or thread - I'm not sure) and there's no built-in way around that. You *might* be able to do it by putting the second form in another thread but that seems like a lot of work. What's wrong with one window looking active and the other not? I like to know which window has focus without having to scan a form for the little blinking cursor to tell me. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.