[gtkada] Text_Buffer selection

Arnaud Charlet charlet at ACT-Europe.FR
Mon Jul 21 16:12:00 CEST 2003


> As you have guessed, you have to play with the selection bounds. These
> are internally handled as named marks, so all you have to do is
> something like
> 
>       Move_Mark_By_Name (Buffer, "insert", Iter_1);
>       --  This moves the cursor
> 
>       Move_Mark_By_Name (Buffer, "selection_bound", Iter_2);
>       --  This moves the selection bound

Alternatively, you can use Get_Insert, Get_Selection_Bound, and call
Move_Mark and/or Place_Cursor.

Arno



More information about the gtkada mailing list