Re: Key bindings and clist?
| From: | Benjamin Smith | Date: | Tue, 03 Jun 2003 20:02:33 +0000 |
| Subject: | Re: Key bindings and clist? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3513@lists.php.net to get a copy of this message | ||
Knowing that this is the "focus" box gives me something I could (hopefully)
use. If I could get this focus box to move, I'd be set.
Using your (mostly) working search engine, I find that GtkContainer has a
Set_Focus_Child() function, but when I try to use it, I get:
Warning: set_focus_child() expects argument 1 to be GtkWidget, integer given
in C:\PROGRA~1\TEST\test_focus.php on line 19
Augh! I don't know of a way to reference a row within a GtkClist as anything
but an integer row... What am I missing?
-Ben
On Monday 02 June 2003 08:11 pm, Steph wrote:
> Ben, take a look at gtkclist.c and the binding_set entries.
>
> I've found in the past that signals used in bindings occasionally work
> as expected, and occasionally crash my box.
>
> But hey, it's a place to start :)
>
> The 'mystery box' btw is the one with focus.
>
>
> ----- Original Message -----
> From: "Benjamin Smith" <bens@effortlessis.com>
> To: <php-gtk-general@lists.php.net>
> Sent: Tuesday, June 03, 2003 1:50 AM
> Subject: [PHP-GTK] Key bindings and clist?
>
> > I'm looking to bind a key to a clist widget where pressing "enter"
>
> selects the
>
> > current row, then moves 1 (sometimes more, depending on context) row
>
> down, so
>
> > that pressing enter repeats the cycle.
> >
> > In working with Clist, there's "selection" which is easily manipulated
>
> with
>
> > the documented signals and functions, and then there's another kind of
> > "selection" that works like a cursor, and is manipulated by pressing
>
> the
>
> > arrow keys.
> >
> > For a small sample screenshot, see
> > http://www.effortlessis.com/screenshot.png
> >
> > It shows up as a box surrounding the row.
> >
> > How can I manipulate this cursor-box thing to tell it to move down one
>
> (or
>
> > more) rows?
> >
> > I tried using $clist->Emit() but got absolutely nowhere in a few hours
>
> of
>
> > trying. =(
> >
> > -Ben
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php