Autor Beitrag
LinzerASK
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:02 
hi ich hätte ne frage,..wie könnte ich das programmieren ..... mit 4 timern... die dann linien an alle 4 setien schicken..

damit das ganze blatt dan voll wird
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 23.03.06 18:05 
Sorry, aber ich hab keinen blassen Schimmer, was du meinst... du willst 4 Linien zeichnen? Mit Timern?...

AXMD
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 23.03.06 18:07 
Bitte formuliere doch dein Problem mal etwas konkreter, und ein paar '...' weniger würden auch net schaden :twisted:
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:09 
also!

1.) ich möchte mir gerne ein programm erstellen um meine move und line to kenntnisse zu verbessern

2.) naja und starten sollte es in der mitt, also die linien.
also 4 timer für je ein viertel

3.) na ja mit clientwidth div 2 , clientheight div 2 komme ich in die mitte der form

wie soll ich weiter machen?
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 23.03.06 18:11 
Am besten setzt du erstmal den Startpunkt deiner Linien mit MoveTo in die Mitte der Form.
Dann zeichnest du diese mit LineTo in die Ecken deiner form, wenn ich dich richtig verstanden hab.

//Edit: oder sollen soviele Linien gezeichnet werden, dass die ganze Form voll ist?
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:31 
na ja so das jeder timer 1/4 zeichnet
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 23.03.06 18:36 
Mal sone Frage: wozu brauchst du das???
Sonst sollte das, was ich dir gesagt hab ausreichen :roll:
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:37 
ich möchts einfach machen!!!
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 23.03.06 18:38 
achso.. :roll: sonst nochwas unklar? :wink:
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:44 
ja wie soll ich bitte die linien zeichnen lassen
Vera
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 82

WinXP Home
Delphi 2005 Personal
BeitragVerfasst: Do 23.03.06 18:46 
Mit LineTo auf der Canvas des Forms. Das wäre das einfachste. ;-)
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 18:57 
ja gut ich prog mal für einen timer...
dann stele ich den code rein
LinzerASK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

WIN XP
Delphi 4, Delphi 2005
BeitragVerfasst: Do 23.03.06 19:21 
ich mache lieber etwas leichteres...

wie kann es so machen, das von jeder ecke der form linien weggezichnet werden

für die linke , obere habe ich es bereits programmiert

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
canvas.moveto(0,panel1.height);
canvas.lineto(form1.clientwidth,endzeile);
if endzeile<clientheight-5 then
                               endzeile:=endzeile+5
                           else
                               begin
                               timer1.enabled:=false;
                               //form1.canvas.Pen.color:=$FFFFFF;
                               timer2.enabled:=true;
                               end;


panel1 liegt oben an der form an! align = top

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt