[Gambas-user] Grab command

tobi tobiasboege01 at ...1601...
Sun Apr 22 13:07:00 CEST 2012


On Sat, 21 Apr 2012, trat50 wrote:
> 
> But Tobi, I have been drawing just fine on a DrawingArea.
> The DrawingArea named "Sky" is the picture posted above...
>  
> I switched from a PictureBox to a DrawingArea because I couldn't draw on a
> PictureBox.
> Now I am back to the original problem...  how to draw on a PictureBox.
> 
> When I attempt to draw on PictureBox, I get error message: "not a drawable
> object".
> It sounds like I should be able to draw on a PictureBox - but I must be
> doing it wrong.
> 
> 
> tobi-15 wrote:
> > 
> > It's quite easy to draw on a DrawingArea. You have to take the
> > DrawgingArea as a drawing device:
> > 
> > Draw.Begin(DrawingArea)
> > Draw.Picture(myPicture)
> > Draw.End()
> > 
> > (typed from scratch, no warranty, but it should be close to these lines)
> > 
> > ------------------------------------------------------------------------------
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Grab-command-tp33715676p33727690.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

You don't need to draw on a PictureBox. Just draw on a Picture object and then place that drawn
Picture in the PictureBox:

Draw.Begin(myPicture)
...
Draw.End()
myPictureBox.Picture = myPicture




More information about the User mailing list