[gtkada] Clist and only one column

Preben Randhol randhol at pvv.org
Tue Feb 11 13:51:50 CET 2003


I have a Clist with only one column, but I when I append rows to it I
have to do Get_Element (List) + ""; and not simple Get_Element (List)
which returns a String. So now I'm really appending a row with two
columns. Can I Append without doing this?

sample code:

   declare
      String_Array : Gtkada.Types.Chars_Ptr_Array :=
            Get_Element (List) + "";
   begin
      Row := Append (Gui_Help_Window.Section_Clist, String_Array);
      Free (String_Array);
   end;

-- 
Preben Randhol ---------------- http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov



More information about the gtkada mailing list