зеркало из https://github.com/mono/mail-archives.git
86 строки
3.9 KiB
HTML
86 строки
3.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] ScrolledWindow and TextView
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20ScrolledWindow%20and%20TextView&In-Reply-To=1214687023.6971.19.camel%40studio">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="008773.html">
|
|
<LINK REL="Next" HREF="008776.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] ScrolledWindow and TextView</H1>
|
|
<B>Michael Hutchinson</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20ScrolledWindow%20and%20TextView&In-Reply-To=1214687023.6971.19.camel%40studio"
|
|
TITLE="[Gtk-sharp-list] ScrolledWindow and TextView">m.j.hutchinson at gmail.com
|
|
</A><BR>
|
|
<I>Sat Jun 28 17:26:38 EDT 2008</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="008773.html">[Gtk-sharp-list] ScrolledWindow and TextView
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008776.html">[Gtk-sharp-list] ScrolledWindow and TextView
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8774">[ date ]</a>
|
|
<a href="thread.html#8774">[ thread ]</a>
|
|
<a href="subject.html#8774">[ subject ]</a>
|
|
<a href="author.html#8774">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Sat, Jun 28, 2008 at 5:03 PM, Jestin Stoffel
|
|
<<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">jestin.stoffel at gmail.com</A>> wrote:
|
|
><i> Apparently there is a Gtk.Viewport that gets created, and that is what
|
|
</I>><i> the ScrolledWindow contains. Checking the gui.stetic file showed that
|
|
</I>><i> Stetic is adding in the Viewport. It seems that Stetic automatically
|
|
</I>><i> assumes add_with_viewport instead of a normal add, and creates a
|
|
</I>><i> Viewport in gui.stetic. Since a TextView is something that handle's
|
|
</I>><i> it's own scrolling, this Viewport is just mucking things up. Thanks for
|
|
</I>><i> pointing me in the right direction, but I still don't know how to use
|
|
</I>><i> the Stetic designer to accomplish a TextView inside a ScrolledWindow. I
|
|
</I>><i> looked for some sort of configuration option, but couldn't find one. I
|
|
</I>><i> can probably just work around the issue by creating a custom
|
|
</I>><i> "scrolledtextview" widget where I do my add()'s in code (without
|
|
</I>><i> Stetic), but it is starting to look like there's a bug somewhere.
|
|
</I>
|
|
Actually, I just played around with textviews in stetic, and
|
|
discovered that adding a textview to a container that's not a
|
|
ScrolledWindow *automatically* adds a ScrolledWindow without a
|
|
viewport. Adding a textview to a ScrolledWindow does insert a
|
|
viewport, which can be seen in the .stetic file (xml) but is not
|
|
accessible from the designer.
|
|
|
|
Fortunately the workaround is simple; just skip adding the scrolledwindow.
|
|
|
|
This is clearly a bug in stetic; could you file a bug report?
|
|
|
|
--
|
|
Michael Hutchinson
|
|
<A HREF="http://mjhutchinson.com">http://mjhutchinson.com</A>
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="008773.html">[Gtk-sharp-list] ScrolledWindow and TextView
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008776.html">[Gtk-sharp-list] ScrolledWindow and TextView
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8774">[ date ]</a>
|
|
<a href="thread.html#8774">[ thread ]</a>
|
|
<a href="subject.html#8774">[ subject ]</a>
|
|
<a href="author.html#8774">[ 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>
|