Ver Mensaje Individual
  #2  
Antiguo 27-12-2012
Avatar de nlsgarcia
[nlsgarcia] nlsgarcia is offline
Miembro Premium
 
Registrado: feb 2007
Ubicación: Caracas, Venezuela
Posts: 2.206
Reputación: 21
nlsgarcia Tiene un aura espectacularnlsgarcia Tiene un aura espectacular
_CALI,

Cita:
Empezado por _CALI
Tengo una aplicación MDI con un panel de fondo de contenedor de otros controles, como hago para mantener el panel siempre al fondo de los demas formularios?
Revisa este código:
Código Delphi [-]
procedure TForm1.FormCreate(Sender: TObject);
begin
   SetWindowPos(Self.Handle,HWND_BOTTOM, 0, 0, 0, 0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
end;
El código anterior mantiene el formulario en la última posición del orden Z (Posición más baja), esto garantiza que nunca se superponga a otro formulario.

Revisa esta información:
Cita:
Empezado por Win32 Developer's References

SetWindowPos:

The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order.

BOOL SetWindowPos(

HWND hWnd, // handle of window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning flags
);
Espero sea útil

Nelson.
Responder Con Cita