On Jan 17, 2007, at 18:52 UTC, Paul Dobbs wrote: > I have the following code in the paint event of a canvas. Knob2 is a > pict that has been imported to the project. When I run the project, > nothing shows up. What am I doing wrong? > > Dim pmo As New PixmapShape > > pmo.Image = knob2 > pmo.Width = g.Width > pmo.Height = g.Height > g.DrawObject pmo, g.Width\2, g.Height\2
Check your SourceWidth and SourceHeight properties. You might expect these to be automatically set to knob2.width and knob2.height when you assign knob2 to Image, but IIRC, this doesn't happen. So by default, you're drawing a zero-by-zero area of the source image. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
