Re: [Gambas-user] Question on ByteArray > 63 elements

2014-01-27 Thread wally
> Le 26/01/2014 18:03, wally a ?crit : >> Hello, >> >> i need to write more than 63 Bytes to an Byte[] in a structure. >> >> How to do this job ? >> >> mini example attached >> >> >> thank you wally >> > Since revision #6110 the number of elements in the array constructor > operator ([ ... ]) is no

[Gambas-user] Issue 506 in gambas: Make Install Error in LCDLabel Class

2014-01-27 Thread gambas
Status: New Owner: Labels: Version-3.5.0 Type-Bug Priority-High OpSys-Reshat Dist-Redhat Arch-X86-64 Desktop-Any GUI-Any New issue 506 by ralford1...@gmail.com: Make Install Error in LCDLabel Class http://code.google.com/p/gambas/issues/detail?id=506 1) During make install line 58 in tru

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Benoît Minisini
Le 28/01/2014 02:01, Benoît Minisini a écrit : > Le 27/01/2014 21:39, Tobias Boege a écrit : >> Hi Benoit, >> >> attached is a project that generates an "internal compiler error" with >> this >> usage of the New keyword: >> >> Public Sub Main() >>New Boolean[] >> End >> >> Actually, this is the

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 21:39, Tobias Boege a écrit : > Hi Benoit, > > attached is a project that generates an "internal compiler error" with this > usage of the New keyword: > > Public Sub Main() >New Boolean[] > End > > Actually, this is the project's whole code. What's wrong with it? Could we > be abl

Re: [Gambas-user] Using OpenGL without SDL Draw event

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 05:51, Kevin Fishburne a écrit : > This is tangent to the thread "sdl Draw event overhead is killing frame > rate". > > When rendering graphics with OpenGL using SDL for window management, you > define a screen like this: > > Public Screen As New Window As "Screen" >With Screen >

Re: [Gambas-user] Question on ByteArray > 63 elements

2014-01-27 Thread Benoît Minisini
Le 26/01/2014 18:03, wally a écrit : > Hello, > > i need to write more than 63 Bytes to an Byte[] in a structure. > > How to do this job ? > > mini example attached > > > thank you wally > Since revision #6110 the number of elements in the array constructor operator ([ ... ]) is now only limited

Re: [Gambas-user] sdl music

2014-01-27 Thread Shane
On 28/01/14 05:46, Benoît Minisini wrote: > Le 27/01/2014 19:39, Benoît Minisini a écrit : >> Le 27/01/2014 11:17, Shane a écrit : >>> Can Someone please add a playing property to the sdl music component it >>> looks easy >>> using >>> >>> >>> 4.5.19 Mix_PlayingMusic >>> >>> |int *Mix_Play

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
> I didn't mean to say something about Boolean[] or an Array but *any* > creatable object. > OK, so if some object works completely independently without any need to be accessed, then you could just write: New MyNoNeedToBeManagedObject And left it there to do it's job... well I'm not sure it's wo

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Tue, 28 Jan 2014, Jussi Lahtinen wrote: > Maybe it's my sleep deprivation, but I can't understand connection between > unreferenced array and this. How unreferenced array would help in this? By > definition, if you can't refer to it, how you can use it? > > Jussi > Yeah, sorry, the Boolean[]

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
Maybe it's my sleep deprivation, but I can't understand connection between unreferenced array and this. How unreferenced array would help in this? By definition, if you can't refer to it, how you can use it? Jussi On Mon, Jan 27, 2014 at 11:40 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jus

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > Well ok, but I don't think that should be allowed syntax (at least I don't > > see any usage for it). > > > > I do: the PathWatch class in gb.inotify or generally every object like this: > > --8<-[ MyObject

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > Well ok, but I don't think that should be allowed syntax (at least I don't > see any usage for it). > I do: the PathWatch class in gb.inotify or generally every object like this: --8<-[ MyObject.class ]-

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
Well ok, but I don't think that should be allowed syntax (at least I don't see any usage for it). Jussi On Mon, Jan 27, 2014 at 11:15 PM, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > ?? > > That doesn't make any sense, what do you think it should do? > > > > > Public Su

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > ?? > That doesn't make any sense, what do you think it should do? > > > Public Sub Main() > > New Boolean[] > > End > > It should create a Boolean[] and free it afterwards because there is no reference to it. -- "There's an old saying: Don't change

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Jussi Lahtinen
?? That doesn't make any sense, what do you think it should do? Jussi On Mon, Jan 27, 2014 at 10:39 PM, Tobias Boege wrote: > Hi Benoit, > > attached is a project that generates an "internal compiler error" with this > usage of the New keyword: > > Public Sub Main() > New Boolean[] > End > >

[Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
Hi Benoit, attached is a project that generates an "internal compiler error" with this usage of the New keyword: Public Sub Main() New Boolean[] End Actually, this is the project's whole code. What's wrong with it? Could we be able to do such a thing so that, e.g. PathWatch (gb.inotify) object

Re: [Gambas-user] Mark some text in GridView/TableView

2014-01-27 Thread Fabien Bodard
??? ?? 2014-01-27 abbat81 : > I need to mark some text in a controls. > For example, I want to see like this: > > *Some text *some text some text > > Thanks > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Mark-some-text-in-GridView-TableView-tp45406.html > Se

Re: [Gambas-user] Externs ... yet again

2014-01-27 Thread Bruce
On Mon, 2014-01-27 at 05:03 -0800, Mike Crean wrote: > > Hey Bruce are you on the apple isle, if > so its never really hot. Try a real state if you want hot (WA) :-). > > Cheers > Mike > Postcode=5255 Stick that in your weatherzone. :-) Bruce -

[Gambas-user] Mark some text in GridView/TableView

2014-01-27 Thread abbat81
I need to mark some text in a controls. For example, I want to see like this: *Some text *some text some text Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Mark-some-text-in-GridView-TableView-tp45406.html Sent from the gambas-user mailing list archive at Nabble.com

Re: [Gambas-user] sdl music

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 19:39, Benoît Minisini a écrit : > Le 27/01/2014 11:17, Shane a écrit : >> Can Someone please add a playing property to the sdl music component it >> looks easy >> using >> >> >>4.5.19 Mix_PlayingMusic >> >> |int *Mix_PlayingMusic*()| >> >> Tells you if music is actively playi

Re: [Gambas-user] sdl music

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 11:17, Shane a écrit : > Can Someone please add a playing property to the sdl music component it > looks easy > using > > >4.5.19 Mix_PlayingMusic > > |int *Mix_PlayingMusic*()| > > Tells you if music is actively playing, or not. > *Note*: Does not check if the channel has bee

Re: [Gambas-user] Convert string to integer

2014-01-27 Thread Ru Vuott
..try: qrg_i = CInteger(Val(qrg)) Lun 27/1/14, Dirk ha scritto: Oggetto: Re: [Gambas-user] Convert string to integer A: gambas-user@lists.sourceforge.net Data: Lunedì 27 gennaio 2014, 18:11 Hi, I'm having a problem with Convert string

Re: [Gambas-user] Convert string to integer

2014-01-27 Thread Caveat
You can't use CInteger on a String that does not represent an Integer! Either make sure your String is always a 'pure' integer... so "14160" in place of "14160.0" Or code qrg_i = Int(CFloat(qrg)), which is much more forgiving. The reason you get an error is that you make the same mistake twice.

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 19:25, abbat81 a écrit : > Thank you, it works OK. :) > Beware that you must use GridView.ClientWidth and GridView.ClientHeight instead of GridView.Width and GridView.Height if you want to take the GridView border into account. Regards, -- Benoît Minisini --

Re: [Gambas-user] TableView (or GridView) .Height = 100% Control.Count

2014-01-27 Thread abbat81
Thank you, it works OK. :) -- View this message in context: http://gambas.8142.n7.nabble.com/TableView-or-GridView-Height-100-Control-Count-tp45372p45400.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] Convert string to integer

2014-01-27 Thread Dirk
Hi, I'm having a problem with Convert string to integer Public Sub MySock_Read() ' Data via Telnet ' When some data arrives from the remote ' part of the socket, "DataAvailable" event ' is raised ' Dim qrg_i As Integer Dim qrg As String Dim rx,

Re: [Gambas-user] Question on ByteArray > 63 elements

2014-01-27 Thread Jussi Lahtinen
I don't quite understand the problem. If the data is from device, then why number of parameters matter? The limit only applies when the data is written by hand directly to source code. You don't read it from stream/memory? Yes, you can put the values to string like this "1, 2, 3, ... , 63, 64, 65"

Re: [Gambas-user] Externs ... yet again

2014-01-27 Thread Mike Crean
Hey Bruce are you on the apple isle, if so its never really hot. Try a real state if you want hot (WA) :-). Cheers Mike On Monday, 27 January 2014 2:09 PM, Bruce wrote: On Mon, 2014-01-27 at 15:48 +1030, Bruce wrote: > 'aspell_config_replace(spell_config, "lang", "en_US"); > Extern aspel

Re: [Gambas-user] sdl Draw event overhead is killing frame rate

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 13:52, Benoît Minisini a écrit : > Le 27/01/2014 13:43, Benoît Minisini a écrit : >> >> It's difficult for me to test as we have differents cards. >> >> But as soon as we are sure that the CPU core running the Gambas program >> is 10O% busy, (i.e. there is no vsync), we can run the pr

Re: [Gambas-user] sdl Draw event overhead is killing frame rate

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 13:43, Benoît Minisini a écrit : > > It's difficult for me to test as we have differents cards. > > But as soon as we are sure that the CPU core running the Gambas program > is 10O% busy, (i.e. there is no vsync), we can run the program with > valgrind and use kcachegrind to detect wh

Re: [Gambas-user] sdl Draw event overhead is killing frame rate

2014-01-27 Thread Benoît Minisini
Le 27/01/2014 02:55, Kevin Fishburne a écrit : > On 01/26/2014 06:49 PM, Benoît Minisini wrote: >> Le 20/01/2014 05:28, Kevin Fishburne a écrit : >>> It must provoke some acid reflux deep within the bowels of SDL. :) I >>> don't know...it's damn strange for sure. I also find it strange that the >>>

[Gambas-user] sdl music

2014-01-27 Thread Shane
Can Someone please add a playing property to the sdl music component it looks easy using 4.5.19 Mix_PlayingMusic |int *Mix_PlayingMusic*()| Tells you if music is actively playing, or not. *Note*: Does not check if the channel has been paused. *Returns*: Zero if the music is not playing,

Re: [Gambas-user] multiple selection on gridview

2014-01-27 Thread Jorge Carrión
Thank you Benoit. Keep doing the good work. Gambas Rules! Regards. 2014-01-27 Benoît Minisini > Le 24/01/2014 19:32, Jorge Carrión a écrit : > > Hi > > > > If you set enable the Multiple property on a gridview, you can select > > several rows with key control+Click. Ok, thats expected. > > > >