[Gtk-sharp-list] Exposes Constantly

Adam Tauno Williams adam at morrison-ind.com
Fri Dec 14 09:13:25 EST 2007

> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071214/b7fd4877/attachment.bin 

More information about the Gtk-sharp-list mailing list