Autor Beitrag
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 21.10.02 19:41 
Hi

Wie schaffe ich es, dass wie bei dem msn-messanger, der eigene Statusleisteneintrag blinkt?
Und wie bekomme ich raus ob mein Fenster im Vordergrund...also aktiviert...ihr wisst schon was...ist?

cu

Onz
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 21.10.02 19:46 
Zitat:
Wie schaffe ich es, dass wie bei dem msn-messanger, der eigene Statusleisteneintrag blinkt?

PSDK, MSDN, Delphi (Win32-SDK, evtl.) ->
FlashWindow, FlashWindowEx (in der Hoffnung: du meinst, was ich denke ...)

Zitat:
Und wie bekomme ich raus ob mein Fenster im Vordergrund...also aktiviert...ihr wisst schon was...ist?

GetForegroundWindow, IsWindowVisible (unter Vorbehalt)
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 21.10.02 19:50 
Hi

Und welche Paras brauch ich für FlashWindow?

cu

Onz
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 21.10.02 19:54 
DeCodeGuru is´ nicht da, also muss ich wohl:
PSDK hat folgendes geschrieben:
Parameters
hWnd
[in] Handle to the window to be flashed. The window can be either open or minimized.
bInvert
[in] If this parameter is TRUE, the window is flashed from one state to the other. If it is FALSE, the window is returned to its original state (either active or inactive).
When an application is minimized and this parameter is TRUE, the taskbar window button flashes active/inactive. If it is FALSE, the taskbar window button flashes inactive, meaning that it does not change colors. It flashes, as if it were being redrawn, but it does not provide the visual invert clue to the user.

ausblenden Quelltext
1:
2:
3:
4:
BOOL FlashWindow(
  HWND hWnd,
  BOOL bInvert
);

Müsste aber auch in deiner Hilfe stehen.

Dennoch: bitteschön. :)
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 21.10.02 20:04 
Hi

Erstens: In der Hilfe gibts das ed
Zweitens: Es geht immer noch nicht: Was muss ich genau machen?? :oops:

cu

Onz
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mo 21.10.02 20:18 
Zitat:
DeCodeGuru is´ nicht da, also muss ich wohl:


Habe grade was gegessen :wink:

Zitat:
Erstens: In der Hilfe gibts das ed


In welcher hast du geguckt? In einer muss es die geben, da Mathias sonst keinen Auszug posten konnte. :mrgreen:

Zitat:
Zweitens: Es geht immer noch nicht: Was muss ich genau machen??


Was geht nicht? Bei welchen Problem funtzt etwas nicht. Poste doch mal etwas Code. Dann können wir dir vielleicht etwas besser helfen.

_________________
Viele Grüße
Jakob
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 21.10.02 20:20 
Titel: Hi
Hi

nein, Ich meine welche Paras ich ganu angeben muss, damit mein fenster EINFACH blinkt :?:

cu

Onz

@Jack msn
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 21.10.02 20:26 
ausblenden Quelltext
1:
FlashWindow(Application.Handle,true);					

Weil IMHO das "TApplication"-Objekt für den Taskbar-Eintrag verantwortlich ist. Wenn du dein Form-Handle probiert hast, wird´s wahrscheinlich deswegen nicht geklappt haben.

Ach ja, das Syntaxbeispiel stammt aus dem Platform SDK von Microsoft. Kann ich dir nur empfehlen, Onz. Es ist weitaus aktueller als diese Win32-SDK-Hilfedatei, die bei Delphi dabei ist. Du brauchst halt nur DSL, oder einen Bekannten, der´s zieht und dir schickt, weil´s mit 300meg nicht gerade klein ist.
Da findest du alles, was man zur API-Programmierung wissen sollte, und kostenlos ist´s obendrein.

Link müsste in der Liste von AUQ.de stehen.


Zuletzt bearbeitet von MathiasSimmack am Mo 21.10.02 20:29, insgesamt 1-mal bearbeitet
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mo 21.10.02 20:28 
Als ersten Parameter musst du einfach nur das Handle zu deiner Komponente bzw. einem Fenster angeben und als zweiten Parameter True übergeben.

_________________
Viele Grüße
Jakob
Moritz M. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 21.10.02 20:28 
dange

cu

Onz
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mo 21.10.02 20:29 
nein *rufàlaHomer* :wink:

etwas zu spät.

_________________
Viele Grüße
Jakob