[Mono-winforms-list] SWF Theme: Windows XP

Jackson Harper jackson@ximian.com
Mon, 20 Sep 2004 23:51:31 -0500


Hi Fabian,

	First off, your screenshots look amazing. What are you using to draw
the controls? Are you doing all the drawing with System.Drawing or
pinvoking into a windows themeing API?

> Another issue I've found is that the use of double buffering has some
> problems when used with transparent bitmaps (buttons, radios, for
> eg.). I've made some modifications to the sources to draw to the dc
> directly, and everything works fine.

  I think we can just force the parent control to render, then blit the
parents DC before rendering our control. Thats a worse case scenario,
peter and I also discussed some better methods for this.

> 
> Here, http://www.bobpowell.net/transcontrols.htm, at the end, there's
> an explanation. Maybe it's useful to change something in the
> implementation.


> And the last thing I've found out it's that the dimensions of some
> controls (radio, scrollbar, for eg.) are not the same as the theme, so
> when I draw them they look stretched. It could be useful to include
> some methods in the theme to obtain the sizes of the parts.

  The Theme needs to handle both sizing and drawing. Anywhere we are not
doing this is a bug that should be fixed. Do you have specific examples?

> I attach some pictures of what I've done.
 
  Once again. These look awesome! Keep up the good work.

Cheers,
Jackson