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

Re: Console Button



Erik Mouw wrote:

> On Sun, 03 Oct 1999 14:15:42 +0100, Carlos Pereira wrote:
> > I would like to implement a console button: when pressed, the window
> > that launched the app (where printing messages are shown) comes on top,
> > when pressed again, the window goes back quietly and the app is refreshed.
> > Of course, many windows can be open at the same time, so it is necessary
> > to know which one is the right one, and then, somehow, to inform the window
> > manager to change the window priority... how can this be done?
>
> There are no simple gtk or gdk functions for this, you have to use Xlib
> functions: XRaiseWindow() and XLowerWindow().

sorry, but if you want to raise and lower some windows ...... you can use :

gdk_window_lower(your_widget->window); and
gdk_window_raise(your_widget->window);

which are doing exactly the same as XRAISE and XLOWER, but inside gtk. I think
it's cleaner ....

Laurent



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