RE: what's the difference
- Posted by "Patrick Barnes" <mistertrik at hotmail.com> Jun 07, 2004
- 387 views
>From: don cole <guest at RapidEuphoria.com> >Subject: what's the difference >posted by: don cole <doncole at pacbell.net> > >What is the difference between: >A: onClick[PushButtonXX]=routine_id("whatever") >and >B: setHandler(PushButtonXX,w32HClick,routine_id("whatever")) 1. A is deprecated, B is current. 2. B has much more flexible, and safer. With B, arg 1, arg 2, and (?arg3) can be sequences as well as atoms. So, to add an association of buttons 1,2,3 with a click event "whatever": setHandler({button1,button2,button3}, w32HClick, routine_id("whatever")) And to add an association of both the key down and key up event for the window1: setHandler(window1, {w32HKeyDown, w32HKeyUp}, routine_id("whatever")) And to remove any existing w32HClick events from ButtonXX and enter a new one: setHandler(PushButtonXX,w32HClick,{-1,routine_id("whatever")}) Okeydokey? MrTrick