File: _add_event_handler.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (15 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function _add_event_handler(win,_function_name)

global eventHandlers

if type(win)==1
  h=scf(win);
else
  h=win;
  win=h.figure_id;
end

h.user_data.eventHandlers($+1)=_function_name;
eventHandlers(win+1)=h.user_data.eventHandlers;

endfunction