Autor Beitrag
highii
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 08.02.07 21:07 
Hallo,
ich habe ein Form, bei dem der Borderstyle NONE ist. Also es hat KEINEN Rahmen.
Ich möchte nun, dass man es mit der Maus ziehen kann. Also als würde man es am Rahmen ziehen. Wie kann ich es machen? Ich hab schon mit MouseDown und MouseMove probiert, aber es zittert immer über den ganzen Bildschirm.
Könnt ihr mir helfen?
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 08.02.07 21:08 
Einfach mal die Suche benutzen:
Suche in der Entwickler-Ecke FORM, VERSCHIEBEN, BSNONE
2ter Eintrag, 2ter Post!

grüße marc
highii Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 08.02.07 21:10 
Das habe ich schon gemacht, aber bin zu keinem Ergebnis gekommen. :-(
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 08.02.07 21:12 
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 08.02.07 21:14 
Wenn du ins MouseDown sowas schreibst, dann geht das. Ganz sicher ;-)
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  if ssLeft in Shift then
  begin
    ReleaseCapture;
    Perform(WM_SYSCOMMAND, $F012, 0);
  end;
Natürlich muss das in ein MouseDown, was auch ausgelöst wird. Wenn du auf deiner Form ein großes Panel hast, dann muss das in dessen MouseDown-Routine, da dann das Panel diese Nachricht erhält, nciht das Fenster.

_________________
We are, we were and will not be.