Registriert: Sa Jan 04, 2003 21:23 Beiträge: 674 Wohnort: Köln
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
Registriert: Do Dez 05, 2002 10:35 Beiträge: 4234 Wohnort: Dortmund
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 ). But it is terrible slow. Normally you should use the GDI.
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 ). But it is terrible slow. Normally you should use the GDI.
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?
Registriert: Mo Sep 23, 2002 19:27 Beiträge: 5812
Programmiersprache: C++
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.
Registriert: Do Dez 05, 2002 10:35 Beiträge: 4234 Wohnort: Dortmund
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.
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.