vintagedave / firemonkey-container

Automatically exported from code.google.com/p/firemonkey-container
92 stars 34 forks source link

Use of Mouse and Keyboard in FMX 3D application #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Setup OnMouseWheel handler on FMX form. 
2. Setup OnKeyDown and/or OnKeyUp handler for TViewport3D.
3. Set CanFocus on the Viewport3D.
4. Make sure Viewport3D has Focus, click on it.
5. Scroll mouse wheel and use Keyboard.

What is the expected output? What do you see instead?

The Event handlers are supposed to be called, but this is no longer the case. 
It worked before.

What version of the product are you using? On what operating system?

I use FMXContainer.pas, with Delphi XE4 on Win32.

Please provide any additional information below.

On Windows, the TViewport3D can receive keyboard events if property CanFocus is 
True and the Viewport has Focus. The mouse wheel is not directly supported on 
the Viewport3D but on the Form. Together they allow convenient control of a 3D 
application.

Original issue reported on code.google.com by gschub on 4 Aug 2014 at 10:05