[gtkada] Getting Text from an Entry Widget (2)
JJ Escanellas
juanjef at adinet.com.uy
Mon Oct 2 05:41:23 CEST 2000
Ok, I have just found that to look at include/gtkada it's an excelent
alternative to the Ref. Manual!
I'm trying to copy the text of an Entry Widget to another.
I've found that for the Gtk.GEntry there are the Get_Text function and
the Set_Text procedure. I understand that they should be just what I want.
But I receive a Constraint Error after execution if I try something like:
texto := To_Unbounded_String(Get_Text(Window1.Entry1))
and if I try instead
texto := To_Unbounded_String(Get_Chars(Gtk_Editable(Window1.Entry1),Gint( 0 ),Gint( -1 ) ));
I also receive the same.
I can't use the Set_Text procedure either.
-------------------------------------------------------
More information about the gtkada
mailing list