Re: gtk text entry



hi 

the error dialog everything z coming, but when i entered text in to
gtk_entry widget and tried to get that using gtk_entry_get_text i can't
able to get the entered data back. i can't able to print the get entry
text to console. what i have to do.

thanks;

vasu.
On Thu, 2005-05-19 at 12:53, Muthiah Annamalai wrote:
Hi,
To Check the entry widget for some text you can use
this.
<CODE>
const char *ptr= gtk_entry_get_text(text_widget);
if (!strlen(ptr)) throw_error_popup();
</CODE>
-Muthu

--- srinivas <srinivas comodo com> wrote:
hi all;

   i am developing gui with glade and c. now i have
a "text entry" and
"next button" widget. when i press next button the
next frame will be
shown, but before displaying the next frame i would
like to check
whether text entry had filled with some text or not.
if it is filled
then the frame will be displayed, if not i will give
pop up msg saying
enter text b'fore pressing next. how to check the
text presence in text
entry.

thanks & regards;

vasu.



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



              
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail




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