[Gambas-user] Issue 13 in gambas: GTK+ buttons inherit a form's background color

2011-01-17 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 13 by zachsmit...@gmail.com: GTK+ buttons inherit a form's background color http://code.google.com/p/gambas/issues/detail?id=13 1) GTK+ buttons inherit a forms background

[Gambas-user] Gambas3 Pointers example - signal #6

2011-01-17 Thread John Spikowski
On Mon, 2011-01-17 at 21:36 +0200, Demosthenes Koptsis wrote: > On Mon, 2011-01-17 at 13:33 +0100, Benoît Minisini wrote: > Public Sub Main() > > Dim pFunc As Pointer > Dim sWorkingDirectory As String > > 'get_current_dir_name > pFunc = get_current_dir_name() > Print pFunc > > sWork

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
On Mon, 2011-01-17 at 13:33 +0100, Benoît Minisini wrote: > > sorry my wrong expression. > > > > No problem. > > Another point: at the moment, Alloc() and Free() are not the equivalent of > malloc() and free() in C. So you cannot use Free() to free a memory > allocation > returned as a pointe

Re: [Gambas-user] desktop.sendkeys -- how does it work?

2011-01-17 Thread Ribamar FS
Try to add component gd.desktop: Project - Properties - Components mark gb.desktop and OK 2011/1/17 Christian DaGeek247 Stephens > *Im new to gambas (but not really BASIC in general) and i am wondering, how > do i get desktop.sendkeys to work? the wiki failed to mention where to put > the *STAT

[Gambas-user] desktop.sendkeys -- how does it work?

2011-01-17 Thread Christian DaGeek247 Stephens
*Im new to gambas (but not really BASIC in general) and i am wondering, how do i get desktop.sendkeys to work? the wiki failed to mention where to put the *STATIC SUB SendKeys(Keys AS String) *text. do i need to install gb.desktop to get it to work? I searched the mailing list, and nothing helpful

[Gambas-user] desktop.sendkeys -- how does it work?

2011-01-17 Thread Christian DaGeek247 Stephens
*Im new to gambas (but not really BASIC in general) and i am wondering, how do i get desktop.sendkeys to work? the wiki failed to mention where to put the *STATIC SUB SendKeys(Keys AS String) *text. do i need to install gb.desktop to get it to work? I searched the mailing list, and nothing helpful

[Gambas-user] Issue 12 in gambas: Disabled timer keep running

2011-01-17 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 12 by hyeti...@gmail.com: Disabled timer keep running http://code.google.com/p/gambas/issues/detail?id=12 1) I have 5 forms that have their timers. All timers have 500ms d

Re: [Gambas-user] some questions of: Struct

2011-01-17 Thread Jose J. Rodriguez
On 1/16/11, nando wrote: > > 4) This is similar to RECORD in VB. > It is like "Type" in VB6. For example: Private Type MYSTRUCT ID As String Name As String End Type Then later you would do: Dim MyPerson As MYSTRUCT MyPerson.ID = "012" MyPerson.Name = "Joe1962" Regards, Joe1962

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Benoît Minisini
> sorry my wrong expression. > No problem. Another point: at the moment, Alloc() and Free() are not the equivalent of malloc() and free() in C. So you cannot use Free() to free a memory allocation returned as a pointer by a C function. You must use the free() function located in the C library

[Gambas-user] Wrong link at Arrange Gambas3

2011-01-17 Thread Demosthenes Koptsis
The page http://gambasdoc.org/help/comp/gb.qt4/window/arrangement?v3 has a wrong link about Arrange http://gambasdoc.org/help/comp/gb.qt/arrange?v3 i think it should be http://gambasdoc.org/help/comp/gb.qt4/arrange?v3 -- Regards, Demosthenes Koptsis. ---

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
sorry my wrong expression. On Mon, 2011-01-17 at 12:27 +0100, Benoît Minisini wrote: > > > > i dont think that C++ programmers will come to Gambas to use external > > functions, the opposite i think will be. > > > > We are talking about C. Calling C++ functions from Gambas is almost > impossib

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Benoît Minisini
> > i dont think that C++ programmers will come to Gambas to use external > functions, the opposite i think will be. > We are talking about C. Calling C++ functions from Gambas is almost impossible. -- Benoît Minisini --

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
On Mon, 2011-01-17 at 22:00 +1100, Ian Haywood wrote: > On Mon, Jan 17, 2011 at 9:50 PM, Demosthenes Koptsis > wrote: > > > > Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i > > try to describe some cases of pointers and the usage of them in Gambas. > IMHO the issue is C p

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Ian Haywood
On Mon, Jan 17, 2011 at 9:50 PM, Demosthenes Koptsis wrote: > > Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i > try to describe some cases of pointers and the usage of them in Gambas. IMHO the issue is C pointers aren't an easy topic and good conceptual understanding is

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
Benoit sorry if you feel that i discuss C++ cases in a Gambas list but i try to describe some cases of pointers and the usage of them in Gambas. For me and as i think for any Gambas developer the subject of pointers and reading man 3 is a new thing. Same questions may be come also in the future

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
On Mon, 2011-01-17 at 11:08 +0100, Benoît Minisini wrote: > > Here is a last case about pointers i found. > > > > CASE 1 > > --- > > When a C++ function does not malloc any memory it may return a pointer. > > In this case we can do > > > > DIM pPointer as Pointer > > pPointer = Alloc(4096)' a

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Benoît Minisini
> Here is a last case about pointers i found. > > CASE 1 > --- > When a C++ function does not malloc any memory it may return a pointer. > In this case we can do > > DIM pPointer as Pointer > pPointer = Alloc(4096)' alloc 4096 bytes > > pPointer = getwd(pBuf) > > 'use pPointer with Str@() o

Re: [Gambas-user] [Fwd: Gambas3 Pointers example] signal #6

2011-01-17 Thread Demosthenes Koptsis
Here is a last case about pointers i found. CASE 1 --- When a C++ function does not malloc any memory it may return a pointer. In this case we can do DIM pPointer as Pointer pPointer = Alloc(4096)' alloc 4096 bytes pPointer = getwd(pBuf) 'use pPointer with Str@() or other xxx@() Free(pPoin