Menü im Systray? [NICHT GELÖST]
Übersicht

BadDeathBetreff: Menü im Systray? [NICHT GELÖST] |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Guten Abend!
Also ich wollte eine Programm schreiben, dass sich dann in den Systray setzt. Bei einem Rechtsklick soll das übliche Popup-Menü kommen. Doch wie stell ich das an? Mit der ggTray.dll aus dem eng. Forum geht es nur ohne Menü. Die einzige Möglichkeit, die mir einfiele ist dann ein extra Fenster zu erstellen, was beim Rechtsklick geöffnet wird und dann das Menü selbst bastelt ist, erscheint mir allerdings etwas umständlich. Gibt es noch eine andere Variante? Danke schonmal ![]() |
||
-~= real coders just code in binary =~- |
- Zuletzt bearbeitet von BadDeath am Mo, Dez 22, 2008 23:13, insgesamt 2-mal bearbeitet
FWeinbehemals "ich" |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Also eig ist die Dll ziemlich gut Dokumentiert und es geht mit der Dll. Ich will ja mal nicht so sein ![]() Hier nochmal die Userlib: Code: [AUSKLAPPEN] ;Declarations file for ggTray.dll ; ; an individual event is in the following format: ; EVENT_TYPE|MOUSEX|MOUSEY ; ; a list of events is a series of the individual event format seperated by newlines ; ; EVENT_TYPE can be the following: ; 1 - left click ; 2 - left double click ; 3 - right click ; 4 - right double click ; 5 - middle click ; 6 - middle double click ; ; .lib "ggTray.dll" ; attaches the passed window handle to the tray icon and initializes the icon info ggTrayCreate%(hWnd%):"_ggTrayCreate@4" ; shows the icon in the task tray ggTrayShowIcon%():"_ggTrayShowIcon@0" ; hides the icon in the task tray ggTrayHideIcon%():"_ggTrayHideIcon@0" ; sets the tooltip for the icon ggTraySetToolTip%(cToolTip$):"_ggTraySetToolTip@4" ; gets the tooltip of the icon ggTrayGetToolTip$():"_ggTrayGetToolTip@0" ; return 1 if visible, 0 if not ggTrayIsVisible%():"_ggTrayIsvisible@0" ; sets the icon used based on the file passed. 1 if successful, 0 if not. ggTraySetIconFromFile%(cIcoFile$):"_ggTraySetIconFromFile@4" ; sets the icon used based on an icon handle. 1 if successful, 0 if not. ggTraySetIconFromHandle%(hIcon%):"_ggTraySetIconFromHandle@4" ; destroys everything setup with ggTrayCreate and removes the icon ggTrayDestroy%():"_ggTrayDestroy@0" ; clears all events from the queue ggTrayClearEvents():"_ggTrayClearEvents@0" ; clears the passed event from the queue (one-based) ggTrayClearEvent(nEvent%):"_ggTrayClearEvent@4" ; returns a CRLF delimited list of events and clears the queue ggTrayReadEvents$():"_ggTrayReadEvents@0" ; returns the passed event and removes it from the queue ggTrayReadEvent$(nEvent%):"_ggTrayReadEvent@4" ; returns a CRLF delimited list of events but does not clear the queue ggTrayPeekEvents$():"_ggTrayPeekEvents@0" ; returns the passed event but does not remove it from the queue ggTrayPeekEvent$(nEvent%):"_ggTrayPeekEvent@4" ; returns the event # of the first left click encountered ggTrayPeekLeftClick%():"_ggTrayPeekLeftClick@0" ; returns the event # of the first left double click encountered ggTrayPeekLeftDblClick%():"_ggTrayPeekLeftDblClick@0" ; returns the event # of the first right click encountered ggTrayPeekRightClick%():"_ggTrayPeekRightClick@0" ; returns the event # of the first right double click encountered ggTrayPeekRightDblClick%():"_ggTrayPeekRightDblClick@0" ; returns the mouse X of the event passed ggTrayEventMouseX%(nEvent%):"_ggTrayEventMouseX@4" ; returns the mouse Y of the event passed ggTrayEventMouseY%(nEvent%):"_ggTrayEventMouseY@4" So und hier mal mal ein kleines Beispiel: Download ich hoffe ich konnte dir Helfen mfg ich |
||
"Wenn die Menschen nur über das sprächen, was sie begreifen, dann würde es sehr still auf der Welt sein." Albert Einstein (1879-1955)
"If you live each day as if it was your last, someday you'll most certainly be right." Steve Jobs |
BadDeath |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Danke, aber das Icon habe ich ja schon in der Taskleiste - das Beispielprogramm habe ich bereits. Doch mir fehlt eben ein PopUp-Menü und diese DLL bietet keine Funktionen dafür. | ||
-~= real coders just code in binary =~- |
FWeinbehemals "ich" |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hast mal mein Beispiel gestartet, und mit der Rechten Maustaste auf das TrayIcon geklickt ?
mfg ich |
||
"Wenn die Menschen nur über das sprächen, was sie begreifen, dann würde es sehr still auf der Welt sein." Albert Einstein (1879-1955)
"If you live each day as if it was your last, someday you'll most certainly be right." Steve Jobs |
BadDeath |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Entschuldigung - Mein Fehler! ![]() Ich dachte, dass du das Beispiel aus dem Forum verlinkt hättest. Nun wäre das Problem dank dir doch gelöst. --------------------------- Das ist ja BlitzPlus, aber ich arbeite mit BB3D, da sieht das dann doch anders aus ![]() Also wäre nett, wenn mir doch nochmal Jemand helfen könnte, |
||
-~= real coders just code in binary =~- |
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group