Re: Can I just confirm Alt handling etc
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 22, 2002
- 456 views
Pete, you have found a new bug in the library. The fix is simple though. In the routine called isHotKey() find the line : if window_class[ focus ] = BUTTON and (event = WM_KEYDOWN) then change it to : if window_class[ focus ] = BUTTON and ((event = WM_KEYDOWN) or (event = WM_SYSKEYDOWN)) There is still something else wrong somewhere in that it beeps when the control already has focus, but I'll work on that issue later. ------------- Derek. ----- Original Message ----- From: <petelomax at blueyonder.co.uk> To: "EUforum" <EUforum at topica.com> Sent: Saturday, March 23, 2002 4:53 AM Subject: Re: Can I just confirm Alt handling etc On Fri, 22 Mar 2002 06:56:42 -0800, Dan Moyer <DANIELMOYER at prodigy.net> wrote: >This example works fine for me, with NO onKey events specified: Thanks, your example worked fine for me, but my code just don't I have studied it & studied it till I'm blue in the face and I just can't for the life of me see the difference between that & this: include win32lib.ew constant COMPARE = create( Window, "Compare", 0, 100, 100, 500, 180, 0), Browse = create( PushButton, "&Browse", COMPARE, 405, 40, 80, 25, 0 ), Compare = create( PushButton, "&Compare", COMPARE, 405, 75, 80, 25, 0 ), StatusBar5 = create( StatusBar, "No button pressed yet", COMPARE, 0, 0, 0, 0, 0 ) procedure onclickBrowse() setText(StatusBar5, "Browse button pressed") end procedure onClick[Browse]=routine_id("onclickBrowse") procedure onclickCompare() setText(StatusBar5, "Compare button pressed") end procedure onClick[Compare]=routine_id("onclickCompare") WinMain(COMPARE,Normal) Yours, even more confused than ever, Pete