[9912] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: best drop-down list box?

daemon@ATHENA.MIT.EDU (Scott Stone)
Thu Nov 5 23:33:59 1998

Date: Fri, 6 Nov 1998 13:34:10 +0900 (JST)
From: Scott Stone <sstone@ume.pht.co.jp>
To: gtk-list@redhat.com
In-Reply-To: <36427CDF.B4448245@pobox.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Thu, 5 Nov 1998, Jeff Garzik wrote:

> How can I obtain the behavior of a gtk_combo widget, without the
> gtk_entry being editable at all?  Trying to achieve the standard
> Windows-style drop-down list.
> 
> I thought about making the gtk_entry insensitive, but that would grey
> each list selection...

Why not just use a GTK_POPUP window (or GTK_DIALOG, depending on how
you're handling input focus) with no window handles and pack buttons or
whatever into it?

As for the entry, I think there's a function to make an entry
non-editable, in gtk_entry.c.

--------------------------------------------------
Scott M. Stone <sstone@pht.com, sstone@pht.co.jp>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post