Einzelnen Beitrag anzeigen

Alexander

Registriert seit: 28. Aug 2002
Ort: Oldenburg
3.513 Beiträge
 
Turbo Delphi für .NET
 
#17

Re: CPU-Auslastung

  Alt 19. Aug 2003, 11:00
Versuch mal so:
Delphi-Quellcode:
if (Form1.Left < 0) then
 Form1.Left := 0;

if ((Form1.Left + Form1.Width) > Screen.Width) then
 form1.Left := Screen.Width - Form1.Width;

if (form1.Top < 0) then
 Form1.Top := 0;

if ((Form1.Top + Form1.Height) > Screen.Height) then
 form1.Top := Screen.Height - Form1.Height;
Muss natürlich auch ins WM_Move. Ist allerdings nicht getestet...
Alexander
  Mit Zitat antworten Zitat