Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VirtualTreePrintDocument doesn't work on CustomTypeEditor

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
WolfenSteed



Joined: 15 Feb 2006
Posts: 7
Location: San Diego

PostPosted: Wed Feb 15, 2006 9:16 pm    Post subject: VirtualTreePrintDocument doesn't work on CustomTypeEditor Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Feb 15, 2006 10:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Feb 27, 2006 10:05 am    Post subject: Reply with quote

This has now been fixed in the latest release (2.4.1)
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group