Is there any idea to show the app icon in system tray rather than in taskbar?
Working in system tray
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
alemrantareq
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Working in system tray
Hi everybody,
Is there any idea to show the app icon in system tray rather than in taskbar?
Is there any idea to show the app icon in system tray rather than in taskbar?
-
alemrantareq
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
Thanks SparkOut & Mark for your replies.
I've seen the samples before creating this topic. I just want to create a simple clock which will show its icon in the system tray but not be hidden and not show the taskbar icon. So, I've made the following stack script -
Problem is that if I make the stack palette, it doesnt update the time, and it shows taskbar icon if the stack is normal.
Mark's sample is fantastic but its made by "hide" command. I dont want to hide my stack rather it will float above the window.
I've seen the samples before creating this topic. I just want to create a simple clock which will show its icon in the system tray but not be hidden and not show the taskbar icon. So, I've made the following stack script -
Code: Select all
on preOpenstack
set the flag of me to not the flag of me
if the flag of me then startpolling
end preOpenstack
on startPolling
palette this stack
set the icon to 1009
set the raisepalettes to true
set the iconMenu to "Close"
put the time into fld "time"
if the flag of me then send "startPolling" to me in 100 millisecs
end startPolling
on iconMenuPick theItem
if theItem is "Close" then quit
end iconMenuPickMark's sample is fantastic but its made by "hide" command. I dont want to hide my stack rather it will float above the window.
Use a mainstack and substack approach.
If you make the display card in the substack and set it to be a palette, and the mainstack a normal stack which you hide with the example techniques shown that should work.
Put the polling handlers in the mainstack so that they remain active while minimised to tray, and just extend the lineto
If you make the display card in the substack and set it to be a palette, and the mainstack a normal stack which you hide with the example techniques shown that should work.
Put the polling handlers in the mainstack so that they remain active while minimised to tray, and just extend the line
Code: Select all
put the time into fld "time"Code: Select all
put the time into fld "time" of card "displayCard" of stack "timerSubstack"-
alemrantareq
- Posts: 203
- Joined: Wed Jul 23, 2008 8:46 am
-
Janschenkel
- VIP Livecode Opensource Backer

- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
There are two things you can try: either set the systemWindow of your palette stack to true so that it floats above all other windows, or set the style of your stack to modeless to prevent the stack from appearing in the taskbar.
HTH,
Jan Schenkel.
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
