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

Re: Console Button



On Mon, 04 Oct 1999 11:55:05 +0000, Laurent Sauvebois wrote:
> 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 ....

That's correct, but they only work with your own (GTK) windows, not with
the other windows on your desktop. The original poster wanted to raise the
terminal window from which his application started.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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