[Gambas-user] Anyone userd .Grab()?
richard terry
rterry at ...1946...
Sat Feb 6 22:35:14 CET 2010
On Sunday 07 February 2010 03:13:56 you wrote:
> > I wanted to grab the contents of a HBox as picture (it contains other
> > controls), put the code under a button:
> >
> > Public Sub Button1_Click()
> > Dim pic As Picture
> > pic = HBox1.Grab()
> >
> > End
> >
> > This gives an error message 'wanted picture, got void instead'.
> >
> > Any one got any ideas?
> >
> > Thanks in anticipation.
> >
> > Richard
>
> In Gambas 3, you must use the Screenshot() method instead. The
> documentation has not been updated yet.
>
> The Grab() method allows a control to take all mouse and keyboard events
> until the mouse button is released or the ESC key is pressed.
>
> Regards,
>
Thanks, after much frustration I noticed Screenshot() and it works fine.
Regards
More information about the User
mailing list