the original drawing process.
So I'm happy. What was for you, no doubt, a simple observation has
saved me a lot of hassle. Thank you.
Richard
On 09/11/16 17:53, Fabien Bodard wrote:
> 2016-11-09 17:45 GMT+01:00 Richard Welch :
>> Fabien, thank you for your reply.
>>
>
Paint.Begin(hImage)
> DrawARect()
>Paint.End
>
> End
>
>
> With that you have only one drawing function (DrawARect) able to draw
> every where ... even on a printer. This is the way used in most of the
> components too
>
> 2016-11-08 12:52 GMT+01:00 Richard
I need a simple way to copy the current image in a visible DrawingArea
to a hidden PictureBox.
The project was written in Gambas2, where a simple Grab method did the
trick, but in G3 this does something different so the converted code
does not function fully.
FMain.pbxPicture.W = FMain.drwRep.
Of course, this may already have been solved, or even be the expected
behaviour
*I have already found a way round* (see below), so this is purely for
the benefit of others.
I have recently migrated from Ubuntu 12.04 (which has Gambas 2 in its
repositories - Gambas 2.23.1)
to
Ubuntu 16.04
This is just noting the change in case it might help someone else - not
a plea for a change.
In g2, the Val function would ignore that part of its input string after
the first space, so that, for instance Val("12 3 5") would return the
integer value 12.
Here and there, I use this feature when