Re: calendar with Gtk+ 2.0

2007-04-15 Thread Murray Cumming
On Sat, 2007-04-14 at 16:45 +0100, Andrew Sobala wrote:
 vicente garcia wrote:
  Hi, I'm programming a GTK program with freepascal and MySQL. The 
  application
  must administer a Medical center and I need a calendar to show when the
  patients must go to the doctor. I'm working with the widget GtkCalendar,
  it's cool but I need something like this:
  http://farm1.static.flickr.com/176/434960008_65ab81bc16_o.jpg
  
  I need something that show me the weeks and the hours of the day that is
  occupated the medical center. I think I can't do this with GtkCalendar.
  
  Can somebody help me, please?
 
 You'll have to write your own widget [1]. That said, check out the 
 source code for Evolution and Dates [2], which both implement something 
 like this. You might be able to steal their code :)
 
 (The Dates code is likely to be simpler and less full of CORBA than 
 Evolution.)

I'd really like extra API in GtkCalendar that allowed us to add events
information to the days. It seems like it would be a generically useful
thing:
http://bugzilla.gnome.org/show_bug.cgi?id=339540

I haven't got around to doing it myself.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


calendar with Gtk+ 2.0

2007-04-14 Thread vicente garcia

Hi, I'm programming a GTK program with freepascal and MySQL. The application
must administer a Medical center and I need a calendar to show when the
patients must go to the doctor. I'm working with the widget GtkCalendar,
it's cool but I need something like this:
http://farm1.static.flickr.com/176/434960008_65ab81bc16_o.jpg

I need something that show me the weeks and the hours of the day that is
occupated the medical center. I think I can't do this with GtkCalendar.

Can somebody help me, please?

Thanks :)
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: calendar with Gtk+ 2.0

2007-04-14 Thread Andrew Sobala
vicente garcia wrote:
 Hi, I'm programming a GTK program with freepascal and MySQL. The 
 application
 must administer a Medical center and I need a calendar to show when the
 patients must go to the doctor. I'm working with the widget GtkCalendar,
 it's cool but I need something like this:
 http://farm1.static.flickr.com/176/434960008_65ab81bc16_o.jpg
 
 I need something that show me the weeks and the hours of the day that is
 occupated the medical center. I think I can't do this with GtkCalendar.
 
 Can somebody help me, please?

You'll have to write your own widget [1]. That said, check out the 
source code for Evolution and Dates [2], which both implement something 
like this. You might be able to steal their code :)

(The Dates code is likely to be simpler and less full of CORBA than 
Evolution.)

-- 
Andrew

[1] 
http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28 
and 
http://gnomejournal.org/article/36/writing-a-widget-using-cairo-and-gtk28-part-2
 
are good starting points.
[2] http://pimlico-project.org/dates.html
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list