[Gambas-user] Transparent/non-destructive Picturebox?

Fabien Bodard gambas.fr at ...626...
Mon Oct 1 12:06:50 CEST 2007


a picture box is not transparent
why not drawing the picture directly in the drawing area ?

draw.begin(drawingarea1)
 draw.picture(picture["path"],x,y)
draw.end

2007/10/1, RalfGesellensetter <rgx at ...17...>:
>
> Dear list,
>
> I created a simple simulation: A character (displayed in a 32x32
> picturebox)
> moves above a plane (I use a drawingarea), its track is plotted there.
>
> Now I got two questions:
> 1. Despite using a GIF image with tranparent background, the drawing area
> is
> covered by a solid 32x32 square.
>
> 2. The picturebox (acting as sprite here) has the sad side effect of a
> rubber,
> erasing former tracks while hoovering over them :(
>
> Any hints?
>
> Thanks
> Ralf
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list