Thread: Draw on top of everything.

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    UK
    Posts
    22

    Draw on top of everything.

    I want a VCL form which will be on top of everything. So if the user is running a full screen application (like a game or film) the popup will be displayed on top.

    (is it possible to do this ontop of a screensaver as well)


    Im going to to use a timer so it will only be displayed for a couple of seconds then close.

    I think I may need to use windows.h and use some enviroment varibles.

    How could i solve this problem?

    Any advice is great,
    Thanks,

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    With a full screen game, you may have problems because there is no way to overlay your program over the game. You can make it switch to your program when it pops up, but this will minimize the game. There may also be a problem if the user tries to click on the game while the game is trying to minimize, causing it to stay active.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Agreed, you can't put anything over top of a hardware overlay surface.

  4. #4
    Registered User
    Join Date
    Jun 2007
    Location
    UK
    Posts
    22
    Are you sure?

    Because there is a piece of software called "Xfire" which allows people who play games to open and close chat windows ontop of their game. without the game minimizing.

  5. #5
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Then it's highly likely those games don't use a hardware overlay.
    Just hope the thing you're interested in also doesn't.

  6. #6
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Programs like xfire, I believe, hook into the drawing abilities of the games on which they do their stuff.

    This is quite complicated if you have no idea what you're doing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make opengl draw in lighter colors ?
    By jabka in forum Game Programming
    Replies: 2
    Last Post: 12-17-2007, 06:12 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  4. Odd 3D Invis Objects?
    By Zeusbwr in forum Game Programming
    Replies: 4
    Last Post: 12-07-2004, 07:01 PM
  5. Stack functions as arrays instead of node pointers
    By sballew in forum C Programming
    Replies: 8
    Last Post: 12-04-2001, 11:13 AM