The issue born when you have a standard windows system dialog, as OpenDialog, SaveDialog, ColorDialog, etc, which is over a GLSceneView.
When you press OK button on Windows dialog, some Mouse event remains in windows message stack and just when exit from Dialog the SceneFrame caputre them.
Placecing a peek message after Dialog close you can remove these messages before delphi message system send to active control (the glsceneviewer).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a GLcamera in special position , but when I load stl file in GLfreeform, the camera view changes , how can I have fixed camera view ?
Hi please post code sample as is we can't reproduce or help you
Thanks
Hi Jerome.D,
My camera view is Image 1.
My code is simple, I use stl file by code : (Image 2)
And I try to Delete this objcet by this code : (image1)
But when I try to load this object again by previous code, camera view is changed : (Image 3)
I don't know what the problem is.
This is not a permanent problem.
Last edit: M.a. 2020-02-14
It's normal.
To avoid that you have to clear pending Mouse messages just after your code:
Last edit: shine world 2020-02-14
Hi just a question how is set your camera,§ what's the target ? How you handle mouse ? Normally not needed to cleanup mouse messages
The issue born when you have a standard windows system dialog, as OpenDialog, SaveDialog, ColorDialog, etc, which is over a GLSceneView.
When you press OK button on Windows dialog, some Mouse event remains in windows message stack and just when exit from Dialog the SceneFrame caputre them.
Placecing a peek message after Dialog close you can remove these messages before delphi message system send to active control (the glsceneviewer).