comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Widget_Base KBRD_Focus_Events not generated via Alt-Tab
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Widget_Base KBRD_Focus_Events not generated via Alt-Tab [message #84361] Thu, 30 May 2013 06:57
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob Klooster writes:

> I'm wondering if this just happens on Windows? Reason I ask is because I found an old discussion on this group where something similar is happening: https://groups.google.com/d/msg/comp.lang.idl-pvwave/6Y9pgAG Peyo/KbyZQ8Y4CY4J

I've never had any problems sending events on Windows machines. Several
of my most important programs (e.g., xcolors) use this functionality.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Widget_Base KBRD_Focus_Events not generated via Alt-Tab [message #84362 is a reply to message #84361] Thu, 30 May 2013 06:51 Go to previous message
Rob Klooster is currently offline  Rob Klooster
Messages: 18
Registered: February 2013
Junior Member
I'm wondering if this just happens on Windows? Reason I ask is because I found an old discussion on this group where something similar is happening: https://groups.google.com/d/msg/comp.lang.idl-pvwave/6Y9pgAG Peyo/KbyZQ8Y4CY4J
Re: Widget_Base KBRD_Focus_Events not generated via Alt-Tab [message #84363 is a reply to message #84362] Thu, 30 May 2013 05:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob Klooster writes:

> I've been trying to use the KBRD_Focus_Events keyword in Widget_Base to generate an event when the window gains or loses focus. This is however not working, in particular if I use Alt-Tab to move to or from the window. Only when I click inside the text widget inside the base, a number of events are generated (in the order textevent -> KBRD(enter=0) -> KBRD(enter=1)). What is going on here? I'm working on 64-bit Windows 7.

It looks totally screwy to me.

I've never had much luck with focus or tracking events. So much so that
I've pretty much given up using them. But, this is particularly bad.
What good are keyboard focus events AFTER the fact!?

I presume these events were added to address a problem. Maybe we aren't
using them correctly. Can someone enlighten us as to how they can be
used?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Widget_Base KBRD_Focus_Events not generated via Alt-Tab
Next Topic: IDL problem with ncdf_vardef: can' exit definition mode

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:50:41 PDT 2025

Total time taken to generate the page: 0.00582 seconds