Einzelnen Beitrag anzeigen

Benutzerbild von MGC
MGC

Registriert seit: 15. Mai 2008
Ort: Helsa
106 Beiträge
 
Turbo Delphi für Win32
 
#3

AW: Problem with "stay on top" and application task button

  Alt 11. Jan 2012, 20:58
Hello,

please don't Hide your MainForm, but set it's WindowState to wsMinimized. Then your TaskBar-Button should still be there and while your Modal-Form isn't closed, the user shouldn't be able to maximize the MainForm by clicking on the Taskbutton.

If your StayOnTop-Window is after minimizing not on the top then you can bring it to front again with Application.RestoreTopMosts.

Good luck.
Marc
Programmieren ist wie Chemie:
1. Wenn man alles einfach nur zusammenschmeisst kommt es zu unerwarteten Reaktionen.
2. Wenn es plötzlich anfängt zu qualmen, muss man eben noch mal von vorn anfangen.

Geändert von MGC (11. Jan 2012 um 21:07 Uhr)
  Mit Zitat antworten Zitat