зеркало из https://github.com/mono/mail-archives.git
99 строки
3.6 KiB
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("/apps/transference/state/mainwindow_width",
|
|
e.Allocation.Width);
|
|
Common.Settings.Set("/apps/transference/state/mainwindow_height",
|
|
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:
|
|
><i> Hello
|
|
</I>><i>
|
|
</I>><i> I'm developing and application with interfaces created in Glade2. I want
|
|
</I>><i> to know how can I capture the event of resize the window.
|
|
</I>><i>
|
|
</I>><i> I had seen all the events in the properties and no one looks like resize
|
|
</I>><i> window....
|
|
</I>><i>
|
|
</I>><i> Any one can explain how can I use this event and how can I use it?
|
|
</I>><i>
|
|
</I>><i> (())
|
|
</I>><i> Esqueleto
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><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>><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>
|