window creation

This is a discussion on window creation within the Linux Programming forums, part of the Platform Specific Boards category; hi all how to create a transparent window using gtk c in fedora7( by programatically) please help me thank you ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    window creation

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

    please help me

    thank you in advance

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    136
    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

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    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

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    136
    hi all
    am sending an attachment

    please check this

    thank you in advance
    Attached Images Attached Images  

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  4. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM

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