DGL https://delphigl.com/forum/ |
|
3D model outside form/frame https://delphigl.com/forum/viewtopic.php?f=19&t=2487 |
Seite 1 von 1 |
Autor: | TheDude [ Mi Feb 11, 2004 14:50 ] |
Betreff des Beitrags: | 3D model outside form/frame |
Is it possible to display an 3D model outside (above) your Delphi form? Just like the MS agent plugin. Thnx a lot! |
Autor: | Raphael O. [ Mi Feb 11, 2004 15:01 ] |
Betreff des Beitrags: | |
i think such pictures only seem to be outside, but actually they're in a separate form wich is transparent where the figure isn't displayed... but i dont know how to manage this with a opengl-form ![]() |
Autor: | Lossy eX [ Mi Feb 11, 2004 15:03 ] |
Betreff des Beitrags: | |
Yes. With Delphi 6 and above every Form has two properties named "TransparentColor" and "TransparentColorValue". When you use the both properties and an Form with BorderStyle bsNone you can easily create an transparent window. You can combine it with OpenGL (i have try it ![]() |
Autor: | Gast [ Do Feb 12, 2004 23:16 ] |
Betreff des Beitrags: | |
Lossy eX hat geschrieben: Yes. With Delphi 6 and above every Form has two properties named "TransparentColor" and "TransparentColorValue". When you use the both properties and an Form with BorderStyle bsNone you can easily create an transparent window. You can combine it with OpenGL (i have try it
![]() Thnx for your tip, but in the case you are describing, the background might be indeed transparent, but what about the events? When clicked on the transparent part of the window, does the window get the events or are they not captured bij the window, but go trough to windows below your invisible delphi form? Does anybody have experience with window clipping? |
Autor: | Sascha Willems [ Fr Feb 13, 2004 14:24 ] |
Betreff des Beitrags: | |
Transparent parts of a window are usually created using Regions, and if you define them via regions, then yes, windows will handle clicks to transparent regions as if there was no window under that position. So if you have a transparent rect in your window and an icon on the desktop is visible through that hole, then clicking on that icon would work without further intervention from your side. |
Autor: | Lossy eX [ Fr Feb 13, 2004 14:54 ] |
Betreff des Beitrags: | |
I have seen that the property TranparentColor is using the function SetLayeredWindowAttributes (WIN-API). This function need at minimum windows 2000. If you want to use your Programm below then you should use regions. |
Autor: | TheDude [ Mi Feb 18, 2004 14:45 ] |
Betreff des Beitrags: | |
Thnx for your reactions. Is this window transparancy also available in an ActiveX form? Couldn't find it in the properties explorer. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |