[gtkada] Restore a window
andy.wells at amsjv.com
andy.wells at amsjv.com
Mon Aug 20 11:47:59 CEST 2001
The outline of the function is produced by glade.
Here's the code for the function:
function On_Window_Delete_Event
(Object : access Gtk_Widget_Record'Class; Params :
Gtk.Arguments.Gtk_Args) return Boolean;
is
Arg1 : Gdk_Event := To_Event (Params, 1);
begin
Hide(Object);
return(True);
end On_Window_Delete_Event;
This works fine when window is in restored state, but doesn't function
when window is minimised. The function is called, but the minimised
window doesn't respond to the hide(object) command.
Doing either of the following also doesn't solve the problem:
Show(Object);
Hide(Object);
or
Popup(Object, 5, 5);
Hide(Object);
Any ideas?
A.Wells
More information about the gtkada
mailing list