![]() |
| | #1 |
| Registered User Join Date: Dec 2006
Posts: 124
| window creation how to create a transparent window using gtk c in fedora7( by programatically) please help me thank you in advance |
| munna_dude is offline | |
| | #2 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Whilst the article isn't about Fedora, I think it's fairly close: http://plan99.net/~mike/blog/?p=38 -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #3 | |
| Registered User Join Date: Dec 2006
Posts: 124
| Quote:
afetr running this window, it should be transparent | |
| munna_dude is offline | |
| | #4 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Did you read the requirements? Maybe you are not fulfilling all of the requirements. I haven't looked at the code in that blog, but from the brief description given, I would say that what you need is: 1. create the window with an alpha value. 2. Have some form of composition engine that combines the content of this window with what's behind it based on the alpha value(s). Since the blog says that it does 1 from above, then I must assume that it's 2 that is missing. This is about what software (and perhaps hardware) you have on your machine. If you have a very basic graphics card, I expect alpha-blending may not work. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #5 |
| Cat without Hat Join Date: Apr 2003
Posts: 8,492
| You'll probably need the composite extension of X enabled, and you need a composite manager.
__________________ All the buzzt! CornedBee"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code." - Flon's Law |
| CornedBee is offline | |
| | #6 |
| Registered User Join Date: Dec 2006
Posts: 124
| hi all am sending an attachment please check this thank you in advance |
| munna_dude is offline | |
| | #7 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Yes, and I think CornedBee has already told you what you need - as did I, but perhaps not as clearly. Assuming you didn't change the code in the link to have zero as the alpha value. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Just starting Windows Programming, School me! | Shamino | Windows Programming | 17 | 02-22-2008 08:14 AM |
| WM_CAPTION causing CreateWindowEx() to fail. | Necrofear | Windows Programming | 8 | 04-06-2007 08:23 AM |
| 6 measly errors | beene | Game Programming | 11 | 11-14-2006 11:06 AM |
| Pong is completed!!! | Shamino | Game Programming | 11 | 05-26-2005 10:50 AM |
| OpenGL Window | Morgul | Game Programming | 1 | 05-15-2005 12:34 PM |