Page 1 of 1

How to minimize a Window ?

Posted: Sat Jan 07, 2006 5:57 am
by Hroudtwolf
Good morning,

Do anyone knows how to minimze a window with pb for linux ?
I don't find any API in I-Net.
It's enough to drive a person mad.

Posted: Mon Jan 09, 2006 6:04 pm
by Straker
I am not at my Linux box right now, but I think you are looking for this:

gdk_window_iconify_(WindowID(#MyWindow))

to restore:

gdk_window_deiconify_(WindowID(#MyWindow))

Or you may need to use the "gtk" variant.

More info here.

Posted: Mon Jan 09, 2006 6:41 pm
by Fred
the commands seems good but WIndowID() returns a GtkWindow, so you will have to get the GdkWindow out of it:

Code: Select all

*Window.GtkWidget = WindowID() ; Well yes, GtkWindow is a subclass of GtkWidget.
gdk_window_iconify_(*Window\window)