Re: [Gambas-user] "wrapping" function based on recent Mod thread

2013-10-12 Thread Kevin Fishburne
On 10/11/2013 08:20 AM, Jussi Lahtinen wrote: > My brains jammed to think about that wrap function, and I think if you want > function that wraps screen like in old video > games, then is that C implementation really correct? > > They say that Wrap(-1, 1, 4) should return 3, but if you have travele

[Gambas-user] Releasing allocated memory and closing a database

2013-10-12 Thread Alain Baudrez
In an app where I use a class to retrieve info from a database, I use the constructor method _new() to open the connection to the db as follows: Code snippet: ' Gambas class file ' Name: db.class Private $db As New Connection ' Contructor Public Sub _new() ' Open the connection to the database

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Kende Krisztián
> > > Me.Hide in Form_Open used to work, and it is set in the Form > > > (Visible -> True/False). > > > > > > > > Looking more closely, I think you are right. > > At least, if you set form visible = False in form properties, it > > should > > be in effect. > > > > This is confirmed on Gambas 3

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Tobias Boege
On Sat, 12 Oct 2013, Kende Kriszti??n wrote: > Yeah, but I think these bugs belong together. And it seems that the > problem does not deal with anyone. > > Me.Hide in Form_Open used to work, and it is set in the Form (Visible > -> True/False). If it does not work why it's possible to set? > > Ken

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Kende Krisztián
> > Yeah, but I think these bugs belong together. And it seems that the > > problem does not deal with anyone. > > > > Me.Move(Screen.W / 2 - 349, Screen.H / 2 - 232, 698, 465) > I'm using latest revision (5874) of Gambas and I cannot reproduce > this bug either by using GTK+ or Qt4. > > Maybe yo

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Jussi Lahtinen
Oh now I noticed who you are... hah ha, you probably know about that PPA Jussi On Sat, Oct 12, 2013 at 8:17 PM, Jussi Lahtinen wrote: > > Yeah, but I think these bugs belong together. And it seems that the >> problem does not deal with anyone. >> > > Me.Move(Screen.W / 2 - 349, Screen.H / 2

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Jussi Lahtinen
> Yeah, but I think these bugs belong together. And it seems that the > problem does not deal with anyone. > Me.Move(Screen.W / 2 - 349, Screen.H / 2 - 232, 698, 465) I'm using latest revision (5874) of Gambas and I cannot reproduce this bug either by using GTK+ or Qt4. Maybe you can confirm if t

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Kende Krisztián
Yeah, but I think these bugs belong together. And it seems that the problem does not deal with anyone. Me.Hide in Form_Open used to work, and it is set in the Form (Visible -> True/False). If it does not work why it's possible to set? Kendek > Always fill new bug report for each bug. > However

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread Jussi Lahtinen
Always fill new bug report for each bug. However I don't think this is bug. You give hide command in event which is run before form is made visible! Jussi On Sat, Oct 12, 2013 at 5:56 PM, wrote: > > Comment #4 on issue 465 by krisztiankende: Window initial size error > http://code.google.com/p

Re: [Gambas-user] DataControl font and background is a MySQL primary index field

2013-10-12 Thread Marty McGlensey
Hi, I removed that behaviour in revision #5871. The font and background of the DataControl are not modified anymore if the associated field is mandatory or is a primary key field. Regards, -- Beno?t Minisini Thank you Benoit. I installed Gambas from a ppa so I'm not familiar with updating to

Re: [Gambas-user] Issue 465 in gambas: Window initial size error

2013-10-12 Thread gambas
Comment #4 on issue 465 by krisztiankende: Window initial size error http://code.google.com/p/gambas/issues/detail?id=465 And I noticed that the Me.Hide (or Me.Visible = False) is not work. Public Sub Form_Open() Me.Hide End But opened window is not hide, and "Print Me.Visible" output is "Tr

Re: [Gambas-user] A minor thing re IDE "System informations..."

2013-10-12 Thread Benoît Minisini
Le 06/10/2013 02:46, Bruce a écrit : > I just clicked on "?|System Informations..." in the IDE. > > It popped up the normal form with the following: > [System] > OperatingSystem=Linux > Kernel=3.4.59-pclos1 > Architecture=x86 > Distribution=PCLinuxOS >

Re: [Gambas-user] Problem with Gambas 3.4 and Skiptaskbar

2013-10-12 Thread Benoît Minisini
Le 09/10/2013 20:09, herberth guzman a écrit : > hello, I have a question, I have a form that does not want to display on > the taskbar panel, change the skiptaskbar property to true, but pressing > (alt + tab) still appears in the task manager of windows manager. > How do I NOT display in the task

Re: [Gambas-user] AARRRGH - dates dont get read from the database anymore

2013-10-12 Thread Bruce
On Sat, 2013-10-12 at 09:11 +0200, Benoît Minisini wrote: > Le 12/10/2013 04:45, Bruce a écrit : > > On Sat, 2013-10-12 at 12:51 +1030, Bruce wrote: > >> Rev 5871 did something nasty to database fields that are dates (well for > >> postgresql at least). > >> > >> Any date field is returned from any

Re: [Gambas-user] problems when set printer properties by hand

2013-10-12 Thread Charlie Reinl
Am Samstag, den 12.10.2013, 09:29 +0200 schrieb Benoît Minisini: > Le 11/10/2013 14:17, Karl Reinl a écrit : > > Salut Benoît, > > > > in the attached example there is good and a bad way to set printer > > properties. > > I ignore why that happens, but with the 'bad way', paper is reset to 0, > > a

Re: [Gambas-user] problems when set printer properties by hand

2013-10-12 Thread Benoît Minisini
Le 11/10/2013 14:17, Karl Reinl a écrit : > Salut Benoît, > > in the attached example there is good and a bad way to set printer > properties. > I ignore why that happens, but with the 'bad way', paper is reset to 0, > after .Configure(). > Juist run the example, after Configure() call, just close

Re: [Gambas-user] AARRRGH - dates dont get read from the database anymore

2013-10-12 Thread Benoît Minisini
Le 12/10/2013 04:45, Bruce a écrit : > On Sat, 2013-10-12 at 12:51 +1030, Bruce wrote: >> Rev 5871 did something nasty to database fields that are dates (well for >> postgresql at least). >> >> Any date field is returned from any query (included using the connection >> manager) as a null. >> >> Rev