LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 12-19-2009, 01:58 PM   #1
ghanu6
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, 02:12 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
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: http://tronche.com/gui/x/xlib/
The Xlib Programming Manual: http://www.sbin.org/doc/Xlib/
 
  


Reply

Tags
xwindows


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 06:39 PM
Metacity: when a program spawns a new window, that window is not in foreground. why? BrianK Linux - General 1 12-18-2008 06:50 AM
!! Problem !! Minimizing ANY window EXITS the Program / Browser window NOoBuntuLinux Linux - Newbie 6 11-20-2008 03:32 PM
Problem with old program in the X Window System yohan2k Linux - Software 4 07-05-2007 02:52 PM
When I minimize the window the program disapears?? Marlinnhag@aol.com Ubuntu 8 05-01-2007 05:25 PM


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

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