[gtkada] getting info from an editable text field

Preben Randhol randhol at pvv.org
Mon Sep 25 14:22:40 CEST 2000


Preben Randhol <randhol at pvv.org> wrote on 25/09/2000 (09:59) :
> caleb baker <saleeb_13 at hotmail.com> wrote on 25/09/2000 (09:51) :
> > that link doesn't seem to work. it uses a widget called entry, but i can't 
> > seem to find or use it.
> 
> In GtkAda it is called Gentry as entry is a reserved word.
> 
> Read: http://gtkada.eu.org/gtkada_rm_72.html#SEC306

Hmm it is not up to date. Better to read gtk-gentry.abs and
gtk-editable.ads

you should use the:

   function Get_Chars
      (Editable  : access Gtk_Editable_Record;
       Start_Pos : in Gint := 0;
       End_Pos   : in Gint := -1)
       return         String;
   --  Get the text from Start_Pos to End_Pos.
   --  If End_Pos is negative, the text from Start_Pos to the end is returned.

from the latter to get the string the user has typed.

-- 
Preben Randhol - Ph.D student - http://www.pvv.org/~randhol/
"i too once thought that when proved wrong that i lost somehow"
                               - i was hoping, alanis morisette




More information about the gtkada mailing list