![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#20
|
|||
|
|||
gracias!!!ahora. Alguien a usado esto para pantalla completa. uso este codigo pero no me sale... Código:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (HiWord(GetKeyState(VK_MENU)) <> 0) and (Key = 13) then begin if Form1.WindowState = WsNormal then begin Ancho := Form1.Width;//inicialmente tenia errores Con 'Ancho' Alto := Form1.Height; //inicialmente tenia errores Con 'Alto' Label1.Visible := False; Label2.Visible := False; Label3.Visible := False; Label4.Visible := False; MediaPlayer1.Visible := False; BitBtn1.Visible := False; StatusBar1.Visible := False; ScrollBar1.Visible := False; OleContainer1.Visible := False; Form1.BorderStyle := BsNone; Form1.WindowState := WsMaximized; MediaPlayer1.Display := Form1; MediaPlayer1.DisplayRect := rect(0,0,Form1.Clientwidth,Form1.ClientHeight); end else begin Form1.WindowState := WsNormal; Form1.Width := Ancho; Form1.Height := Alto; Form1.Position := PoScreenCenter; Label1.Visible := True; Label2.Visible := True; Label3.Visible := True; Label4.Visible := True; MediaPlayer1.Visible := True; BitBtn1.Visible := True; StatusBar1.Visible := True; ScrollBar1.Visible := True; OleContainer1.Visible := True; Form1.BorderStyle := BsSingle; MediaPlayer1.Display := OleContainer1; MediaPlayer1.DisplayRect := rect(0,0,Form1.Clientwidth,Form1.ClientHeight); end; end; end; Gracias Última edición por SataSoft fecha: 21-01-2007 a las 15:17:48. |
|
|
|