2005. szeptember 26., hétfő

How to avoid flicker when switching a TForm from fsNormal to fsStayOnTop


Problem/Question/Abstract:

Is there any way to make a form StayOnTop whitout the little flickering it makes when switching from fsNormal to fsStayOnTop?

Answer:

It could be done, but requires some code from your side:

SetWindowPos(MyFormHandle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE +
  SWP_NOMOVE + SWP_NOACTIVATE);

I think you have to call this again when your application is restored from minimized state, or after closing a modal form.

Nincsenek megjegyzések:

Megjegyzés küldése