PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → System Tray
System Tray
Débuté par Marius van der Walt, 30 nov. 2004 12:30 - 5 réponses
Posté le 30 novembre 2004 - 12:30
Hi Everyone
I would like to move my app to the system tray.
I know that there is a cSystray class available but WD8 recons it is too old when the program is run.
There are commands to place an Icon in the system tray, but I don't know how to remove the app from the TASKBAR.
Any help will be appreciated
Regards
Marius
Posté le 30 novembre 2004 - 14:03
Hello Marius,
it's very simple, set the window property "Hidden" to true.
Best regards
Raimund
Hi Everyone
I would like to move my app to the system tray.
I know that there is a cSystray class available but WD8 recons it is too old when the program is run.
There are commands to place an Icon in the system tray, but I don't know how to remove the app from the TASKBAR.
Any help will be appreciated
Regards
Marius



http://www.invitec.com
Posté le 30 novembre 2004 - 14:37
Hi Raimund
Thank you. The correct code to remove application is:
WindowName..Visible=False
Regards
Marius
Hello Marius,
it's very simple, set the window property "Hidden" to true.
Best regards
Raimund
Hi Everyone
I would like to move my app to the system tray.
I know that there is a cSystray class available but WD8 recons it is too old when the program is run.
There are commands to place an Icon in the system tray, but I don't know how to remove the app from the TASKBAR.
Any help will be appreciated
Regards
Marius
Posté le 02 décembre 2007 - 20:37
Hello all,

DISCLAIMER: Total newb to windev ;-)

I searched the forum / web and did not find anything.

I have an app minimized to the sys tray and have a popup menu working on right click, but am trying to open the minimized window on double click. Does anybody know how to trigger double click when the icon is in sys tray please?

Thanks in advance

Scott

<<<>>> My code
// Manage TaskBar Icons
// Minimized WinSize=1
IF WinSize (MyWindow) = 1 THEN
SysIconAdd("C:\My Projects\sbp_files\paragon.ico", MENU_PopupMenu2, "I am minimized")
WIN_Main..State=Invisible
ELSE
SysIconDelete()
WIN_Main..State=Active
END
Posté le 04 décembre 2007 - 20:29
Hi Scott,

define in Global Declaration :

CONSTANT

WM_LBUTTONDBLCLIK = 515

END

The last parameter in SysIconAdd(...) is the name of a procedure.

Write in this procedure :

Procedure name_of_the_prcedure(tx)

IF tx = WM_LBUTTONDBLCLIK THEN WinStatus(name_of_the_window,Active)

Christoph

>Hello all,

DISCLAIMER: Total newb to windev ;-)


>I searched the forum / web and did not find anything.

I have an app minimized to the sys tray and have a popup menu working on right click, but am trying to open the minimized window on double click. Does anybody know how to trigger double click when the icon is in sys tray please?


>Thanks in advance

Scott


><<<>>> My code

// Manage TaskBar Icons


>// Minimized WinSize=1

IF WinSize (MyWindow) = 1 THEN


> SysIconAdd("C:\My Projects\sbp_files\paragon.ico", MENU_PopupMenu2, "I am minimized")

WIN_Main..State=Invisible


>ELSE

SysIconDelete()


> WIN_Main..State=Active

END
Posté le 07 décembre 2007 - 16:45
Christoph,

Perfect that worked great thanks !

Scott

>Hi Scott,

define in Global Declaration :


>CONSTANT

WM_LBUTTONDBLCLIK = 515


>END

The last parameter in SysIconAdd(...) is the name of a procedure.


>Write in this procedure :

Procedure name_of_the_prcedure(tx)


>IF tx = WM_LBUTTONDBLCLIK THEN WinStatus(name_of_the_window,Active)

Christoph


>>Hello all,

DISCLAIMER: Total newb to windev ;-)


>>I searched the forum / web and did not find anything.

I have an app minimized to the sys tray and have a popup menu working on right click, but am trying to open the minimized window on double click. Does anybody know how to trigger double click when the icon is in sys tray please?


>>Thanks in advance

Scott


>><<<>>> My code

// Manage TaskBar Icons


>>// Minimized WinSize=1

IF WinSize (MyWindow) = 1 THEN


>> SysIconAdd("C:\My Projects\sbp_files\paragon.ico", MENU_PopupMenu2, "I am minimized")

WIN_Main..State=Invisible


>>ELSE

SysIconDelete()


>> WIN_Main..State=Active

END