Autor Beitrag
delphinia
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

XP Pro Sp2
Delphi 5 Standard
BeitragVerfasst: Do 16.02.06 22:09 
Hallo ahbe hier nun alles mögliche zu WM_SysCommand gelesen und Probiert.

Leider lässt sich das Element einfach nicht verschieben!

meine Versuche sind:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Shape1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
Begin
ReleaseCapture;  
  Shape1.perform(WM_SysCommand, $F012, 0);  
end;


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Shape1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  ReleaseCapture;
  Shape1.perform(WM_SysCommand, $F012, 0);
end;



gebe ich aber das hier mal ein
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  ReleaseCapture;
  Form1.perform(WM_SysCommand, $F012, 0);
end;


geht das sofort ohne Probleme


Wo ist mein Denkfehler?


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Do 16.02.2006 um 22:10
Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Fr 17.02.06 08:47 
Entschuldige bitte aber wovon redest du genau? Von Drag&Drop oder einer WYSIWYG Funktionalität?
Ich nehme an du meinst Letzeres wie in www.dsdt.info/tipps/?id=449

Und da streht das ja mit Sender, ich weiß nicht ob du das richtig gemacht hast indem du direkt das Shape benutzt :(
delphinia Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

XP Pro Sp2
Delphi 5 Standard
BeitragVerfasst: Fr 17.02.06 12:01 
das Shape ist nur zum TEst kann meinetwegen auch nen Button sein!

Es geht um das Verschieben von !Objekten" wärend der Laufzeit!
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Fr 17.02.06 16:26 
Ich bin mir nicht sicher aber ich glaube Shapes wurden unter Win anders organisiert, probier vielleicht wirklich mal einen Button oder so...