AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi Wie bei Apple Taskleiste --> in Delphi programmieren
Thema durchsuchen
Ansicht
Themen-Optionen

Wie bei Apple Taskleiste --> in Delphi programmieren

Ein Thema von Christian18 · begonnen am 14. Feb 2006 · letzter Beitrag vom 14. Feb 2006
Antwort Antwort
noch_ein_hannes

Registriert seit: 18. Sep 2003
130 Beiträge
 
#1

Re: Wie bei Apple Taskleiste --> in Delphi programmieren

  Alt 14. Feb 2006, 09:55
Hi,

das Ding im Mac-OSX heist "Dock" und es gibt etliche Tools (Bei Google suchendock windows) für XP
wie z.B. das http://www.openwares.org/. (Downloads/System)

Zu Deiner Frage:

Ein Image besitzt zwar kein MouseOver-Event, aber Du kannst ja das Control unter der Maus
mit Hier im Forum suchenWindowFromPoint() per Timer abfragen:

Delphi-Quellcode:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  P : TPoint;
  h: HWND;
begin
  GetCursorPos(P);

  if (P.x>Left) and (P.x<Left+Width) and
     (P.Y>Top) and (P.Y<Top+Height) then
  begin
    h := WindowFromPoint(p);

    if (h = Img.Handle) AND (Img.Scale < 2) then Img.Scale := Img.Scale + 0.3
    else if (h <> Img.Handle) AND (Img.Scale > 1) then Img.Scale := Img.Scale - 0.3;

  end;
end;

Grüsse,
hannes
- everything is possible -
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:07 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz