Re: Cursor position - Deletion of Text.

    Henry> 1 - How do I get the cursor in a particular position: I have a pop
    Henry> up window with a form, and the cursor has to be in a particular
    Henry> entry.  This has to be built in, no keyboard or mouse.


    Henry> 2 - I have a GtkText that has some text in it that I got some
    Henry> way. I need to press a button and have the text disappear and the
    Henry> widget be ready to receive a new text. All this in the program, no
    Henry> human intervention by keyboard or mouse.

[Note: I haven't actually tried this, but it should work]
gtk_editable_delete_text(GTK_EDITABLE(text_widget), 0, 2000000)
Mark Leisher
Computing Research Lab            Once you fully apprehend the vacuity of a
New Mexico State University       life without struggle, you are equipped
Box 30001, Dept. 3CRL             with the basic means of salvation.
Las Cruces, NM  88003                            -- Tennessee Williams

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