[vwnc] Problem with ole controls/smallcomx

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Problem with ole controls/smallcomx

Mark Plas

Hi,

 

We're trying to embed a video player into a VW application window using SmallCom/X (see attached screenshot). We use an OLEControl to embed it and it runs fine, but as soon as we select one of the buttons on the video player, the VW window doesn't receive keyboard events anymore. The mouse still works but the keyboard is gone until we click on another window and then it's back.

 

The problem seems to be that the VM isn't sending keyboard events to the image anymore.  The method InputState>>send:eventKeyPress: doesn't get send anymore once we use the buttons on the player.

 

What can be done about this?

 

Thanks in advance,

Mark

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

continuityviewer_keyboardfocus_issue.png (40K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem with ole controls/smallcomx

Boris Popov, DeepCove Labs (SNN)

Interestingly enough, this same thing annoys me about embedded videos on Google Reader – as soon as you click play in the control (say, youtube) the browser will no longer be the target of keyboard events (like j,k, etc) and you’ll need to click anywhere in the browser again to give it back the focus. Could these be related?

 

-Boris

 

--

+1.604.689.0322

DeepCove Labs Ltd.

4th floor 595 Howe Street

Vancouver, Canada V6C 2T5

http://tinyurl.com/r7uw4

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Plas
Sent: Friday, August 28, 2009 2:37 AM
To: [hidden email]
Subject: [vwnc] Problem with ole controls/smallcomx

 

Hi,

 

We're trying to embed a video player into a VW application window using SmallCom/X (see attached screenshot). We use an OLEControl to embed it and it runs fine, but as soon as we select one of the buttons on the video player, the VW window doesn't receive keyboard events anymore. The mouse still works but the keyboard is gone until we click on another window and then it's back.

 

The problem seems to be that the VM isn't sending keyboard events to the image anymore.  The method InputState>>send:eventKeyPress: doesn't get send anymore once we use the buttons on the player.

 

What can be done about this?

 

Thanks in advance,

Mark

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem with ole controls/smallcomx

Mark Plas

I've done an experiment in which I fork a process that continuously does:

 

                SetFocus(HWND hwnd)

 

of the window containing the player. SetFocus is a windows procedure that sends keyboard input to the window with the given handle. This fixes the problem but I wouldn't qualify this as a clean fix. Perhaps in internet browsers they also do this when a mouse click is received?

 

Does anyone have any better ideas to fix this?

 

From: Boris Popov [mailto:[hidden email]]
Sent: vrijdag 28 augustus 2009 16:50
To: Mark Plas; [hidden email]
Subject: RE: [vwnc] Problem with ole controls/smallcomx

 

Interestingly enough, this same thing annoys me about embedded videos on Google Reader – as soon as you click play in the control (say, youtube) the browser will no longer be the target of keyboard events (like j,k, etc) and you’ll need to click anywhere in the browser again to give it back the focus. Could these be related?

 

-Boris

 

--

+1.604.689.0322

DeepCove Labs Ltd.

4th floor 595 Howe Street

Vancouver, Canada V6C 2T5

http://tinyurl.com/r7uw4

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Plas
Sent: Friday, August 28, 2009 2:37 AM
To: [hidden email]
Subject: [vwnc] Problem with ole controls/smallcomx

 

Hi,

 

We're trying to embed a video player into a VW application window using SmallCom/X (see attached screenshot). We use an OLEControl to embed it and it runs fine, but as soon as we select one of the buttons on the video player, the VW window doesn't receive keyboard events anymore. The mouse still works but the keyboard is gone until we click on another window and then it's back.

 

The problem seems to be that the VM isn't sending keyboard events to the image anymore.  The method InputState>>send:eventKeyPress: doesn't get send anymore once we use the buttons on the player.

 

What can be done about this?

 

Thanks in advance,

Mark

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc