[Gambas-user] Drawing again

Benoit Minisini gambas at ...1...
Wed May 24 20:54:04 CEST 2006


On Wednesday 24 May 2006 20:19, javier romero wrote:
> I have this:
>
> dim pagina as drawing
>
> pagina = new drawing
>
> draw.begin(pagina)
>   draw.text("RELACION DE CLIENTE", 10, 10)
> draw.end
>
> print pagina.width
> print pagina.height
>
> when print the width and height of the drawing "pagina" i obtain that:
> 0
> 0
>
> why the width and the height dont shows the actuals width and height after
> drawing? I need this ou use this for the printer example for prints a
> drawing in the printer and for escalable porpuses.
>
> I'm using gambas 1.0.15
>
> Thanks
> Javier Romero

Can you try these patches?

Thanks in advance.

-- 
Benoit Minisini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CDrawing.cpp
Type: text/x-c++src
Size: 6462 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060524/ecd56080/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CDrawing.h
Type: text/x-chdr
Size: 1240 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060524/ecd56080/attachment.h>


More information about the User mailing list