Autor Beitrag
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Fr 23.01.04 21:13 
Hi

Ich will meinen Benutzern erlauben Panels auf meiner Form hin und her zuschieben, dadurch werden halt diverse "Bereiche" später im Ausdruck verschoben. Allerdings möchte ich es dem benutzer ersparen das er alles in mm/cmm eingibt. Daher die Frage ob es eine Komponente gibt die so reagiert, oder ob ich wirklich mit mouseclick etc. arbeiten muß.

Gruß Martin
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Fr 23.01.04 21:15 
Also im Form würde ich einen splitter einsetzen. Einafch im Forum suchen, ist eine Standard-Compo in Delphi.

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
Martin77 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Fr 23.01.04 22:50 
Danke für die Antwort, aber nen Splitter ist nicht das was ich suche, ich möchte das die Komponente wirklich komplett verschiebbar + in der Größe änderbar ist, also eigentlich wie zur Designzeit. So ähnlich wie der QueryBuilder das macht.

Gruß Martin
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Sa 24.01.04 00:39 
Achso - ach ja ... ähm ... keine Ahnung. Hab ich noch nie gebraucht ... und obs da Compos gibt weiß ich auch nicht ... aber vielleicht findest ja was, weil direkt in Delphi gibts, glaub ich, nicht wirklich direkt was simples. Hab mich aber in die richtig noch gar nicht umgeschaun.

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
msphp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20

WIN 2000
D6 Pers
BeitragVerfasst: Sa 24.01.04 14:38 
Du wirst kaum um die Ereignisse

OnMouseDown
OnMouseMove
OnMouseUp
+ einige globale Variablen

herumkommen. Allerdings ist das auch nicht allzu schwer. Es werden Ja die Position des Zeigers Mitgeliefert. Etwa drei bis fünf Zeilen pro Ereignis.
daPimP
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 54
Erhaltene Danke: 1

Win XP
D6, D7
BeitragVerfasst: Mo 07.06.04 20:30 
Hilfe kommt zwar spät aber probier mal das:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure TForm1.Button1MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
{$IFNDEF WIN32}
var
pt : TPoint;
{$ENDIF}
begin //bei gedrückter Shift-Taste kannst du mit der Mauss die Komponente verschieben!
if ssCtrl in Shift then
begin
ReleaseCapture;
SendMessage(Button1.Handle, WM_SYSCOMMAND, 61458, 0);
{$IFNDEF WIN32}
GetCursorPos(pt);
SendMessage(Button1.Handle,WM_LBUTTONUP,MK_CONTROL,Longint(pt));
{$ENDIF}
end;
end;

_________________
watch out ... SySSnapper... coming soon