Re: [Gambas-user] Cairo

2017-03-12 Thread Moviga Technologies
I see... Well, I wouldn't really need all the facy stuff. Latin letters and numbers would go a long way for me. But, I need to think a bit more about what to do then. Thanks! Den 11.03.2017 00:44, skrev Benoît Minisini: > Le 10/03/2017 à 22:08, Moviga Technologies a écrit : > >> Hi! >> >>

Re: [Gambas-user] Cairo

2017-03-11 Thread Fabien Bodard
Le 11 mars 2017 00:46, "Benoît Minisini" a écrit : Le 10/03/2017 à 22:08, Moviga Technologies a écrit : > Hi! > > What source code would be the best to study in order to learn how to use > the cairo component properly? I am interested in learning more about the >

Re: [Gambas-user] Cairo

2017-03-10 Thread Benoît Minisini
Le 10/03/2017 à 22:08, Moviga Technologies a écrit : > Hi! > > What source code would be the best to study in order to learn how to use > the cairo component properly? I am interested in learning more about the > function's that allow one to refresh certain areas of the surface (clip > and

[Gambas-user] Cairo

2017-03-10 Thread Moviga Technologies
Hi! What source code would be the best to study in order to learn how to use the cairo component properly? I am interested in learning more about the function's that allow one to refresh certain areas of the surface (clip and matrix?). My long term goals for learning it in the first place is to

[Gambas-user] Cairo..learning Gambas

2013-12-19 Thread Pino Zollo
Maybe...some good soul that knows the various Gambas components might teach un-expert programmers or new-comers with something like this: http://www.eiffel.com/developers/learning_maps/IntroducingEiffelLearningMaps/player.html

Re: [Gambas-user] Cairo

2013-12-18 Thread Jussi Lahtinen
The code from draw.begin: Draw.Begin(DrawingArea1) Rap = Draw.w / 3 DH = Draw.H ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works DrawingArea1.Background = Color.White ... So, yes, it is between draw.begin and draw.end. But this is not clear if you read the documentation.

[Gambas-user] Cairo

2013-12-18 Thread Pino Zollo
El 18/12/13 11:05, gambas-user-requ...@lists.sourceforge.net escribió: The code from draw.begin: Draw.Begin(DrawingArea1) Rap = Draw.w / 3 DH = Draw.H ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works DrawingArea1.Background = Color.White ... So, yes, it is

Re: [Gambas-user] Cairo

2013-12-18 Thread Jussi Lahtinen
Example drawingarea1.refresh() will trigger the event. And thus, all things that trigger refresh. But if the drawingarea is cached, then draw instructions doesn't have to be inside of event handler. Jussi On Wed, Dec 18, 2013 at 6:16 PM, Pino Zollo pinozo...@gmail.com wrote: El 18/12/13

Re: [Gambas-user] Cairo

2013-12-17 Thread Benoît Minisini
Le 16/12/2013 13:27, Pino Zollo a écrit : My project does not use cairo component...but I get in the console the message: gbx3: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: _cairo_surface_begin_modification: La declaración `! surface-finished' no se cumple. no se cumple...means it

[Gambas-user] Cairo

2013-12-16 Thread Pino Zollo
More infos... Draw.Rect(0, 0, Rap, Draw.h) - FScale.class line 111 generates the error Draw.Foreground = Color.Black Draw.Line(Rap, 0, Rap, Draw.H) -- also this -- Rapidly troubleshoot

Re: [Gambas-user] Cairo

2013-12-16 Thread Benoît Minisini
Le 16/12/2013 15:45, Pino Zollo a écrit : More infos... Draw.Rect(0, 0, Rap, Draw.h) - FScale.class line 111 generates the error Draw.Foreground = Color.Black Draw.Line(Rap, 0, Rap, Draw.H) -- also this I think this is related to the setting of the

[Gambas-user] Cairo: coordinates

2013-08-20 Thread Rolf-Werner Eilert
What confused me a bit when using Cairo was the coordinates system. Initiating the page with width = 210 mm and height = 297 mm, I would expect to be able to center a string of text with Cairo.MoveTo((210 / 2) - (Cairo.TextExtents(Hello world).Width / 2), 40) for example (in practice, I

Re: [Gambas-user] Cairo: coordinates

2013-08-20 Thread Rolf-Werner Eilert
Am 20.08.2013 09:28, schrieb Rolf-Werner Eilert: What confused me a bit when using Cairo was the coordinates system. Initiating the page with width = 210 mm and height = 297 mm, I would expect to be able to center a string of text with Cairo.MoveTo((210 / 2) - (Cairo.TextExtents(Hello

[Gambas-user] Cairo library - printing text

2013-08-14 Thread Rolf-Werner Eilert
Hi all, Found the gb.cairo class, and I hope it will make PDFs from command line. The task is not too ambitious, just 2 pages, but there is a lot of text (4 paragraphs) on one of them. Due to documentation, the DrawText function in Cairo just prints a single line, and I have to move to the

Re: [Gambas-user] Cairo library - printing text

2013-08-14 Thread Benoît Minisini
Le 14/08/2013 09:22, Rolf-Werner Eilert a écrit : Hi all, Found the gb.cairo class, and I hope it will make PDFs from command line. The task is not too ambitious, just 2 pages, but there is a lot of text (4 paragraphs) on one of them. Due to documentation, the DrawText function in Cairo

Re: [Gambas-user] Cairo library - printing text

2013-08-14 Thread Benoît Minisini
Le 14/08/2013 10:11, Benoît Minisini a écrit : The documentation is not up to date. Now gb.cairo can draws on any of --- can draw its Surface classes (you can read the Cairo documentation and Cairo examples, as gb.cairo has almost exactly the same interface, usually simplyfing it). ---

Re: [Gambas-user] Cairo library - printing text

2013-08-14 Thread Rolf-Werner Eilert
Am 14.08.2013 10:11, schrieb Benoît Minisini: Le 14/08/2013 09:22, Rolf-Werner Eilert a écrit : Hi all, Found the gb.cairo class, and I hope it will make PDFs from command line. The task is not too ambitious, just 2 pages, but there is a lot of text (4 paragraphs) on one of them. Due to

Re: [Gambas-user] Cairo library - printing text

2013-08-14 Thread Rolf-Werner Eilert
Am 14.08.2013 12:26, schrieb Rolf-Werner Eilert: Am 14.08.2013 10:11, schrieb Benoît Minisini: Le 14/08/2013 09:22, Rolf-Werner Eilert a écrit : Hi all, Found the gb.cairo class, and I hope it will make PDFs from command line. The task is not too ambitious, just 2 pages, but there is a