DrawingArea help needed

Post

Posted
Rating:
#1 (In Topic #163)
Regular
bill-lancaster is in the usergroup ‘Regular’
 I have a programme that draws a chart in a drawingarea using paint.begin etc.
How can I clear the drawingarea for a different form of chart.
drawingarea.clear doesn't do it and I can't see a paint method.

Also,is there a convenient way to print the drawingarea image to a printer?

Any advice would be appreciated
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Have a look at the attached example that draws and clears a DrawingArea.

Have a look at ChartExample in the Gambas Farm, that uses a DrawingArea but no drawing is needed.

I'm not sure about printing yet!

Let us know how you get on.

Attachment
Online now: No Back to the top

Post

Posted
Rating:
#3
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Guru
cogier is in the usergroup ‘Guru’

Unfortunately it doesn't tell you how to print the contents of a DrawingArea.
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Regular
jornmo is in the usergroup ‘Regular’
As you paint to the DrawingArea you simultaneously draw to the printer, or you can draw to an image, and draw the image to the drawingarea and the printer...

Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Regular
jornmo is in the usergroup ‘Regular’
And on a side note:
With cairo you can even draw to PDF or SVG: /comp/gb.cairo - Gambas Documentation

Online now: No Back to the top

Post

Posted
Rating:
#7
Regular
vuott is in the usergroup ‘Regular’

cogier said

Unfortunately it doesn't tell you how to print the contents of a DrawingArea.
I suggest this Wiki page of italian forum:

Stampare il contenuto di una DrawingArea - Gambas-it.org - Wikipedia

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#8
Regular
bill-lancaster is in the usergroup ‘Regular’
Thanks for all the suggestions - am happily printing and modifying drawing area
Online now: No Back to the top

Post

Posted
Rating:
#9
Avatar
Regular
jornmo is in the usergroup ‘Regular’
:ugeek:

Online now: No Back to the top
1 guest and 0 members have just viewed this.