Re: [gtk-list] Combo box widget
- From: Kenneth Albanowski <kjahds kjahds com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Combo box widget
- Date: Sun, 17 Aug 1997 19:19:14 -0400 (EDT)
On Sun, 17 Aug 1997, Arun Sharma wrote:
> Gtk gurus,
>
> I am trying to write a combo box widget [1] and am through with deriving
> it from gtkentry and displaying the arrow etc.
>
> Can someone advise me on which one of the following implementations is
> better for the list ?
>
> (a) Implementing the list as a separate gtklist widget and managed by
> gtkcombo.
> (b) Writing it from the first principles from a Gdkwindow and
> duplicating code in gtklist.
>
> Sorry if some of this sounds stupid -- never written a widget before.
I've never written a widget, but I can guarantee you that (a) is the smart
choice. Remember that the entry widget is always "there", but the list
widget is only there temporarily. That is a perfect reason for making the
list a has-a relationship, with the entry probably best being is-a for
simplicity.
--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]