[Gambas-user] Anyone userd .Grab()?

Werner wdahn at ...1000...
Sat Feb 6 10:18:05 CET 2010


On 06/02/10 15:26, richard terry 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
>   
It works fine here.
Gambas 2.19 on openSUSE 11.2/64 with Qt.
My HBox does not have any real content, I just changed the background. I
can save the picture and open it with another app.

Regards
Werner





More information about the User mailing list