Re: Widgets in a Combo box
- From: dermot glade perl connectfree co uk
- To: Jon Mitchell <txe_stc yahoo com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Widgets in a Combo box
- Date: Sat, 06 Apr 2002 15:52:31 +0100
Hi Jon,
Jon Mitchell wrote:
Hi,
I'm trying to put a widget inside the drop down part of the combo box,
specifically a Calendar widget - basically trying to emulate the
Gnome::DateEdit widget which is braindead for date formats that are
non-US. The Gtk documentation says that pretty much any widget can be
put in the dropdown box, but I just can't get it to work:
I don't know where the docs say this so I can't comment but I would
guess that it would be easier to construct my_dateedit in the same
way as gnome-libs/libgnomeui/gnome-dateedit.c but in Perl. The gnome
source is quite clear and I guess that I would add a frame/calendar
to the popup in the same way but show it with some more intelligence
so that it is always on screen and the borders are visible.
Perhaps you could package it up so that a user can provide their own
formatting methods to override the default get_date() method or simply
specify a date format string.
Regards, Dermot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]