[Gtk-sharp-list] Prevent focus in panels.

Luciano _ lnc19 at hotmail.com
Mon Feb 5 13:04:58 EST 2007


Thanks. I will read it and try.




>From: Peter Johanson <latexer at gentoo.org>
>To: gtk-sharp-list at lists.ximian.com
>Subject: Re: [Gtk-sharp-list] Prevent focus in panels.
>Date: Mon, 5 Feb 2007 09:42:50 -0800
>MIME-Version: 1.0
>Received: from lists.ximian.com ([130.57.169.22]) by 
>bay0-mc8-f23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 5 
>Feb 2007 09:43:03 -0800
>Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by 
>lists.ximian.com (Postfix) with ESMTP id A98F61CFBFB;Mon,  5 Feb 2007 
>14:09:04 -0500 (EST)
>Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by 
>lists.ximian.com (Postfix) with ESMTP id 0D9E61CFB9Ffor 
><gtk-sharp-list at lists.ximian.com>;Mon,  5 Feb 2007 14:09:03 -0500 (EST)
>Received: by herald.ximian.com (Postfix, from userid 2601)id 93C7C70042; 
>Mon,  5 Feb 2007 12:42:59 -0500 (EST)
>Received: from mail.cubesearch.com (unknown [207.115.69.50])by 
>herald.ximian.com (Postfix) with ESMTP id 02E8370043for 
><gtk-sharp-list at lists.ximian.com>;Mon,  5 Feb 2007 12:42:54 -0500 (EST)
>Received: by mail.cubesearch.com (Postfix, from userid 522)id 07AF1B4153; 
>Mon,  5 Feb 2007 09:42:51 -0800 (PST)
>X-Message-Info: LsUYwwHHNt2kJ3aEvakpnXfBJ6UOXZ2btgahIvD9vKY=
>X-Original-To: gtk-sharp-list at lists.ximian.com
>Delivered-To: gtk-sharp-list at lists.ximian.com
>Mail-Followup-To: gtk-sharp-list at lists.ximian.com
>References: <BAY104-F152C44F70E43BCAC15DE63A6980 at phx.gbl>
>User-Agent: Mutt/1.5.13 (2006-08-11)
>X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on 
>frontgate.ximian.com
>X-Spam-Level: **
>X-Spam-Status: No, score=3.0 required=5.0 
>tests=AM_BODY_PLING,FORGED_RCVD_HELO,SPF_HELO_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
>X-OriginalArrivalTime: 05 Feb 2007 17:43:03.0964 (UTC) 
>FILETIME=[1659C5C0:01C7494D]
>
>On Mon, Feb 05, 2007 at 04:21:24PM +0000, Luciano _ wrote:
> > Hi!!!
> > I have two TreeViews, 1 button and 1 entry in a Window.
> > I need to only move the focus (with tab key) only in between treeviews, 
>and
> > not to the entry and the button. The only way to get focus on button or
> > entry is to use the mouse. The problem is, that if i set CanDefault to 
>false
> > in entry and button, it prevent to get the focus always, and i cannot 
>never
> > focus this objects.
> > If cannot use FocusOut event beacause if i GrabFocus to the other 
>TreeView
> > it lost always the focus the first one selected and not the other 
>objects.
> > Is there any way of do this?
>
>You can use the Gtk.Container.FocusChain property to override this. You
>can see the gtk+ docs for this here:
>
>http://developer.gnome.org/doc/API/2.0/gtk/GtkContainer.html#gtk-container-set-focus-chain
>
>-pete
>
>--
>Peter Johanson
><latexer at gentoo.org>
>_______________________________________________
>Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

_________________________________________________________________
Visita MSN Latino Noticias: Todo lo que pasa en el mundo y en tu paín, ¡en 
tu idioma! http://latino.msn.com/noticias/



More information about the Gtk-sharp-list mailing list