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).