View previous topic :: View next topic |
Author |
Message |
WolfenSteed
Joined: 15 Feb 2006 Posts: 7 Location: San Diego
|
Posted: Wed Feb 15, 2006 9:16 pm Post subject: VirtualTreePrintDocument doesn't work on CustomTypeEditor |
|
|
If you use the VirtualTreePrintDocument on the CustomTypeEditor_VB sample, the progress bars print out above the VirtualTree. _________________ Walt :)
Nothing is too small to know, and nothing is too big to attempt. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Feb 15, 2006 10:07 pm Post subject: |
|
|
You are right there is an issue here. The problem is actually with the way the sample implements the PaintValue method using windows themes. You see if you comment out the following code which draws using themes that it will print OK:
Code: | // if (_theme.Supported)
// {
// _theme.DrawThemeBackground(e.Graphics, e.Bounds, (int)XpTheme.ProgressParts.Bar, 0);
// _theme.DrawThemeBackground(e.Graphics, barBounds, (int)XpTheme.ProgressParts.Chunk, 0);
// }
// else
{
e.Graphics.DrawRectangle(Pens.Black, e.Bounds);
e.Graphics.FillRectangle(Brushes.Blue, barBounds);
}
|
This seems to indicate the issue is in the XpTheme class. We will take a look at this for the next release. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Feb 27, 2006 10:05 am Post subject: |
|
|
This has now been fixed in the latest release (2.4.1) _________________ Infralution Support |
|
Back to top |
|
|
|