Autor Beitrag
smepal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win XP, Linux Mandbrake,SUSE 10.1, SUSE 9 PE, DEBIAN, Win 2000 Pro, Win XP Pro
Delphi
BeitragVerfasst: Mi 21.12.05 15:49 
habe folgende zwei proceduren um ein angeklicktes panel mit der mouse zu verschieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
moused := true;
end;

procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
if moused then
begin
panel1.Left := x;
panel1.Top := y;
end;
end;

folgendes problem:
das panel bleibt beim ziehen immer vor anderen komponenten hängen. wie kann ich das verhindern???


Moderiert von user profile iconraziel: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 21.12.2005 um 16:45
DarkHunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 477

Win XP
D3 Prof, D2005 PE
BeitragVerfasst: Mi 21.12.05 16:43 
du musst das Panel auf die unterste Ebene setzten, also z-index = 0 aber der Befehl dafür war anders ;)

_________________
I believe that every human has a finite number of heart-beats. I don't intend to waste any of mine running around doing exercises.
- Neil Armstrong
Codewalker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46



BeitragVerfasst: Do 22.12.05 08:13 
Die Befehle, die darkhunter meint, sind "SendToBack" und "BringToFront". Außerdem fehlt noch ein Mouse-Up, um mouse wieder auf False zu setzen.