Discussion:
[Gtk-sharp-list] Need a DateTimePicker
Emiliano Gabriel Canedo
2014-07-01 13:54:42 UTC
Permalink
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.

thanks!
Emiliano
--
Jacek Rużyczka
2014-07-01 17:49:51 UTC
Permalink
Am Dienstag, den 01.07.2014, 10:54 -0300 schrieb Emiliano Gabriel
Post by Emiliano Gabriel Canedo
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.

Kind regards
Jacek Rużyczka
Emiliano Gabriel Canedo
2014-07-01 19:19:01 UTC
Permalink
Post by Jacek Rużyczka
Am Dienstag, den 01.07.2014, 10:54 -0300 schrieb Emiliano Gabriel
Post by Emiliano Gabriel Canedo
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.
Kind regards
Jacek RuÅŒyczka
Hello Jacek,

It's the widget i need. If you post the code (in github, or in any
place), i'll be very grateful.

thanks!
Emiliano

--
Andrey Gankov
2014-07-02 05:41:39 UTC
Permalink
Post by Emiliano Gabriel Canedo
It's the widget i need. If you post the code (in github, or in any
place), i'll be very grateful.
You can see or take my implementation described above widget.
https://github.com/QualitySolution/QSProjects/blob/master/QSWidgetLib/DatePicker.cs



--
View this message in context: http://mono.1490590.n4.nabble.com/Need-a-DateTimePicker-tp4663216p4663222.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

Continue reading on narkive:
Loading...