button problem and others
- Posted by George Walters <gwalters at sc.rr.com> Jul 28, 2003
- 454 views
I was having problems (memory trap, see above note) and a dead button. Here's come code snipit ----------------------------------- init ------------------------------------------- procedure init(integer self, integer idType, sequence args) setFocus (idCust) end procedure setHandler(Screen, w32HKeyPress, routine_id("keyPressProcessB")) setHandler(Screen, w32HKeyDown, routine_id("keyPressProcessA")) setHandler(buttonId, w32HClick, routine_id("pickCust")) setHandler(Screen, w32HActivate, routine_id("init")) WinMain(mainWindow,Normal) I was using w32HGotFocus instead of w32HActivate and having these problems. changing to w32HActivate made the problems go away... can anyone explain? I thought that either should work, although Activate would be the better choice. george