Autor Beitrag
ims
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 34

Win 98, Suse 9.0
D5
BeitragVerfasst: Do 23.02.06 14:33 
Hallo :D ,
ich habe ein kleines Problem :oops: . Ich möchte mit zwei editfeldern die Position meines panels verändern, das habe ich so gelöst:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var
  Form1: TForm1;
   ptop,pleft:integer;

procedure TForm1.Button2Click(Sender: TObject);
begin
 pleft:=strtoint(edleft.text);
  panel1.left:=pleft;
  pleft:=strtoint(edtop.text);
  panel1.top:=ptop;

end;


Das Verschieben in der x-richtung(left) geht einwand frei, aber in der y-richtung(top) geht es nicht. Es springt nur an den oberen Rand des Fensters und bewegt sich nicht mehr.
Weiß jemand was ich falsch gemacht habe? Ich würde mich sehr über Hilfe freuen?
MFG IMS :D


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Do 23.02.2006 um 14:44
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 23.02.06 14:36 
Schreibfehler ;)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var
  Form1: TForm1;
   ptop,pleft:integer;

procedure TForm1.Button2Click(Sender: TObject);
begin
 pleft:=strtoint(edleft.text);
  panel1.left:=pleft;
  ptop:=strtoint(edtop.text);
  panel1.top:=ptop;

end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
ims Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 34

Win 98, Suse 9.0
D5
BeitragVerfasst: Do 23.02.06 14:43 
:oops: "Hups",
vielen Dank funktioniert. :D
:dance2: Grüße IMS :dance: