Re: Default text



Demetris Zavorotnichenko wrote:
Hi everyone.

How can I make a text field Widget be the default one when I start my
application? (So that the cursor is already located there and ready for
typing)

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list

Hi.

There are many examples of this in the gtk tutorial.

E.g. http://library.gnome.org/devel/gtk-tutorial/stable/x1370.html

    GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
    gtk_widget_grab_default (button);


Regards.


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