RE: [INIMSS] How to add and delete text from GtkText.



Try:

gchar *mytext = "test\n\n\nhelloworld";

gtk_text_insert(GTK_TEXT(mycontrol),NULL,NULL,NULL,mytext,-1);

see the manual pages for more information:
http://developer.gnome.org/doc/API/gtk/gtktext.html#GTK-TEXT-INSERT

-----Original Message-----
From: Dino Cherian K [mailto:inimss yahoo com] 
Sent: 28 February 2002 07:03
To: günther
Cc: gtk-app-devel-list gnome org
Subject: Re: [INIMSS] How to add and delete text from GtkText.

Hi

Thanks, but I am talking about GtkText and not GtkEntry.

Thanks
Dino


On Wednesday 27 February 2002 20:31, günther wrote:
 Try

 gchar *string = "test";
   GtkEditable *entry_field;
 gtk_entry_set_text(GTK_ENTRY(entry_filed), string);  /* to define text
 */
 gtk_entry_set_text(GTK_ENTRY(entry_filed),"");            /* to clear
text */

 Best Regards

 Günther

 Dino Cherian K wrote:
 > Hi All
 >
 > Anybody please help me with some sample code for adding and deleting
 > text from GtkText
 >
 > Thank You
 > Dino CK
 > _______________________________________________
 > gtk-app-devel-list mailing list
 > g
 > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

----------------------------------------
Content-Type: text/x-vcard; charset="us-ascii"; name="guenther.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for g?nther
----------------------------------------
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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