Autor Beitrag
Mindforce
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: Sa 19.05.07 20:07 
Hallo alle zusammen,

ist es möglich ein TLabel in einem MouseDown verfahren zu bewegen?
Hier mit kann ich Buttons und weitere visuelle Objekte bewegen:

ausblenden Delphi-Quelltext
1:
2:
ReleaseCapture;
Button1.Perform(wm_syscommand,$f0120);


Das Problem ist, wenn ich dies bei einem TLabel mache dann sieht das ja wie
folgt aus:

ausblenden Delphi-Quelltext
1:
2:
ReleaseCapture;
Label1.Perform(wm_syscommand,$f0120);


Aber dies fgunktioniert nicht. Das TLabel bleib einfach stuhr auf seinem alten Platz...
Wie kann ich das ändern?

MB

_________________
Our force; in mind.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 20.05.07 14:56 
Nimm TStaticText;

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Mindforce Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: So 20.05.07 18:06 
Voll treffer! Es funktioniert.
Zum wiederholten male... Vielen DAnk :wink:

MF

_________________
Our force; in mind.