[Gambas-user] Gambas3:draw.begin(printer)
charlesg
charles at ...1784...
Tue Jun 1 19:40:16 CEST 2010
Thanks Fabien for your reply. After much struggle I still cannot get a result
and include the following for the amusement of all. :)
prnter is not aware of events begin and draw. Rsult is T and thus a failure.
The program does spit an empty sheet from the printer. If someone could
correct the code (maybe even start again?) I would be grateful
rgds
> ' Gambas class file
> Public prnter As New Printer
> '------------------------------------
> Public Sub Button1_Click()
> Dim rsult As Boolean
>
> prnter.count = 1
> rsult = prnter.Print()
> Print "result:" & rsult
> End
> '------------------------------------
> Public Sub prnter_begin()
> Print "begin"
> End
> '------------------------------------
> Public Sub prnter_draw()
> Print "draw"
>
> Paint.Begin(prnter)
> Paint.Text("hello", 100, 100)
> Paint.End
> End
> '------------------------------------
>
>
>
--
View this message in context: http://old.nabble.com/Gambas3%3Adraw.begin%28printer%29-tp28732431p28745130.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list