Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-19-2009, 12:58 PM   #1
LQ Newbie
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
Smile x window program!!

hiii everyone,please can someone give a X windows program(Linux) to create a window with minimize,maximize and close button.
Old 12-19-2009, 01:12 PM   #2
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
First, forget all you've learned about windows (the kind you see on your screen) from Windows (the operating system by MS).

The buttons on the window are not created by your program, they are created by a separate program called the "window manager", which puts its own window between the root window and top-level windows, and draws whatever it wants there (many Linux window managers don't have the Windows-style min/max/close buttons, at least by default).

Also, every GUI control is actually a child window of your top-level window.

The window manager doesn't mess with your top-level window's child windows.

Wikipedia's article on Xlib has a good example to get you started.

Here are some good resources, too:

Xlib reference:
The Xlib Programming Manual:



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have a program open with the window above all others Dono Linux - Software 1 10-15-2009 05:39 PM
Metacity: when a program spawns a new window, that window is not in foreground. why? BrianK Linux - General 1 12-18-2008 05:50 AM
!! Problem !! Minimizing ANY window EXITS the Program / Browser window NOoBuntuLinux Linux - Newbie 6 11-20-2008 02:32 PM
Problem with old program in the X Window System yohan2k Linux - Software 4 07-05-2007 01:52 PM
When I minimize the window the program disapears?? Ubuntu 8 05-01-2007 04:25 PM

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration