Questions about Widgets in X window and XMoveResizeWindow

dd jj <[email protected]>
Newsgroups gmane.comp.xfree86.forum
Message-ID <[email protected]>
Hello everyone,
 
I hope this is the correct mailing list to post these questions... Could you please give some comments on them? thanks.
 
1) Now I want to search a button with specific caption, such as "Save" or "Cancel".. "Ok" on X window (no matter GNOME or KDE) screen. 
Can I implement this under different desktop enviroments(KDE,GNOME) with Xlib programming? Or it's toally impossible?

As my understanding,

The button in Gnome is built using GTK but that in KDE is built using Qt, they are different widgets belong to differen Toolkit, right? But since GTK and Qt are both based on Xlib, I am wondering whether we can handle this using lowest level Programming - xlib?

Or maybe I can only program using GTK for GNOME, using Qt for KDE separately for different desktop enviroment?

2) I tried to use XMoveResizeWindow to move a X window application such as Xclock, or Xcalc,  I parsed the window ID "w" got from xwininfo and display dsp = XOpenDisplay(NULL) to it like:

XMoveResizeWindow(dsp, w, 0, 0, 200, 200);

it doesn't work, but when I creat my own window application using

XCreateSimpleWindow, then it can work.

Did I miss something to deal with such existing Application window?

Thank you for help me out.




---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.