Re: Controlling a widget from an other



David Nečas (Yeti <yeti <at> physics.muni.cz> writes:
> 
> > I made a Winforms GUI recently and there it was trivial to 
> > send keypresses to an other widget using SendKeys. Surely, after all these 
> > years of development GTK has to have some method to do that.
> 
> Do you really expect someone will help you after this rant?
> Anyway, I will try to remain constructive.

It wasn't meant to be a rant. I just wondered why I cannot find explicit 
examples about this in the tutorial or the documentation when I was sure GTK 
had to have something like this.

English is not my native language. Maybe I didn't express myself properly.

> 
> So if you still want this
> 
>     g_signal_connect(entry, "key-press-event",
>                      G_CALLBACK(key_pressed), treeview);
> 

Thanks for the example. I'll try it out.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]