Re: [Gambas-user] the math behind full screen rotation

2011-03-29 Thread Doriano Blengino
Kevin Fishburne ha scritto: > > In a half-drunken stupor I managed to correct the issue by trial and > error. Hell of a miracle. Here's the abbreviated working code: > I think it is more dangerous to not understand why some code works, instead of don't understanding why some code does not work

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
oh... until now i tried to find examples in wiki and i had forgot the examples of Gambas3 code... i will see them -- Regards, Demosthenes Koptsis. -- Enable your software for Intel(R) Active Management Technology to

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
On Wed, 2011-03-30 at 01:12 +0200, Benoît Minisini wrote: > > Please check that the Draw.FillRect uses the Background property and not > > the FillColor property. > > > > is this ok? > > > > > > See from previous email project99. > > Normally, Draw.FillRect() takes the color as its fifth argume

Re: [Gambas-user] how to flush a process stream

2011-03-29 Thread Kevin Fishburne
On 03/29/2011 06:13 PM, Laurent Carlier wrote: > Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a écrit : >> I'm reading input from a gamepad by using code such as: >> >> pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" >> >> Public Sub Gamepad_READ() >> ' Process the gamepad

Re: [Gambas-user] HttpClient question

2011-03-29 Thread Benoît Minisini
> It seems that if you call HttpClient twice after each other with > different urls in async mode, like in example below the _finished event > is only called once (with the last call/url) > > So they are not really async/background, or is this a bug? > Or are they overwritten, due to false usage/c

Re: [Gambas-user] Read array of string return from external libraries function

2011-03-29 Thread Benoît Minisini
> Hi, > > I have an EXTERN function which returns an array of strings (char**). How > to get this array? > > I just can only get the first string: > EXTERN theFunction(params AS ...) As Pointer > . > Dim p as Pointer, s as String > > p = theFunction(...) > s = String@(Pointer@(p)) > > What

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> Please check that the Draw.FillRect uses the Background property and not > the FillColor property. > > is this ok? > > > See from previous email project99. Normally, Draw.FillRect() takes the color as its fifth argument. When not specified, it actually uses the Background color. Do you think

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> well actually before send the previous email i used that you say Matti. > > But drawArea.Refresh it Redraws the control. > > This may be call automatic the Draw.Begin and Draw.End but clears > totally all the area and i cannot draw one rectangle and after a circle > and then something else. >

Re: [Gambas-user] how to flush a process stream

2011-03-29 Thread Laurent Carlier
Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a écrit : > I'm reading input from a gamepad by using code such as: > > pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" > > Public Sub Gamepad_READ() >' Process the gamepad input. > End > > The problem is that analog stick mov

[Gambas-user] Read array of string return from external libraries function

2011-03-29 Thread Phạm Quang Dương
Hi, I have an EXTERN function which returns an array of strings (char**). How to get this array? I just can only get the first string: EXTERN theFunction(params AS ...) As Pointer . Dim p as Pointer, s as String p = theFunction(...) s = String@(Pointer@(p)) What to do next? Thank you. -

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Demosthenes Koptsis
well actually before send the previous email i used that you say Matti. But drawArea.Refresh it Redraws the control. This may be call automatic the Draw.Begin and Draw.End but clears totally all the area and i cannot draw one rectangle and after a circle and then something else. So the solution

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Benoît Minisini
> You don't need all those Draw.Begin and Draw.End: > > "A Draw.Begin on the drawing area is automatically called before raising > the event, and the drawing is clipped to the area to be redrawn. > Draw.End will be automatically called after the event." (Wiki) > > So, just do > > iAct = 1 > draw

Re: [Gambas-user] How can I print my Gambas program code?

2011-03-29 Thread Rolf-Werner Eilert
Am 29.03.2011 17:44, schrieb tobias: > hi, > hum, i would consider open your files in a program that can print texts? > > regards, > tobi > It would be nice, however, to have an inbuilt printing tool for Gambas which would be able to print "more nicely" than a raw text printer. Such a function c

Re: [Gambas-user] How can I print my Gambas program code?

2011-03-29 Thread tobias
hi, hum, i would consider open your files in a program that can print texts? regards, tobi -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your c

[Gambas-user] How can I print my Gambas program code?

2011-03-29 Thread Wilson Pedro Tamega Junior
Dear members of Gambas-user@lists.sourceforge.net, I need to print out the code of my program to keep a hard copy of it, but, when I searched all the menus I did not find a Print command. Therefore, I ask: "How can I print my Gambas program code?". I'm using Gambas 2 at Ubuntu 10.04 and 10.

Re: [Gambas-user] Can not draw outside of draw event handler

2011-03-29 Thread Matti
You don't need all those Draw.Begin and Draw.End: "A Draw.Begin on the drawing area is automatically called before raising the event, and the drawing is clipped to the area to be redrawn. Draw.End will be automatically called after the event." (Wiki) So, just do iAct = 1 drawArea.Refresh Am 2

[Gambas-user] (no subject)

2011-03-29 Thread Leo Sendra
http://lbuchta.com/drugstore.html -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro

Re: [Gambas-user] Gambas3 RC1 Bind conversion

2011-03-29 Thread Ron
Yes, converting .Bind() works ok now too! Thanks. 2011/3/29 Benoît Minisini : >> Referring to this page http://www.gambasdoc.org/help/doc/gb2togb3?v3 >> It looks like Bind(0) calls should be converted by the IDE, but it >> doesn't seem to be implemented. >> >> No Bind related code in  app/src/gamb

Re: [Gambas-user] Global menu doesn't work with global-menu plasmoid in KDE

2011-03-29 Thread Benoît Minisini
> Hello to all. > > I use kde5.x with the global menu plasmoid (like mac os x), but, > although it's compatible with all qt4 applications I use, it doesn't > work with gambas3 IDE. There's no difference between when the menu bar > is set do hide (the only difference is a line between title bar and

Re: [Gambas-user] ?screenshot property of control gone missing

2011-03-29 Thread Benoît Minisini
> Hi Benoit, > > The ability of capture a screen shot of a control seems to have gone ?? I > use this in a number of places in my program. > > Regards > > Richard > It has been removed, because it is not reliable at all. Why do you need that? -- Benoît Minisini -

Re: [Gambas-user] Can not draw outside of draw enent handler

2011-03-29 Thread Demosthenes Koptsis
On Sun, 2011-03-27 at 17:00 +0200, Benoît Minisini wrote: > > > > i try to make a similar example from this page > > http://gambasdoc.org/help/comp/gb.qt4/draw/line?v3 > > > > in this page it says > > > > Draw.Begin(ME) where ME is a form. > > > > i get this error in my project for > > > > Dra