mail-archives/gtk-sharp-list/2009-February/009456.html

82 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] size request getting lost...
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20size%20request%20getting%20lost...&In-Reply-To=717e7cba0902230347u94a6a1fv4843fcba3abab38d%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="009449.html">
<LINK REL="Next" HREF="009459.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] size request getting lost...</H1>
<B>Christian Hoff</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20size%20request%20getting%20lost...&In-Reply-To=717e7cba0902230347u94a6a1fv4843fcba3abab38d%40mail.gmail.com"
TITLE="[Gtk-sharp-list] size request getting lost...">christian_hoff at gmx.net
</A><BR>
<I>Mon Feb 23 09:08:29 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="009449.html">[Gtk-sharp-list] size request getting lost...
</A></li>
<LI>Next message: <A HREF="009459.html">[Gtk-sharp-list] FW: Help needed on Window's TransientFor Property.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9456">[ date ]</a>
<a href="thread.html#9456">[ thread ]</a>
<a href="subject.html#9456">[ subject ]</a>
<a href="author.html#9456">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Stanis?aw Pitucha schrieb:
&gt;<i> 2009/2/23 Christian Hoff &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">christian_hoff at gmx.net</A>&gt;:
</I>&gt;<i>
</I>&gt;&gt;<i> Have a look at the Size.cs sample in the Gtk# repository. The event
</I>&gt;&gt;<i> handler shopuld not call SetSizeRequest, but instead modify the
</I>&gt;&gt;<i> Requisition object in the args param:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> static void Size_Requested (object obj, SizeRequestedArgs args)
</I>&gt;&gt;<i> {
</I>&gt;&gt;<i> Requisition req = args.Requisition;
</I>&gt;&gt;<i> Console.WriteLine (&quot;Requesting 100 x 100&quot;);
</I>&gt;&gt;<i> req.Width = req.Height = 100;
</I>&gt;&gt;<i> args.Requisition = req;
</I>&gt;&gt;<i> }
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Does it mean that the example in go-mono is wrong?
</I>&gt;<i> <A HREF="http://go-mono.com/docs/index.aspx?tlink=3@ecma%3a721%23Bin%2f">http://go-mono.com/docs/index.aspx?tlink=3@ecma%3a721%23Bin%2f</A>
</I>&gt;<i>
</I>I think so. Somebody should change it. There was a bug in earlier
versions of Gtk# because the requisition got lost if you manipulated it.
This was probably the reason why the sample in the Mono docs uses this
workaround.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="009449.html">[Gtk-sharp-list] size request getting lost...
</A></li>
<LI>Next message: <A HREF="009459.html">[Gtk-sharp-list] FW: Help needed on Window's TransientFor Property.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#9456">[ date ]</a>
<a href="thread.html#9456">[ thread ]</a>
<a href="subject.html#9456">[ subject ]</a>
<a href="author.html#9456">[ 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>