mail-archives/gtk-sharp-list/2005-June/006009.html

99 строки
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Window events
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Window%20events&In-Reply-To=1119029689.8450.9.camel%40localhost.localdomain">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="006004.html">
<LINK REL="Next" HREF="006005.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Window events</H1>
<B>Kevin Francis</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Window%20events&In-Reply-To=1119029689.8450.9.camel%40localhost.localdomain"
TITLE="[Gtk-sharp-list] Window events">kevin at loose-screws.com
</A><BR>
<I>Mon Jun 20 07:09:51 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="006004.html">[Gtk-sharp-list] Window events
</A></li>
<LI>Next message: <A HREF="006005.html">[Gtk-sharp-list] GtkSourceView: New keywords in SourceBuffer or
SourceView (i don't know)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6009">[ date ]</a>
<a href="thread.html#6009">[ thread ]</a>
<a href="subject.html#6009">[ subject ]</a>
<a href="author.html#6009">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>What you want is to look at:
Window.DefaultHeight and Window.DefaultWidth to set the height/width
To get the height/width, I use:
private void OnSizeAllocated(object o, Gtk.SizeAllocatedArgs e)
{
Common.Settings.Set(&quot;/apps/transference/state/mainwindow_width&quot;,
e.Allocation.Width);
Common.Settings.Set(&quot;/apps/transference/state/mainwindow_height&quot;,
e.Allocation.Height);
}
e.Allocation.Height (or Width) allow grabbing the sizes :)
On Fri, 2005-06-17 at 18:34 +0100, Paulo Aboim Pinto wrote:
&gt;<i> Hello
</I>&gt;<i>
</I>&gt;<i> I'm developing and application with interfaces created in Glade2. I want
</I>&gt;<i> to know how can I capture the event of resize the window.
</I>&gt;<i>
</I>&gt;<i> I had seen all the events in the properties and no one looks like resize
</I>&gt;<i> window....
</I>&gt;<i>
</I>&gt;<i> Any one can explain how can I use this event and how can I use it?
</I>&gt;<i>
</I>&gt;<i> (())
</I>&gt;<i> Esqueleto
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
</I>--
Kevin Francis
<A HREF="http://denial.loose-screws.com/">http://denial.loose-screws.com/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="006004.html">[Gtk-sharp-list] Window events
</A></li>
<LI>Next message: <A HREF="006005.html">[Gtk-sharp-list] GtkSourceView: New keywords in SourceBuffer or
SourceView (i don't know)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6009">[ date ]</a>
<a href="thread.html#6009">[ thread ]</a>
<a href="subject.html#6009">[ subject ]</a>
<a href="author.html#6009">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>