![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
||||
|
||||
|
Me voy a responder yo solo:
Código:
var
Desktop: TControlCanvas;
Ax, Ay, Bx, By: Integer;
begin
Desktop := TControlCanvas.Create;
try
Desktop.Handle := GetDC(0);
Desktop.Pen.Mode := pmNotXor;
Desktop.Pen.Width := 2;
Desktop.Pen.Color := clRed;
Ax := Trunc( (Screen.Width - Ancho.Value ) / 2 );
Ay := Trunc( (Screen.Height - Alto.Value ) / 2 );
Bx := Trunc( Ax + Ancho.Value );
By := Trunc( Ay + Alto.Value );
Desktop.Rectangle(Ax, Ay, Bx, By);
finally
Desktop.Free
end;
end;
![]()
__________________
Borland Delphi XE2 // Interbase Server |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Que el usuario dibuje en tiempo de ejecución | Cannabis | Gráficos | 4 | 17-07-2008 21:23:48 |
| Rectangulo de seleccion | gallipi | Gráficos | 3 | 19-06-2008 16:45:11 |
| Mi primer programita en Delphi | JoseFco | Varios | 12 | 05-01-2008 01:44:02 |
| Hacer un programita Delphi | REHome | OOP | 9 | 26-05-2006 20:21:50 |
| soy nuevo y me urge crear un programita en DELPHI | ferchmon | Impresión | 6 | 01-03-2005 13:19:59 |
|