[gtkada] Recommendation for Which Widgets To Use

Emmanuel Briot briot at gnat.com
Thu Aug 31 16:20:53 CEST 2000


Robert B. Love writes:
 > I want to have a rectangular array of numbers and or text strings
 > displayed in non-editable fields.  I also want to be able
 > to change some visual property, most likely the background color,
 > when the value is out of limits.
 > 
 > I see three possibilities. Two depend on Gtk.Table and one on
 > Gtk.Extra.Sheet.  The combinations I know of are:
 > 
 > 1) Gtk.Table and Gtk.GEntry.
 > 2) Gtk.Table and Gtk.Text.
 > 3) Gtk.Extra.Sheet.
 > 
 > Combination 1 seems the simplest but I don't see a way to change
 > the background color.  Combination 2 seems like overkill since
 > I don't need multiline editing and don't want scroll bars.  Combination
 > 3 probably has all the features I want but this also seems like
 > overkill.


I would suggest to simply use a Gtk.Clist widget, since you can change all the
font and color attributes on a cell basis. The cell are not editable, but this
is what you want.
Probably the lightweight solution would be to use this simple widget, which is
quite optimized.





More information about the gtkada mailing list