Re: GtkEntry in GtkCList



I know that I can not directly add widget to clist.
I have tried it and is working but I have some problems.

I am adding clist in scrollwindow.
scrollwindow in vbox.
entry in vbox
vbox in toplevel window.

On double click of clist I am finding x, y, width and height of cell
clicked.
then  calling

How about trying a radically different approach.

Instead of (re)parenting, would it be possible to create a GtkWindow
that is of type POPUP and place a GtkEntry widget into that?

Then map this popup window over the button press?

This way it'll look just like as if the popup window is part of the CList
to the user.

Trick would be to finding just the right root x and y positions to place
the popup window over. So it depends on if you know or can get the root
x and y coordinates of the clist's row cell.

--
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]