Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
refresh icon by function/macro
#1
i have a tiny desktop bar with a dialup button and want to
change the icon by status.
so how to refresh an icon on a bar ?

Code:
Select All      Help
str con = "tiscali"
str onico ="$my qm$\online\online.ico"
str offico ="$my qm$\online\offline.ico"
str status = "$my qm$\online\status.ico"
if !IntIsConnected(con)
,cop- offico status
else
,cop- onico status
pi
#2
ok, on my deskbar its
Code:
Select All      Help
men 33190 "DESKBAR"
.

so far so good. but now i have the problem that the online status icon
should only be written when he connection is established.
(i am on 56k because of some unpaid bills :oopsSmile

Code:
Select All      Help
str con = "tiscali"
str onico ="$my qm$\online\online.ico"
str offico ="$my qm$\online\offline.ico"
str status = "$my qm$\online\status.ico"
if !IntIsConnected(con)
,IntDial(con 0)
,if IntIsConnected
,,cop- offico status
,;
else
,IntDisconnect(con)
,cop- onico status
men 33190 "DESKBAR"
pi
#3
Something similar.


Attached Files
.qml   AnimateToolbarButton.qml (Size: 1.28 KB / Downloads: 175)


Forum Jump:


Users browsing this thread: 1 Guest(s)