Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 15.05.06 09:16 
ich weiß nicht ob es hier der richtige platz ist, aber wenn nicht möcht ich mich jetzt schon höflichst dafür entschuldigen!!

also ich will ein programm programmieren das einfach nur eine Leiste am linken Bildschirmrand ist. wenn man mit der Maus hinfährt soll es sich in einer schönen animation auf volle länge "ausfahren". Wenn der Cursor dann ca. 3 sekunden nicht auf dem form ist soll es sich in einer schönen animation "einklappen" so das es wieder zu einer leiste wird!

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 15.05.06 09:33 
Also ne interne Animation gibt es dafür glaube ich nicht(wie aber z.B. die Minimieren Animation). Du musst am besten im MouseMove einen Rücksetz-Timer mit den 3sec aktivieren und einen extra Animationstimer von ~100ms der dann die Animation mit Width:=Width+10; macht.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 15.05.06 09:36 
thx!
hmm ne möglichkeit aber is doch ein bissal rustikal oder???

gibt vl. ne alternative??

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 30.05.06 11:01 
so wie geht das das ich das formular solange ausgefahren beleibt wie wie mouse auf dem form ist?? und wie mach ich das das sobald die Maus 2 sek. lang nicht auf dem form ist es sich wieder einfährt??? hier das programm wo es funktionieren soll aber nicht tut!!!(www.delphi-forum.de/topic_TDT_60606.html)

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 30.05.06 12:16 
Mist dachte TForm hat ein OnMouseLeft, hat es natürlich nicht :roll:
Mir fällt da auf die Schnelle auch nichts anderes ein außer WinAPi aber k.A. wo man da genau ansetzen könnte.

Doch klar warte, du musst eine TTimer für das checken ob die Maus noch drauf ist benutzen(tmrCheckMouse) und einen für die Einroll Animation.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure tmrOnMouseCheck.Intervall(Sender....);
begin
  if not ptinrect(Mouse.CursorPos,form1.clientrect) then tmrAnimation.enabled:=true;
end;


Und in dem setzt du wie gesagt die Height Stück für Stück runter.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 31.05.06 17:11 
ok danke ich werds mal versuchen!!!

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 31.05.06 18:49 
ist ptinrect und clientrect von delphi vorgegeben??

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 31.05.06 18:54 
Ja

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 31.05.06 18:59 
thx
mfg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.