Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to bring a child window to the front?


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 1, 2014 10:40 AM Last Post By: Jeff Allan
Jeff Allan

Posts: 6
Registered: 5/24/01
How to bring a child window to the front?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 20, 2014 11:00 AM
My app has a main window and several non-modal child windows.
I need to programmatically cause a child window to be in front of the other child windows.
I would think the following would do this:
childForm->BringToFront();
but it doesn't.

How do I bring a child window to the front of its siblings?
Thanks,

Jeff Allan
Development Environment: C++Builder XE on Windows 7 Pro x64
Deployment Environments: All Windows versions
Graphics Interface: VCL, GDI, LeadTools, OpenGL
Vladimir Shvetsov

Posts: 12
Registered: 2/18/05
Re: How to bring a child window to the front?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 30, 2014 4:25 PM   in response to: Jeff Allan in response to: Jeff Allan
Jeff Allan wrote:
My app has a main window and several non-modal child windows.
I need to programmatically cause a child window to be in front of the other child windows.
try set childWindow->FormStyle to fsStayOnTop.
Jeff Allan

Posts: 6
Registered: 5/24/01
Re: How to bring a child window to the front?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 1, 2014 10:40 AM   in response to: Vladimir Shvetsov in response to: Vladimir Shvetsov
Thanks for the suggestion.
That might work, but it doesn't give me the functionality I need.

However, I revisited the problem in my code and now cannot reproduce it.
BringToFront() is working as expected for me now.
Go figure.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02