[Glade-users] Entry And Text



PCc0d3r wrote:

Firstly I want to make some exercises on entries and texts
i made an entry(entry1), a text(text1) and a button(button1)
- how can i show the text (which was in entry) in text when button clicked
like that in delphi
entry1.Caption := text1.text

- i know how to write a file in glade but i want the program to write the
text in text1 to the file which i will type in entry1

You add a signal handler for the button's "clicked" signal.

In the handler function you use lookup_widget() to get a pointer to the
entry and text widgets, and use the gtk_entry_get_text() and gtk_text_insert()
functions to copy the text across.

Damon







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