Hello everyone,
I created two programs and later decided to merge them into one program. That was no problem, I just included the second programs forms and files in the first programs project files through the IDE.
The problem is, when the second form is shown, it refuses to relinquish focus. That is, the second form is on top of the first form and if I click the first form's button in the task bar, it does not come to the front like it should.
Details:
I used setwindow to make the second form show in taskbar.
SetWindowLong(self.Handle,
GWL_EXSTYLE, WS_EX_APPWINDOW);
I've tried setting the parent to zero as well as not setting it at all (just going with default).
//self.ParentWindow := 0;
Project Options correctly identifies the first form as the main form for the project.
reddarin
Start Free Trial