Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Icon ShowProgress
#1
Is possible showprogress in icon like http://www.codeproject.com/KB/system/NotifyIcon.aspx in QM?
#2
Macro TrayProgress help
Code:
Copy      Help
;Tray icon that shows progress of something.

;EXAMPLES

#compile "__TrayProgress"
TrayProgress x.Init
x.AddIcon("empty.ico")

int i
for i 0 40
,x.Update(i*100/40)
,0.2

x.Update(100 " :)")
1


Attached Files
.qml   TrayProgress.qml (Size: 2.29 KB / Downloads: 397)
#3
Thank you very much. " :)"
#4
I like the smiley when it is done. Cute.
#5
Dear Gintaras,

Let me ask a short question : Suppose you have updated with TrayProgress.Update. Which is the best way to restore an earlier icon on this button, previously set with Tray.AddIcon. I tried Tray.ReplaceIconHB but the result is a black icon. Thank you for any advice. Best regards.
#6
Macro TrayProgress example with 2 icons
Code:
Copy      Help
;This example adds a static icon, then shows progress in its place, then restores the static icon.

#compile "__TrayProgress"
TrayProgress x.Init

;add 2 icons: the first for progress, the second (or more) for static
x.AddIcon("$qm$\empty.ico[]$qm$\copy.ico")

;show the static icon
x.Modify(2)
1

;show progress
int i
for i 0 40
,x.Update(i*100/40)
,0.05

;show static again
x.Modify(2)
1
#7
Perfect! Much appreciated. Best regards.


Forum Jump:


Users browsing this thread: 1 Guest(s)