button problem and others

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu