Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-06 Thread Jussi Lahtinen
Not sure you can access internal picture of drawing area, but if you need to copy it's content I suggest you do it other way around. That is, do all drawing to picture and copy the ready picture to drawing area. Draw.Begin(hMyPic) Draw. ... what ever ... Draw.End() Or: hMyPic = Picture.Load(...)

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Louis W. Adams, Jr.
> Taking a screenshot to get the DrawingArea contents seems to be a very ugly method to me. I think it's ugly too, but I'm the only one using the programs I write so I'm the only one offended. I'm a GAMBUS newbie, and I've been very confused by posts that explain the proper way to convert the int

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Louis W. Adams, Jr.
> Use dachart.screenx, dachart.screeny and you will have what you want. Thanks very much, that works perfectly. It is still the case that what I reported seems to be a bug that ought to be fixed. Lou -- View this message in context: http://gambas.8142.n7.nabble.com/Drawing-Area-Location-in-S

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Fabien Bodard
Le 5 févr. 2014 18:26, "Tobias Boege" a écrit : > > On Wed, 05 Feb 2014, Fabien Bodard wrote: > > And hOmage=daChart.grab ? > > No, DrawingArea.Grab() is still Control.Grab() which, according to the > documentation[0] does something very different since Gambas 3. > > Whenever I wanted to save some

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Tobias Boege
On Wed, 05 Feb 2014, Fabien Bodard wrote: > And hOmage=daChart.grab ? No, DrawingArea.Grab() is still Control.Grab() which, according to the documentation[0] does something very different since Gambas 3. Whenever I wanted to save something from a DrawingArea later, I wrote something like this rou

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Fabien Bodard
And hOmage=daChart.grab ? Le 5 févr. 2014 17:29, gambas...@gmail.com a écrit : Use dachart.screenx, dachart.screeny. and you will have what you want. It's the position of the control on the entire screen. Le 5 févr. 2014 16:42, "Louis W. Adams, Jr." a écrit : I have a drawing area control daCh

Re: [Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Fabien Bodard
Use dachart.screenx, dachart.screeny. and you will have what you want. It's the position of the control on the entire screen. Le 5 févr. 2014 16:42, "Louis W. Adams, Jr." a écrit : > I have a drawing area control daChart on a form. To extract an image of > that > control area using screenshot,

[Gambas-user] Drawing Area Location in Screenshot Depends on Window Location on Desktop

2014-02-05 Thread Louis W. Adams, Jr.
I have a drawing area control daChart on a form. To extract an image of that control area using screenshot, I expected that the following would work, where picSave is a Picture object. The number 28 accounts for the window control frame at the top for my screen resolution in Ubuntu (1920x1080).

Re: [Gambas-user] Drawing Area

2010-02-25 Thread Doriano Blengino
EA7DFH ha scritto: > Hi > > Doriano, I think there is no need to use Draw.Begin and Draw.End when > drawings are triggered within the _Draw event. Good introduction, BTW. > I confirm - just tried on the project I sended to you. You are right - good to know, even if it does not seem to hurt. But

Re: [Gambas-user] Drawing Area

2010-02-25 Thread EA7DFH
Hi Doriano, I think there is no need to use Draw.Begin and Draw.End when drawings are triggered within the _Draw event. Good introduction, BTW. I'm not used to work with this event, what leads me to ask how to draw directly to a printer using this event, if possible at least. Regards, Jesús Dor

Re: [Gambas-user] Drawing Area

2010-02-25 Thread Doriano Blengino
tobias...@t-online.de ha scritto: Dear Mailing-Liste, my name is Tobias and I have the following problem: The function y=f(x) shall be displayed with the values x_min <= x <= x_max in a drawing area (dwg.ClientW = const = 801, dwg.ClientH = const = 601) using the methods Draw.Scale

[Gambas-user] Drawing Area

2010-02-24 Thread tobias...@t-online.de
Dear Mailing-Liste, my name is Tobias and I have the following problem: The function y=f(x) shall be displayed with the values x_min <= x <= x_max in a drawing area (dwg.ClientW = const = 801, dwg.ClientH = const = 601) using the methods Draw.Scale and Draw.Translate. My question