DanTheMan Contributor


Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Mon Apr 29, 2002 12:22 pm Post subject: Blinking TaskIcon ? |
|
|
Anyone knows howto get a flicker free blinking Taskicon ?, the code snippet below works, although its not very nice looking at a flickering status bar... Is there another way to solve this problem ? DIALOG SHOW & HIDE does not work on a TASKICON dialog element.
| Code: |
OPTION decimalsep,.
.
.
.
DIALOG CREATE,Blinking Taskicon,,,,
DIALOG ADD,TASKICON,Ledon,@windir(S)\Ledon.ico,TooltipText
DIALOG ADD,TASKICON,Ledoff,@windir(S)\Ledoff.ico,TooltipText
DIALOG disable,Ledoff
:Evloop
wait event,0.3
%e = @event()
goto %e
:Timer
Rem Blinking TaskIcon
if %%Ledon
DIALOG disable,Ledoff
DIALOG enable,Ledon
%%Ledon =
else
DIALOG disable,Ledon
DIALOG enable,Ledoff
%%Ledon = on
end
goto Evloop
.
.
.
|
Tackar !
DanThe... |
|