[Gtk-sharp-list] Need a DateTimePicker
stacheldraht at interia.pl
Tue Jul 1 17:49:51 UTC 2014
Am Dienstag, den 01.07.2014, 10:54 -0300 schrieb Emiliano Gabriel
> Hello all!
> I need a DateTimePicker for a proyect. I thought about doing it from a
> renderization of Gtk.Calendar in a ComboBoxEntry, but i don't how to
> create a custom CellRenderer with a Calendar.
I have developed such a widget. Instead of a ComboBoxEntry, I created a
custom widget using an Entry and a Button inside an HBox. Upon clicking
the button, you get a popup window with a Calendar widget inside.
Selecting a specific date / time triggers a callback to the
abovementioned custom widget filling in the date / time into the Entry.
Additionally, you can hammer the date manually into the Entry. It's then
automatically converted into ISO syntax.
The sourcecode is fairly simple, but as I develop with MonoDevelop
(partial classes, you know…), it's not very easy to post the code here.
If you are interested, however, I could post it as an attachment.
More information about the Gtk-sharp-list