Re: how to raise a window




Jean-Baptiste Nivoit <jbnivoit@ix.netcom.com> writes:

> 	i have a multiple window application under way using Gtk, i
> haven't found out yet how to raise a window (to set it top most)... i
> know how to set the focus to one of its widgets, but it is not enough to
> raise it... how do i do it ? (i know some will tell it is not a good
> idea to raise a window... but in some cases it really is!).

  gdk_window_raise (widget->window);

As always, when referring to widget->window, you must make sure
the widget is realized. For toplevel widgets, this will happen
the first time you gtk_widget_show() the widget.

Regards,
                                        Owen



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