GLScene and XP Manifest
Original Reporter info from Mantis: Agent_AL
-
Reporter name:
Original Reporter info from Mantis: Agent_AL
- Reporter name:
Description:
GLScene Version: 1.0.0.2
TGLSceneViewer component doesn't work and update viewport properly if form works under XP styled window. It happens always and noticeable since design-time.
To repeat bug, just set Windows XP style theme (not classic one) and follow next steps:
- Add TGLSceneViewer on Form
- Add TGLScene and setup it with default lightning or whatever to see result
- Link TGLScene to Viewer and see, that Viewport's acting strange, drawing pieces of Windows interface and black rectangles, everything but nothing from Scene.
Doing some research I have found that this happens when Window style is set to WS_LAYERED (support for alpha effects and etc). Thus, I could reproduce this bug setting window style to WS_LAYERED even with Classic Theme. I guess, when XP manifest is activated and XP Style Theme is on, this window style becomes switched on, which causes bug.
One more thing, that I've noticed is that I can let viewport draw Scene contents only if I drag form away from screen and put it back. For a short instance (or if scene has no cadencer and doesn't refresh itself constantly) I can see usual picture in Viewport but only until it becomes covered with other Windows form.
This bug is nasty as I cannot use GLScene in combination with XP manifest properly. I tried to find solution but I failed, no clues what could be the reason for such behaviour. Besides, under Delphi GLScene works properly even with WS_LAYERED on.
Mantis conversion info:
- Mantis ID: 11321
- Version: 0.9.24
- Monitored by: » Kjow (Kjow), » crossbuilder (Burkhard Carstens)
- Target version: post 1.2