зеркало из https://github.com/mono/mail-archives.git
95 строки
4.0 KiB
HTML
95 строки
4.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Calling TreeStore.AppendValues with array of values
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Calling%20TreeStore.AppendValues%20with%20array%20of%0A%20values&In-Reply-To=17371182.post%40talk.nabble.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="008751.html">
|
|
<LINK REL="Next" HREF="008754.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Calling TreeStore.AppendValues with array of values</H1>
|
|
<B>Iggy MA</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Calling%20TreeStore.AppendValues%20with%20array%20of%0A%20values&In-Reply-To=17371182.post%40talk.nabble.com"
|
|
TITLE="[Gtk-sharp-list] Calling TreeStore.AppendValues with array of values">iggy.ma at gmail.com
|
|
</A><BR>
|
|
<I>Tue Jun 24 17:01:01 EDT 2008</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="008751.html">[Gtk-sharp-list] A new Mono Blog
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008754.html">[Gtk-sharp-list] Gtk.DotNet && System.Drawing && Images, strange behavior
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8753">[ date ]</a>
|
|
<a href="thread.html#8753">[ thread ]</a>
|
|
<a href="subject.html#8753">[ subject ]</a>
|
|
<a href="author.html#8753">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>
|
|
If you're just passing it an array you may need to set the TreeCellDataFunc
|
|
to render the values properly. There is a good example of how to do it on
|
|
the mono wiki at <A HREF="http://www.mono-project.com/GtkSharp_TreeView_Tutorial">http://www.mono-project.com/GtkSharp_TreeView_Tutorial</A>
|
|
under the section 'Controlling how the model is used'
|
|
|
|
<A HREF="http://iggyma.blogspot.com/">http://iggyma.blogspot.com/</A>
|
|
|
|
|
|
|
|
|
|
pcloches wrote:
|
|
><i>
|
|
</I>><i> Hello,
|
|
</I>><i>
|
|
</I>><i> I am attempting to call TreeStore.AppendValues with an array containing
|
|
</I>><i> the values. However, AppendValues seems to have two conflicting
|
|
</I>><i> definitions:
|
|
</I>><i>
|
|
</I>><i> AppendValues(params object[] values)
|
|
</I>><i> and
|
|
</I>><i> AppendValues(Array values)
|
|
</I>><i>
|
|
</I>><i> When I attempt to pass an array of strings for the values, the first
|
|
</I>><i> element of the passed array gets populated for each value. I believe that
|
|
</I>><i> even though I am passing an array, it is only taking the first value of
|
|
</I>><i> the array because it thinks its still a variable argument call with only
|
|
</I>><i> one variable argument. I attempted to use Type.Invoke on the method,
|
|
</I>><i> specifying the arguments as just typeof(Array), however it still did the
|
|
</I>><i> same thing.
|
|
</I>><i>
|
|
</I>><i> Any ideas how I can overcome this?
|
|
</I>><i>
|
|
</I>
|
|
--
|
|
View this message in context: <A HREF="http://www.nabble.com/Calling-TreeStore.AppendValues-with-array-of-values-tp17371182p18099982.html">http://www.nabble.com/Calling-TreeStore.AppendValues-with-array-of-values-tp17371182p18099982.html</A>
|
|
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
|
|
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="008751.html">[Gtk-sharp-list] A new Mono Blog
|
|
</A></li>
|
|
<LI>Next message: <A HREF="008754.html">[Gtk-sharp-list] Gtk.DotNet && System.Drawing && Images, strange behavior
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#8753">[ date ]</a>
|
|
<a href="thread.html#8753">[ thread ]</a>
|
|
<a href="subject.html#8753">[ subject ]</a>
|
|
<a href="author.html#8753">[ 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>
|