[gtkada] getting info from an editable text field

Arnaud Charlet charlet at ACT-Europe.FR
Mon Sep 25 14:30:31 CEST 2000


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

Are you sure ? I believe the online doc is up to date.

> 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.

Which is from the Gtk_Editable documentation.

Arno




More information about the gtkada mailing list