[Gtk-sharp-list] Problem in using GtkTreeview
Luciano _
lnc19 at hotmail.com
Wed Dec 27 07:23:46 EST 2006
The correct example is: :)
thetreeview.Model.Foreach(new TreeModelForeachFunc(DoSomething));
public static bool DoSomething(TreeModel model, TreePath path, TreeIter
iter)
{
if((bool)model.GetValue(iter, 1))
// Do Something
// This value tell that it will keep going
return false;
}
Luciano
>From: "Luciano _" <lnc19 at hotmail.com>
>To: lordphoenix at free.fr, gtk-sharp-list at lists.ximian.com
>Subject: Re: [Gtk-sharp-list] Problem in using GtkTreeview
>Date: Wed, 27 Dec 2006 12:13:28 +0000
>MIME-Version: 1.0
>X-Originating-IP: [200.32.99.37]
>X-Originating-Email: [lnc19 at hotmail.com]
>X-Sender: lnc19 at hotmail.com
>Received: from lists.ximian.com ([130.57.169.22]) by
>bay0-mc12-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed,
>27 Dec 2006 04:13:37 -0800
>Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by
>lists.ximian.com (Postfix) with ESMTP id 2605A1CFBDB;Wed, 27 Dec 2006
>08:25:04 -0500 (EST)
>Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by
>lists.ximian.com (Postfix) with ESMTP id 39B011CFB54for
><gtk-sharp-list at lists.ximian.com>;Wed, 27 Dec 2006 08:25:03 -0500 (EST)
>Received: by herald.ximian.com (Postfix, from userid 2601)id A2D57700BE;
>Wed, 27 Dec 2006 07:13:34 -0500 (EST)
>Received: from bay0-omc2-s28.bay0.hotmail.com
>(bay0-omc2-s28.bay0.hotmail.com[65.54.246.164])by herald.ximian.com
>(Postfix) with ESMTP id E88B67009Efor
><gtk-sharp-list at lists.ximian.com>;Wed, 27 Dec 2006 07:13:29 -0500 (EST)
>Received: from hotmail.com ([65.54.175.50]) by
>bay0-omc2-s28.bay0.hotmail.comwith Microsoft SMTPSVC(6.0.3790.2668); Wed,
>27 Dec 2006 04:13:28 -0800
>Received: from mail pickup service by hotmail.com with Microsoft
>SMTPSVC;Wed, 27 Dec 2006 04:13:28 -0800
>Received: from 65.54.175.200 by by104fd.bay104.hotmail.msn.com with
>HTTP;Wed, 27 Dec 2006 12:13:28 GMT
>X-Message-Info: LsUYwwHHNt1Oo5NIpkgMVEAFD2OBZ6rLWCCcJ0Qs+mw=
>X-Original-To: gtk-sharp-list at lists.ximian.com
>Delivered-To: gtk-sharp-list at lists.ximian.com
>X-OriginalArrivalTime: 27 Dec 2006 12:13:28.0594
>(UTC)FILETIME=[6AC9C720:01C729B0]
>X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
>frontgate.ximian.com
>X-Spam-Level: ****
>X-Spam-Status: No, score=4.7 required=5.0
>tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FROM_ENDS_IN_NUMS,MSGID_FROM_MTA_HEADER,MY_OBFUT,MY_OBFUX,MY_OBFU_MISC,SPF_HELO_PASS,SPF_PASS
>version=3.0.3
>X-BeenThere: gtk-sharp-list at lists.ximian.com
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: "Discussion of the .Net bindings for
>Gnome"<gtk-sharp-list.lists.ximian.com>
>List-Unsubscribe:
><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=unsubscribe>
>List-Archive: <http://lists.ximian.com/pipermail/gtk-sharp-list>
>List-Post: <mailto:gtk-sharp-list at lists.ximian.com>
>List-Help: <mailto:gtk-sharp-list-request at lists.ximian.com?subject=help>
>List-Subscribe:
><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=subscribe>
>Errors-To: gtk-sharp-list-bounces at lists.ximian.com
>Return-Path: gtk-sharp-list-bounces at lists.ximian.com
>
>
>I guess you can use Foreach method:
>
>
>thetreeview.Model.Foreach(new TreeModelForeachFunc(DoSomething));
>
>public static bool DoSelectChange(TreeModel model, TreePath path, TreeIter
>iter)
>{
> if((bool)model.GetValue(iter, 1))
> // Do Something
>
> // This value tell that it will keep going
> return false;
>}
>
>Luciano
>ps: if you want to change Layout instead of read the info about
>TreeViewColumn.SetCellDataFunc
>
>
>
>
> >From: lordphoenix <lordphoenix at free.fr>
> >To: gtk-sharp-list at lists.ximian.com
> >Subject: [Gtk-sharp-list] Problem in using GtkTreeview
> >Date: Wed, 27 Dec 2006 11:16:55 +0100
> >MIME-Version: 1.0
> >Received: from lists.ximian.com ([130.57.169.22]) by
> >bay0-mc3-f6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed,
>27
> >Dec 2006 02:15:11 -0800
> >Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by
> >lists.ximian.com (Postfix) with ESMTP id 439211CFBAF;Wed, 27 Dec 2006
> >06:26:35 -0500 (EST)
> >Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by
> >lists.ximian.com (Postfix) with ESMTP id 6FEAA1CFB87for
> ><gtk-sharp-list at lists.ximian.com>;Wed, 27 Dec 2006 06:26:33 -0500 (EST)
> >Received: by herald.ximian.com (Postfix, from userid 2601)id A577B7009E;
> >Wed, 27 Dec 2006 05:15:07 -0500 (EST)
> >Received: from swip.net (mailfe08.tele2.fr [212.247.154.236])by
> >herald.ximian.com (Postfix) with ESMTP id 8877970093for
> ><gtk-sharp-list at lists.ximian.com>;Wed, 27 Dec 2006 05:15:03 -0500 (EST)
> >Received: from [80.170.75.21] (HELO jupiter)by mailfe08.swip.net
> >(CommuniGate Pro SMTP 5.0.12)with ESMTP id 366220602 for
> >gtk-sharp-list at lists.ximian.com;Wed, 27 Dec 2006 11:14:56 +0100
> >X-Message-Info: txF49lGdW421U3DYXtu//q3CAMSkoifUmi5CYPyqPyE=
> >X-Original-To: gtk-sharp-list at lists.ximian.com
> >Delivered-To: gtk-sharp-list at lists.ximian.com
> >X-Cloudmark-Score: 0.000000 []
> >X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i486-pc-linux-gnu)
> >X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
> >frontgate.ximian.com
> >X-Spam-Level: **
> >X-Spam-Status: No, score=2.0 required=5.0 tests=FORGED_RCVD_HELO
> >version=3.0.3
> >X-BeenThere: gtk-sharp-list at lists.ximian.com
> >X-Mailman-Version: 2.1.8
> >Precedence: list
> >List-Id: "Discussion of the .Net bindings for
> >Gnome"<gtk-sharp-list.lists.ximian.com>
> >List-Unsubscribe:
> ><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=unsubscribe>
> >List-Archive: <http://lists.ximian.com/pipermail/gtk-sharp-list>
> >List-Post: <mailto:gtk-sharp-list at lists.ximian.com>
> >List-Help: <mailto:gtk-sharp-list-request at lists.ximian.com?subject=help>
> >List-Subscribe:
> ><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=subscribe>
> >Errors-To: gtk-sharp-list-bounces at lists.ximian.com
> >Return-Path: gtk-sharp-list-bounces at lists.ximian.com
> >X-OriginalArrivalTime: 27 Dec 2006 10:15:11.0345 (UTC)
> >FILETIME=[E47F8610:01C7299F]
> >
> >I'm looking for the best way to browse a ListStore from first element
> >to last.
> >It's a listore with one string and one bool per row and I need to make
> >treatment on each string wich corresponding boolean is true.
> >
> >I've found a solution but I don't like it and it makes me to have
> >troubles in some particular case.
> >
> >What kind of solution would you use?
> >
> >PS : Sorry for ma bad English I don't speak it very often :)
> >
> >Thanks for your help.
>
>
> ><< signature.asc >>
>
>
>
>
> >_______________________________________________
> >Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> >http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>_________________________________________________________________
>De todo para la Mujer Latina http://latino.msn.com/mujer/
>
>_______________________________________________
>Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo EE.UU.
http://latino.msn.com/empleos
More information about the Gtk-sharp-list
mailing list