[Gambas-user] setting columnview column sizes

2010-10-03 Thread richard terry
Having wasted a couple of frustrating hours on this simple task, I thought I'd ask the list. I have a 3 column column view. I want to set the sizes of this to a user- defined width (I've put in the code to save this ok), but for the moment to be concete lets say these are the values: If I put t

[Gambas-user] SQLite 3 and Gambas 2.20

2010-10-03 Thread Barnett Winton
Hi everyone, I have recently discovered Gambas and am using it on a PCLinuxOS 2010 distribution. I have used SQLite databases under VB and RealBasic but am kindof stumped with SQLite3. I am writing a Ham radio Logger App and I need to check the DB tables etc on loading the App. I have been ab

Re: [Gambas-user] Serialization

2010-10-03 Thread Benoît Minisini
> Hi! > I spotted these lines from svn log: > > [INTERPRETER] > * NEW: The READ instruction can read arrays and collections with > 'AS Object' as well as 'AS Variant'. > > [INTERPRETER] > * NEW: WRITE and READ instructions can handle collections and arrays. Call > that "serialization". > >

[Gambas-user] Serialization

2010-10-03 Thread Jussi Lahtinen
Hi! I spotted these lines from svn log: [INTERPRETER] * NEW: The READ instruction can read arrays and collections with 'AS Object' as well as 'AS Variant'. [INTERPRETER] * NEW: WRITE and READ instructions can handle collections and arrays. Call that "serialization". Can you give me example

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
Works as excepted, no surprises here. Problem is how to make shell wait for input. Jussi Please, try the following code and tell us if it works for you: > > > PRIVATE $hprocess AS Process > > PUBLIC SUB Form_Open() > DIM pwd AS String > > pwd = InputBox("Type your root password", "Root privilege

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
OK, here it is. Jussi 2010/10/3 Benoît Minisini > > It is attached to first mail from Stefano. > > > > Jussi > > > > I didn't receive the first mail from Stefano, strange... > > -- > Benoît Minisini > > > -- > Virtuali

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Benoît Minisini
> It is attached to first mail from Stefano. > > Jussi > I didn't receive the first mail from Stefano, strange... -- Benoît Minisini -- Virtualization is moving to the mainstream and overtaking non-virtualized environ

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread EA7DFH
El 03/10/10 19:21, Jussi Lahtinen escribió: > It is attached to first mail from Stefano. > > Jussi > > > 2010/10/3 Benoît Minisini > >>> Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: No, with Ubuntu 10.04 it does not work. Textbox.Text is "", because shell is execute

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
It is attached to first mail from Stefano. Jussi 2010/10/3 Benoît Minisini > > Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: > > > No, with Ubuntu 10.04 it does not work. > > > Textbox.Text is "", because shell is executed before textbox is even > > > shown. > > > > > > Your o

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Benoît Minisini
> Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: > > No, with Ubuntu 10.04 it does not work. > > Textbox.Text is "", because shell is executed before textbox is even > > shown. > > > > Your original code gives result: > > *Password: > > Password: > > su: Authentication failure* > >

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Stefano Palmeri
Il domenica 3 ottobre 2010 18:46:38 Jussi Lahtinen ha scritto: > No, with Ubuntu 10.04 it does not work. > Textbox.Text is "", because shell is executed before textbox is even shown. > > Your original code gives result: > *Password: > Password: > su: Authentication failure* > Then form appears, and

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
No, with Ubuntu 10.04 it does not work. Textbox.Text is "", because shell is executed before textbox is even shown. Your original code gives result: *Password: Password: su: Authentication failure* Then form appears, and after that when write password and click "confirm", you will get error messag

Re: [Gambas-user] Form.ShowModal in Gambas3

2010-10-03 Thread Benoît Minisini
> > Seems to be ok now, example works fine. > > I will have an eye on it and tell you if I encounter new problems. > > > > btw: Why has a modal window a Minimize button at all? > > I always thought that "modal" means the user has to do something, and no > > other action is allowed? > > Because yo

Re: [Gambas-user] Gambas3 :: Method signature and documentation

2010-10-03 Thread Benoît Minisini
> :-) You put me in troubles because of my little english > > I have a class with a method, this method has 8 arguments. Whe I use > that > method, the mini window that appears says me wath argument I am coding. > This mini window was corrected in revision 3241 "* BUG: Method signat

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Benoît Minisini
> Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto: > > I looked your example just for interest. > > It doesn't seem to work with Ubuntu 10.04 64bit. > > > > There are two issues, maybe something with my system... > > This is first time I used "*su*" (normally I use sudo) on this comp

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Stefano Palmeri
Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto: > I looked your example just for interest. > It doesn't seem to work with Ubuntu 10.04 64bit. > > There are two issues, maybe something with my system... > This is first time I used "*su*" (normally I use sudo) on this computer, > and i

Re: [Gambas-user] gambas3 ubuntu packages

2010-10-03 Thread Benoît Minisini
> I have produced some draft ubuntu packages for gambas3, based on svn > revision 3246 > they are produced largely by taking the gambas2 debian packaging files > and replacing a lot of "2"s with "3"s > > some other changes: > > gambas2-gb-kde-html becomes gambas3-gb-qt-webkit > gambas3-gb-gtk-svg

Re: [Gambas-user] Gambas app run as root

2010-10-03 Thread Jussi Lahtinen
I looked your example just for interest. It doesn't seem to work with Ubuntu 10.04 64bit. There are two issues, maybe something with my system... This is first time I used "*su*" (normally I use sudo) on this computer, and it doesn't work... *su -c 'whoami'* gives; *su: Authentication failure* Ho

Re: [Gambas-user] Fwd: svn reorganisation

2010-10-03 Thread Benoît Minisini
> On Saturday 02 October 2010 23:59:33 you wrote: > > > Benoit, > > > > > > Can you read the comments Ian has made about problems with gambas > > > making the exectutable from the contents of the svn. > > > > > > We've heaps of data files > > > > > > Could there be a way to set up gambas to excl