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!
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
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.
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
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.