> > I see the "Draw: ... " message non-stop. > The most common cause is an invalidation in the expose routine which > basically creates a tight loop.
Makes sense, I think it is when I check the size of the drawing area. I'll have to poke at that some more. In the meantime I've managed to break it. :( Now the drawing area doesn't clear. As the area is expanded or contracted I scale the calendar, but only down to a certain height and width and then the scroll bars kick in. > > This is the first time I've used DrawingArea or Cairo as I'm not a > > graphics guy at all, but I really need a weekview calendar widget for > > Gtk# and none seem to be available. So far Cairo seems very nice to > > use, and fast; I've been able to draw hour lines and day columns, > > etc... but the documentation on some of the gritty details is rather > > sparse. > For something like a calendar widget, I would use Gtk.Style instead of > going directly to cairo, since then your widget is more likely to look > integrated for people using different themes. If you are interested in > seeing how something like that can be done, there is a Calendar view in > my toy fitness log app. > http://exert.svn.sourceforge.net/viewvc/exert/trunk/exert/src/CalendarView.cs?revision=66&view=markup > There's a screenshot of it in action: > http://sourceforge.net/project/screenshots.php?group_id=161797 Funny, I've been researching for months, reading blogs, articles, and tutorials; and not one ever mentioned Gtk.Style. Do you know of any tutorials or documentation relating to Gtk.Style beyond what is presented in Monodoc? My target is more *like* - http://www.monocalendar.com/images/screenshots/Monocalendar-0.1b.jpg - than a month view. I don't know if that makes any difference in your recommendation.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
