Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing parameters to AddIcon onclick function
#1
I am wondering whether the Tray&t.AddIcon onclick function may pass parameters to this function, and if yes how?
#2
Only through global variables.

Better use callback function.

Macro Macro272
Code:
Copy      Help
int m=50
str s="test"

Tray t.AddIcon("paste.ico" "test" 0 &sub.TrayProc m)
MessageLoop


#sub TrayProc v
function Tray&x msg

sel msg
,case WM_LBUTTONUP
,out x.param
,out s


Forum Jump:


Users browsing this thread: 1 Guest(s)