| |
| Showing two forms allowing the first to retain focus |
 |
Is it possible to show a form, but allow the form showing before it to remain focused, and still positioned behind the newly shown form?
The follow code demonstrates showing a non auto-created form without changing the focus of the original form.
uses Unit2;
procedure TForm .Button Click(Sender: TObject);
begin
Form2 := TForm2.Create(Application);
Form2.Visible := FALSE;
ShowWindow(Form2.Handle, SW_SHOWNA);
end;
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|