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

Peter Johanson latexer at gentoo.org
Mon Feb 5 18:15:02 EST 2007


On Mon, Feb 05, 2007 at 11:02:46PM +0000, Luciano _ wrote:
> I cannot make it work: I use
> 
> Widget[] FocusWidget = new Widget[2];
> Focused[0] = FirstTreeView;
> Focused[1] = SecondTreeView;
> MyWindow.FocusChain = FocusWidget;
> 
> Is this the correct way?

Just a guess, but probably the problem is you're setting the FocusChain
property on the window, instead of the actual container that holds
those two widgets.  I'd fiddle with setting the FocusChain property on
different containers in the hierarchy.

-pete

-- 
Peter Johanson
<latexer at gentoo.org>


More information about the Gtk-sharp-list mailing list