зеркало из https://github.com/mono/mail-archives.git
136 строки
5.5 KiB
HTML
136 строки
5.5 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> [Gtk-sharp-list] combo widget
|
||
|
</TITLE>
|
||
|
<LINK REL="Index" HREF="index.html" >
|
||
|
<LINK REL="made" HREF="mailto:jluke%40users.sourceforge.net">
|
||
|
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
|
||
|
<LINK REL="Previous" HREF="003609.html">
|
||
|
<LINK REL="Next" HREF="003608.html">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
<H1>[Gtk-sharp-list] combo widget
|
||
|
</H1>
|
||
|
<B>John Luke
|
||
|
</B>
|
||
|
<A HREF="mailto:jluke%40users.sourceforge.net"
|
||
|
TITLE="[Gtk-sharp-list] combo widget">jluke@users.sourceforge.net
|
||
|
</A><BR>
|
||
|
<I>Fri, 12 Mar 2004 12:30:36 -0500</I>
|
||
|
<P><UL>
|
||
|
<LI> Previous message: <A HREF="003609.html">[Gtk-sharp-list] combo widget
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="003608.html">[Gtk-sharp-list] Glade and GTK Sharp Combo Boxes
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#3612">[ date ]</a>
|
||
|
<a href="thread.html#3612">[ thread ]</a>
|
||
|
<a href="subject.html#3612">[ subject ]</a>
|
||
|
<a href="author.html#3612">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
<HR>
|
||
|
<!--beginarticle-->
|
||
|
<PRE>On Fri, 2004-03-12 at 18:09 +0100, Borja Sanchez Zamorano wrote:
|
||
|
|
||
|
string[] is correct now, the docs in cvs will reflect this but the old
|
||
|
moethods were not quite removed in time for the release. This is one of
|
||
|
the wonderful API improvements that we got in 0.17 (i.e. the removal of
|
||
|
GLib.GList and GSList from the public API)
|
||
|
|
||
|
><i> In the implementation of gtk-sharp only exist PopdownStrings for
|
||
|
</I>><i> string[], but in the monodoc exist two. I don't understand it. Sorry.
|
||
|
</I>><i>
|
||
|
</I>><i> In gtk-sharp-0.16 exist only Combo.PopdownStrings for GLib.List
|
||
|
</I>><i> In gtk-sharp-0.17 exist only Combo.PopdownStrings for string[]
|
||
|
</I>><i>
|
||
|
</I>><i> BorSanZa
|
||
|
</I>><i>
|
||
|
</I>><i> El vie, 12-03-2004 a las 16:03, Roberto Díaz escribió:
|
||
|
</I>><i> > Hello,
|
||
|
</I>><i> >
|
||
|
</I>><i> > I'm using Mono 0.30 and gtk-sharp 0.17 and I'm trying to compile this
|
||
|
</I>><i> > code:
|
||
|
</I>><i> >
|
||
|
</I>><i> > using System;
|
||
|
</I>><i> > using System.Runtime.InteropServices;
|
||
|
</I>><i> > using Gtk;
|
||
|
</I>><i> > using GLib;
|
||
|
</I>><i> >
|
||
|
</I>><i> > class ComboSample{
|
||
|
</I>><i> > Combo combo;
|
||
|
</I>><i> > OptionMenu opt;
|
||
|
</I>><i> > static void Main ()
|
||
|
</I>><i> > {
|
||
|
</I>><i> > new ComboSample ();
|
||
|
</I>><i> > }
|
||
|
</I>><i> > ComboSample ()
|
||
|
</I>><i> > {
|
||
|
</I>><i> > Application.Init ();
|
||
|
</I>><i> > Window win = new Window ("ComboSample");
|
||
|
</I>><i> > win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
|
||
|
</I>><i> >
|
||
|
</I>><i> > GLib.List l = new GLib.List (IntPtr.Zero,
|
||
|
</I>><i> > typeof(string));
|
||
|
</I>><i> > l.Append("hello");
|
||
|
</I>><i> >
|
||
|
</I>><i> > combo = new Combo ();
|
||
|
</I>><i> > combo.PopdownStrings = l;
|
||
|
</I>><i> > combo.DisableActivate ();
|
||
|
</I>><i> > combo.Entry.Activated += new EventHandler
|
||
|
</I>><i> > (OnEntryActivated);
|
||
|
</I>><i> >
|
||
|
</I>><i> > win.Add (combo);
|
||
|
</I>><i> > win.ShowAll ();
|
||
|
</I>><i> > Application.Run ();
|
||
|
</I>><i> > }
|
||
|
</I>><i> > }
|
||
|
</I>><i> >
|
||
|
</I>><i> > I get on the line "combo.PopdownStrings = l" this error :
|
||
|
</I>><i> >
|
||
|
</I>><i> > error CS0029: Cannot convert implicitly from `GLib.List' to `string[]'
|
||
|
</I>><i> >
|
||
|
</I>><i> > I've seen on monodoc that combo.PopdownStrings accepts string input and
|
||
|
</I>><i> > GLib.List input, right?
|
||
|
</I>><i> >
|
||
|
</I>><i> > How can I put GLib.List inside Gtk.Combo?
|
||
|
</I>><i> >
|
||
|
</I>><i> > any idea?
|
||
|
</I>><i> >
|
||
|
</I>><i> > Best regards.
|
||
|
</I>><i> >
|
||
|
</I>><i> > Roberto.
|
||
|
</I>><i> >
|
||
|
</I>><i> >
|
||
|
</I>><i> >
|
||
|
</I>><i> > _______________________________________________
|
||
|
</I>><i> > Gtk-sharp-list maillist - <A HREF="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@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>><i> --
|
||
|
</I>><i> Borja Sanchez Zamorano <<A HREF="mailto:borsanza@terra.es">borsanza@terra.es</A>>
|
||
|
</I>><i>
|
||
|
</I>><i> _______________________________________________
|
||
|
</I>><i> Gtk-sharp-list maillist - <A HREF="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@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>
|
||
|
|
||
|
</PRE>
|
||
|
<!--endarticle-->
|
||
|
<HR>
|
||
|
<P><UL>
|
||
|
<!--threads-->
|
||
|
<LI> Previous message: <A HREF="003609.html">[Gtk-sharp-list] combo widget
|
||
|
</A></li>
|
||
|
<LI> Next message: <A HREF="003608.html">[Gtk-sharp-list] Glade and GTK Sharp Combo Boxes
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#3612">[ date ]</a>
|
||
|
<a href="thread.html#3612">[ thread ]</a>
|
||
|
<a href="subject.html#3612">[ subject ]</a>
|
||
|
<a href="author.html#3612">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
</body></html>
|