Re: Does GTK support this contruction and how do do



If you use two seperate GtkWindows you'll
be able to move one when the other moves *but*
you'll get a lag :(

Widgets dont move *real time* in gtk.
usually you tell the widget where it
should be and gtk (in the main loop)
will propagate your event and *attempt*
to move your widget in the smoothest
way possible (i.e. using back buffers
and trying to optimize when some widgets
are child of other widgets).

The one major draw-back (IMHO) is that
widgets cannot overlap unless they
are of type GtkWindow.

No sorry this not I want to have in this way GtkFixed is no window of
type popup
so it is entered with the normal TAB .

Hmmm the "normal tab". I'm assuming that your
using a WM that; when recieving the key event `TAB'
passes the focus to the next window.

This behavior can differ between applications
and window managers but can also be trapped and handled
by your application. 

i.e. you can pass the focus to your 
child widget (GtkFixed in this case)
upon TAB when your TOPLEVEL recieves it
etc etc ...


I still might not understand exactly what
you want to achieve

the parent it should be moved too. The debugger  ddd has such a function
if you select
command tools from Menue   VIEW  that exactly what I want.

Sorry; not familliar with `ddd'. I use 
gdb, nm and company... (pointing and
clicking gives me heartburn).

Do you want to be able to move your `popup' 
inside the TOPLEVEL ? do you want your
popup to `overlap' anything in your 
TOPLEVEL ?.



Cheers,
                -Tristan

günther wrote:

No sorry this not I want to have in this way GtkFixed is no window of
type popup
so it is entered with the normal TAB .

The window should be of type popup or dialog so that behaves like a
stand alone window,
but it should be shown inside the  parent window and be always visible
and when moving
the parent it should be moved too. The debugger  ddd has such a function
if you select
command tools from Menue   VIEW  that exactly what I want.

Tristan Van Berkom wrote:

You want something like this:

+-------------------------+
|+-----------+ GtkWindow  |
|| GtkFixed  |            |
||           |(freespace) |
||           |            |
||           |            |
|+-----------+            |
+-------------------------+

Your GtkFixed (container impl.) will
always stay the same size and is a child
of your GtkWindow (will always follow
parent window).



I have a main_window toplevel

one part is free and reserved nt occupied with any widget.

In this region I want to have different popup windows depending the user
selects.
Questions)
1) This popup window should come up at the specified free region on the
main_window
                     how to place the popup directly always at the same
place
2) more important the popup window should always be in the front of the
main_window
   and not be hidden by the main_window  if clicked on
                      how to keep it always in front
3)  The popup should be fixed to the position at the main_window, so if
you move
    the main_window   the popup should move in front visible with the
main_window
     comparable with the HandleBox Widget
                      how to move both   without  writing handler to
detect the movement
                                                  and place the popup
new with own code.
                      exists something like to attach the  popup window
type to main_window.
If somebody knows please help
Mfg
Günther

--
R=I+S  Rapp Informatik Systeme GmbH
       Rosenbühlstr. 24
       D-89182 Bernstadt
       Tel:  +49 (0)7348-7755
       Fax:  +49 (0)7348-6086
E-MAIL  mailto: guenther rapp-informatik de
WEB             www.rapp-informatik.de

--
R=I+S  Rapp Informatik Systeme GmbH
       Rosenbühlstr. 24
       D-89182 Bernstadt
       Tel:  +49 (0)7348-7755
       Fax:  +49 (0)7348-6086
E-MAIL  mailto: guenther rapp-informatik de
WEB             www.rapp-informatik.de



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