Re: add a button on X window



Hi,all:
  I have a XWindow.Now,I want to use gtk or xlib add a button on
it.But I don't know how to place a button to X window.Who can tell me
how can I do?

There is a way with using GTK to create a popup window and then subwindows
and then adding a GtkButton.

The problem is that you can't create those Windows with Xlib calls.
GDK is lower level to GTK and can be used in conjunction very easilly,
GDK is basically a slightly wrapped Xlib and should give you most of the
functinoality.

--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]