Thread: Close a popup alert

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    161

    Close a popup alert

    Hi, if I want to close a popup alert, what shoulod I do? I'm really new at linux C programming! I just want to simulate the "ok" button pressed by the user.
    Thanx!
    This forum is the best one I've ever seen. Great ppl, great coders

  2. #2
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190
    What kind of graphic front end are you using? Qt, Gtk, or anything else? Hey, wait, you are doing C programming. Then it can't be any of those, 'cause they are class based, aren't they?

    If it's your programme that generates the popup, post the way you did that. It will make it a lot easier to understand how to close it.

    If the popup is NOT generated by your program, it is a bit more complicated. I guess you will have to mess with X, which is not something you want to do the first time you are programming in linux. Its API is rather old-fashioned and not easy to understand at all. (those of you who are fans of X, I'm really sorry, but I had to say it ).

    I must say that I haven't done much X programming, but I guess that you should be somehow able to retrieve an array of windows and then pick out the one you want and close it. I don't know exactly how you do it...

    And, by the way:
    I don't know if you know what X is. X (or X window manager) is (simplified) what lies beneath all the graphics you see on the screen. See http://www.xfree86.org/ if you want to know more.
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    161
    I'm currently working on a mac that is quite a unix
    This forum is the best one I've ever seen. Great ppl, great coders

  4. #4
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190
    Hehe...

    Well, can you post a piece of code that you are working on? The one with the popup window? Otherwise it's rather difficult to say how you can close that popup of yours
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Close an HTTPListenerResponse.OutputStreram
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-23-2008, 11:00 PM
  2. open() and close()
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 04-08-2005, 01:16 PM
  3. borland C++ builder 6 (Popup Menus)
    By Demon1s in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2003, 05:50 PM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM