LINUX programming

Moderators: ITA
Number of threads: 1347
Number of posts: 2935

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How can I set a certain window to make it active? Posted by siminone on 29 Feb 2004 at 1:53 PM
All right folks, I am attempting to write a desktop Interface for IceWM linux Window Manager in Java.

A major problem that I have encountered is that there is no function in Java, that when a number of GUI based applications are open, a certain window can be set active.

The only way I feel I can get round it is to write code in C (which I can incorporate into Java), that can do this.

I know a little C but I know nothing of Linux X-Windows programming. Can anyone recommend any good tutorials?

Thanks in advance

Alza
Report
Re: How can I set a certain window to make it active? Posted by Jeff P. on 2 Mar 2004 at 5:49 PM
Report
Re: How can I set a certain window to make it active? Posted by siminone on 4 Mar 2004 at 5:56 PM
Thanks mate, it does what I want and it gives me a starting point to what I want to achieve.

Report
Re: How can I set a certain window to make it active? Posted by RejithRR on 14 Mar 2004 at 12:43 PM
: All right folks, I am attempting to write a desktop Interface for IceWM linux Window Manager in Java.
:
: A major problem that I have encountered is that there is no function in Java, that when a number of GUI based applications are open, a certain window can be set active.
:
: The only way I feel I can get round it is to write code in C (which I can incorporate into Java), that can do this.
:
: I know a little C but I know nothing of Linux X-Windows programming. Can anyone recommend any good tutorials?
:
: Thanks in advance
:
: Alza


>> Ya I prefer using GTK+ for c++ binding
>>use the gtk_setactive()....fn with relevant params for the problem
:visit the gtk site and get the fn protos.........thanku



Report
Re: How can I set a certain window to make it active? Posted by siminone on 25 Mar 2004 at 1:04 PM
This message was edited by siminone at 2004-3-25 13:6:44

Thanks for replying.

I have been looking at a XLib tutorial and it is possible to do that but I can't find a command to get a list of opened windows on session.

Not sure if this is possible in X Lib?


Report
Re: How can I set a certain window to make it active? Posted by Jeff P. on 25 Mar 2004 at 9:22 PM
: I can't find a command to get a list of opened windows on session.
: Not sure if this is possible in X Lib?

This example is a little hard to follow, but it
should at least show that it is possible:

http://www.chatjunkies.org/fspanel/
Report
Re: How can I set a certain window to make it active? Posted by siminone on 27 Mar 2004 at 11:50 AM
cheers Jeff, I am getting to be a bit of a pain aren't I? lol.

Thanks to your help and others I have got a starting point to go forward with.

I have started a XLib tutorial and though I am slowly getting to grips with it, I am not getting close to the part that I require. I think the only way I can do it is to reverse-engineer the two programs you have supplied.

For anyone who's interested the project I am working on is located at http://sourceforge.net/projects/natkng.

It is nowhere near the beginning but hopefully I will get it up and running in the coming months and hopefully provide a Desktop that people want.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.