4
votes

I am using Delphi XE5 and I have firemonkey application. there is a Viewport and I put an instance of TModel3D and loaded an object from Obj file (it is a simple object. extruded hexagon) which created in 3dsMax. I wrote OnClick function for this object with a simple ShowMessage(''); but it doesn't trigger when I click on it. OnClick is working fine for TCube, TSphere, ... How can I have OnClick event and other events like OnMouseMove and OnDblClick for TModel3D?

Thanks.

1
After thinking about this problem I come up with a funny idea. I put a cube in the Model3d object that I had, and set the size of this cube that it can't be seen in viewport. now I write events for this cube which can not be seen. and when I click on Model3d object the event handler for that cube executes. but I think it is not a definite solution for this problem. - Loghman
I'm also waiting for answers.. coz tmodel3d have onClick on its event.... I use Xe6 and also it still did not work... - Galvion

1 Answers

1
votes

It doesn't matter your 3D model is OBJ or ASE or DAE the onClick event did not work.

All of the mouse events and Cursor properties within tmodel3d is not working.

This problem never been solved by Embarcadero since 2012 (Xe3 maybe). Its more like permanent bug of FireMonkey - Delphi.

You may also read : https://forums.embarcadero.com/thread.jspa?messageID=442911&tstart=0#442911