C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-08-2007, 06:36 AM   #1
Registered User
 
Join Date: Dec 2006
Posts: 124
window creation

hi all
how to create a transparent window using gtk c in fedora7( by programatically)

please help me

thank you in advance
munna_dude is offline   Reply With Quote
Old 10-08-2007, 06:53 AM   #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   Reply With Quote
Old 10-08-2007, 07:05 AM   #3
Registered User
 
Join Date: Dec 2006
Posts: 124
Quote:
Originally Posted by matsp View Post
Whilst the article isn't about Fedora, I think it's fairly close:
http://plan99.net/~mike/blog/?p=38

--
Mats
i tried this , but it is not transparent

afetr running this window, it should be transparent
munna_dude is offline   Reply With Quote
Old 10-08-2007, 07:09 AM   #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   Reply With Quote
Old 10-08-2007, 07:23 AM   #5
Cat without Hat
 
CornedBee's Avatar
 
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   Reply With Quote
Old 10-09-2007, 02:52 AM   #6
Registered User
 
Join Date: Dec 2006
Posts: 124
hi all
am sending an attachment

please check this

thank you in advance
Attached Images
 
munna_dude is offline   Reply With Quote
Old 10-09-2007, 03:01 AM   #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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22