[Gambas-user] DataBrowser Help

2014-12-14 Thread Christian e Ana Luiza Britto
Hi, I'm trying to make a form with a DataBrowser to edit fields in a SqLite 3 table. I've tryed everything... I made a connection, put the datasource container in a form with the Databrowser within with the columns and labels names but nothing happen. It doesn't work. Please, someone can share

Re: [Gambas-user] DataBrowser Help

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 13:34, Christian e Ana Luiza Britto a écrit : Hi, I'm trying to make a form with a DataBrowser to edit fields in a SqLite 3 table. I've tryed everything... I made a connection, put the datasource container in a form with the Databrowser within with the columns and labels names

Re: [Gambas-user] Issue 579 in gambas: Sqlite Conn.Exec failure with a CTE query

2014-12-14 Thread gambas
Updates: Status: Fixed Comment #3 on issue 579 by benoit.m...@gmail.com: Sqlite Conn.Exec failure with a CTE query https://code.google.com/p/gambas/issues/detail?id=579 It should be fixed in revision #6737. -- You received this message because this project is configured to send all

Re: [Gambas-user] Possible sqlite3 component error

2014-12-14 Thread Benoît Minisini
Le 13/11/2014 00:04, B Bruen a écrit : The following query is a standard CTE based query to return the contents of a hierarchical table (i.e. columns are id, parentid, data): WITH RECURSIVE tmp AS ( SELECT *, 0 AS depth FROM pages p WHERE p.parent = 0 UNION ALL SELECT p.*, tmp.depth + 1 FROM

Re: [Gambas-user] Collapsable

2014-12-14 Thread Benoît Minisini
Le 04/12/2014 03:06, Benoît Minisini a écrit : Le 25/11/2014 06:04, B Bruen a écrit : Benoît, Is there any reason why the form controls hierarchy treeview in the IDE (FFormStack) cancels out the collapse event? I have commented out the code in my local copy and can see no disadvantage?

Re: [Gambas-user] Bug with GTK+

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 03:34, Jussi Lahtinen a écrit : Textbox's event is fired twice if the box is disabled, enabled and put in focus. See attachment. Everything work as expected with Qt4. Jussi Not really. It behaves badly too with gb.qt4, but just less. Disabling a control, then re-enabling

[Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
I can find out what the current directory is with: Print Application.Env[PWD] However there does not seem to be anything to change the present working directory within the File Directory Functions. I did try using the shell function. It did not seem to have the desired effect.

Re: [Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Tobias Boege
On Sun, 14 Dec 2014, Lewis Balentine wrote: I can find out what the current directory is with: Print Application.Env[PWD] However there does not seem to be anything to change the present working directory within the File Directory Functions. I did try using the shell function. It did

Re: [Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
spawns a new process (the shell) which changes its directory (using the cd built-in) to /another/directory and then dies. That is what I expected but I wanted to verify it to before I asked the question. If you want to change the CWD of your process nevertheless, I guess you can use

Re: [Gambas-user] Bug with GTK+

2014-12-14 Thread Jussi Lahtinen
Disabling a control, then re-enabling it, then giving it focus back inside a keypress event is not a good idea. The keypress event waits for enter key as sign of end of user input. Then the idea is to disable user input while data is shown in other control. This was first thing in my mind how

Re: [Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Jussi Lahtinen
Just write: Private sThePath As String = /mnt/Data/videos And use that variable everywhere as path. That way it is easy to change when needed. DoSomething(sThePath / file.ext) Jussi On Sun, Dec 14, 2014 at 7:37 PM, Lewis Balentine le...@keywild.com wrote: spawns a new process (the shell)

Re: [Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
Private WorkDir As String Public Sub Main() WorkDir = Application.Dir ' for development and change path to our sample directory ' comment out next line for actual runtime program WorkDir = /mnt/Data/videos ... End Thank you gentlemen

Re: [Gambas-user] File Directory Functions: PWD, cd

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 17:54, Lewis Balentine a écrit : I can find out what the current directory is with: Print Application.Env[PWD] However there does not seem to be anything to change the present working directory within the File Directory Functions. I did try using the shell function. It

Re: [Gambas-user] [gambas-user] Possible bug in gb.gui

2014-12-14 Thread Paul Horechuk
OK, then let's rephrase that slightly. The gb.gtk component does not behave the same as the gb.qt4 component. If I disable the capability to autodetect the environment and force the use of gb.qt4, then everything works. Hence, the problem is within gb.gtk. As part of setting the taget

[Gambas-user] DataBrowser Help Again

2014-12-14 Thread Christian e Ana Luiza Britto
Hi Benoît Minisini and everybody Yes, I've tried to follow the Database example. If I run it it works, but my app still doesn't work. I'm using Gambas version 3.6.90. When I try to inform the Datasource connection name property via IDE the database connection I inform is not maintained, when I

[Gambas-user] Colors

2014-12-14 Thread Fabien Bodard
Hi, How can i extract the integer color 0-255 of a grayscale image ? -- Fabien Bodard -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and

Re: [Gambas-user] Colors

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 21:52, Fabien Bodard a écrit : Hi, How can i extract the integer color 0-255 of a grayscale image ? What for? -- Benoît Minisini -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

Re: [Gambas-user] Colors

2014-12-14 Thread Fabien Bodard
i want to make an array[imgWidth,ImgHeight] with value 0-255 representing the grayscale color of an image. I hope to accelerate my keycorner procedure this way. Actually the values of colors even in after a .grayscale are far upper. 2014-12-14 21:57 GMT+01:00 Benoît Minisini

Re: [Gambas-user] Colors

2014-12-14 Thread Fabien Bodard
J'ai mal cherché ... désolé http://fr.wikipedia.org/wiki/Niveau_de_gris je vais utiliser le canal vert 2014-12-14 22:20 GMT+01:00 Fabien Bodard gambas...@gmail.com: i want to make an array[imgWidth,ImgHeight] with value 0-255 representing the grayscale color of an image. I hope to accelerate

Re: [Gambas-user] Colors

2014-12-14 Thread Fabien Bodard
et en plus ça marche :-) !!! 2014-12-14 22:29 GMT+01:00 Fabien Bodard gambas...@gmail.com: J'ai mal cherché ... désolé http://fr.wikipedia.org/wiki/Niveau_de_gris je vais utiliser le canal vert 2014-12-14 22:20 GMT+01:00 Fabien Bodard gambas...@gmail.com: i want to make an

Re: [Gambas-user] [gambas-user] Possible bug in gb.gui

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 21:10, Paul Horechuk a écrit : OK, then let's rephrase that slightly. The gb.gtk component does not behave the same as the gb.qt4 component. If I disable the capability to autodetect the environment and force the use of gb.qt4, then everything works. Hence, the problem is within