[Gambas-user] Problem with Paint.Rectangle() and docu

T Lee Davidson t.lee.davidson at gmail.com
Thu Sep 27 16:15:23 CEST 2018


Perhaps setting the Background to a fully translucent color would be a workable solution for you.


___
Lee


On 9/27/18 9:44 AM, Rolf-Werner Eilert wrote:
> In the documentation to Paint.Rectangle there is
> 
> This function is logically equivalent to:
> Paint.MoveTo(X, Y)
> Paint.LineTo(X + Width, Y)
> Paint.LineTo(X + Width, Y + Height)
> Paint.LineTo(X, Y + Height)
> Paint.ClosePath()
> 
> The thing is, Paint.Rectangle will always fill the area, and I simply need a box (unfilled).
> 
> The example from the documentation will not produce 4 lines and an empty space, but a filled rectangle as well.
> 
> By the way, it does NOT play a roll if you use ClosePath or not. But if you forget Fill, there comes an error with Pending Path.
> So the example is a bit misleading here.
> 
> And does Rectangle really have to produce a filled area? Is there no way to have a simple line drawn around?
> 
> Regards
> Rolf
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----


More information about the User mailing list