mail-archives/gtk-sharp-list/2008-March/008515.html

82 строки
3.5 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Switching focus on objects as pressing &quot;tab&quot; key ?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Switching%20focus%20on%20objects%20as%20pressing%20%22tab%22%0A%20key%20%3F&In-Reply-To=20080317154308.GP15083%40butchest.cubesearch.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008514.html">
<LINK REL="Next" HREF="008516.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Switching focus on objects as pressing &quot;tab&quot; key ?</H1>
<B>Jesper K. Pedersen</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Switching%20focus%20on%20objects%20as%20pressing%20%22tab%22%0A%20key%20%3F&In-Reply-To=20080317154308.GP15083%40butchest.cubesearch.com"
TITLE="[Gtk-sharp-list] Switching focus on objects as pressing &quot;tab&quot; key ?">linux at famped.dk
</A><BR>
<I>Mon Mar 17 14:01:20 EDT 2008</I>
<P><UL>
<LI>Previous message: <A HREF="008514.html">[Gtk-sharp-list] Switching focus on objects as pressing &quot;tab&quot; key ?
</A></li>
<LI>Next message: <A HREF="008516.html">[Gtk-sharp-list] Menu Item
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8515">[ date ]</a>
<a href="thread.html#8515">[ thread ]</a>
<a href="subject.html#8515">[ subject ]</a>
<a href="author.html#8515">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Mon, 17 Mar 2008 08:43:09 -0700
Peter Johanson &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">peter at peterjohanson.com</A>&gt; wrote:
&gt;<i> On Sun, Mar 16, 2008 at 10:23:53PM +0100, Jesper K. Pedersen wrote:
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; I had hoped there were either a way to &quot;inject&quot; a keycode in the gtk
</I>&gt;<i> &gt; key event system or a simple way to switch to the next gtk.entry
</I>&gt;<i> &gt; object.
</I>&gt;<i>
</I>&gt;<i> Try looking at Gtk.Widget.ChildFocus (DirectionType). See:
</I>&gt;<i>
</I>&gt;<i> <A HREF="http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ChildFocus(Gtk.DirectionType">http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ChildFocus(Gtk.DirectionType</A>)
</I>&gt;<i>
</I>&gt;<i> It's usually for actual custom widget implementations, but may work
</I>&gt;<i> for what you need.
</I>&gt;<i>
</I>
And that works like a charm - basically setting all the entry's
activated eventhandler to a single function that does the
ChildFocus(DirectionType.TabForward) method.
Thank you for the assistance.
Best regards
Jesper KP
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008514.html">[Gtk-sharp-list] Switching focus on objects as pressing &quot;tab&quot; key ?
</A></li>
<LI>Next message: <A HREF="008516.html">[Gtk-sharp-list] Menu Item
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8515">[ date ]</a>
<a href="thread.html#8515">[ thread ]</a>
<a href="subject.html#8515">[ subject ]</a>
<a href="author.html#8515">[ 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>