Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Benoit Minisini
I'm not at home but I answer anyway... This magic path already exists. :-)

Just add ../ before the relative path.

Public Sub Open(Path As String)

  Dim fichier As File

  If Left(Path)  / then Path = .. / Path

  ...

2012/4/22 Fabien Bodard gambas...@gmail.com

 2012/4/22 Adrien Prokopowicz adrien.prokopow...@gmail.com:
  Hi Benoît,
 
  In gb.xml, in XmlReader, i'm loading a file through the Open instruction
 :
 
  Public Sub Open(path As String)
 
   Dim fichier As File
 
   fichier = Open path For Input
   Me.InputStream = fichier
 
  End
 
  But when path is a relative path, it refers to the project of the
 component,
  not to the user's project. So the interpreter doesn't find the file, and
 raises
  an error.
 
  How can I make relative paths referring to the good file ?
 

 a solution will be to add a magic path... in open funtion
 relative:
 project:/file.xml


 so

 open project:/file.xml for read

 will open the main project file

 this tool must work with all file tools such as exist
 --
 Fabien Bodard


 --
 For Developers, A Lot Can Happen In A Second.
 Boundary is the first to Know...and Tell You.
 Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
 http://p.sf.net/sfu/Boundary-d2dvs2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user





--
Benoit Minisini
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas version and mod with Long behavior

2009-02-02 Thread Benoit Minisini
On lundi 2 février 2009, Ron wrote:
 Hi,

 I have noticed that the gambas version number is not displayed anymore
 in the about window of Gambas 2.11.1
 Also the logo there seems to cover the t of .net, maybe thats the reason
 the rest is missing.
 It just show Gambas2 here... would be handy to see which one.

 Another thing:

 PUBLIC SUB Main()

   DIM lSeconds AS Long = 120
   DIM iSeconds AS Integer = 120

   PRINT lseconds MOD 60
   PRINT iSeconds MOD 60

 END

 Gives:
 120
 0

 I know that gambasdoc describes that MOD works with integers, but is
 this wanted behavior?
 I cannot remember that this failed on earlier versions, all of a sudden
 I have noticed that my TimeConvert routines didn't work correctly
 anymore, due to the fact that i supply longs to MOD apperantly.

 Gambas 2.11.1, gb.qt, ubuntu hardy

 Regards,
 Ron_2nd



Some stupid miss... I fixed that in revision #1848, and will make a 2.11.2 
soon.

Regards,


-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas version and mod with Long behavior

2009-02-02 Thread Benoit Minisini
On lundi 2 février 2009, Ron wrote:
 Benoit Minisini schreef:
  On lundi 2 février 2009, Ron wrote:
  Hi,
 
  I have noticed that the gambas version number is not displayed anymore
  in the about window of Gambas 2.11.1
  Also the logo there seems to cover the t of .net, maybe thats the reason
  the rest is missing.
  It just show Gambas2 here... would be handy to see which one.
 
  Another thing:
 
  PUBLIC SUB Main()
 
DIM lSeconds AS Long = 120
DIM iSeconds AS Integer = 120
 
PRINT lseconds MOD 60
PRINT iSeconds MOD 60
 
  END
 
  Gives:
  120
  0
 
  I know that gambasdoc describes that MOD works with integers, but is
  this wanted behavior?
  I cannot remember that this failed on earlier versions, all of a sudden
  I have noticed that my TimeConvert routines didn't work correctly
  anymore, due to the fact that i supply longs to MOD apperantly.
 
  Gambas 2.11.1, gb.qt, ubuntu hardy
 
  Regards,
  Ron_2nd
 
  Some stupid miss... I fixed that in revision #1848, and will make a
  2.11.2 soon.
 
  Regards,

 Yes verified that both issue are working ok again.
 I always thought that version 2 was the stable route ;-) just kidding...

 Thanks!
 Ron_2nd.


It is the stable route. I just did a bug inside the bug fix. :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange message error

2009-02-01 Thread Benoit Minisini
On dimanche 1 février 2009, Leonardo Miliani wrote:
 I know that the following code is wrong 'cause Gambas doesn't accept
 multiply instructions on 1 row but I would report the strange message
 error that I get:
 Unespected k
 alla riga . (at row) [where there is the FOR loop]

 Code:
 ---
 DIM A, b AS Integer
   FOR a = 1 TO 10: b += 1: NEXT
 ---

 P.S.:
 Gambas 2.11 / Ubuntu 8.10

Funny. I will look at it...

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange message error

2009-02-01 Thread Benoit Minisini
On dimanche 1 février 2009, Benoit Minisini wrote:
 On dimanche 1 février 2009, Leonardo Miliani wrote:
  I know that the following code is wrong 'cause Gambas doesn't accept
  multiply instructions on 1 row but I would report the strange message
  error that I get:
  Unespected k
  alla riga . (at row) [where there is the FOR loop]
 
  Code:
  ---
  DIM A, b AS Integer
FOR a = 1 TO 10: b += 1: NEXT
  ---
 
  P.S.:
  Gambas 2.11 / Ubuntu 8.10

 Funny. I will look at it...

OK, this is fixed in revision #1840.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas PostgreSQL cannot create index. relation XXX does not exist.

2009-02-01 Thread Benoit Minisini
On jeudi 22 janvier 2009, Randy wrote:
 Hello.

 New to Gambas and having problems with following code:

 STATIC PUBLIC FUNCTION CreateGLTables()

   DIM hTable AS Table

   hTable = Global.$hConn.Tables.Add(glcoa)
   WITH hTable
 .Fields.Add(company, db.String, 3)
 .Fields.Add(account, db.String, 12)
 .Fields.Add(description, gb.String, 32)
 .Fields.Add(gltype, gb.String, 1)
 .Fields.Add(glsort, gb.Integer)
 .Fields.Add(status, gb.String, 1)
 .PrimaryKey = [account]
 .Indexes.Add(glcoa_account, account, TRUE)
 .Indexes.Add(glcoa_sort, glsort, TRUE)
 .Update
END WITH

 CATCH

   Message.Error(CreateGLTables Function:   DConv(Error.Text))
 END


 The error is Cannot create index. relation glcoa does not exist. Why?
 Can not find any information on the internet about this error.

 Help :-(
 Randy


Finally, this is not a bug. Just that the database component can only create 
indexes on already existing tables. 

And the table you are creating does not exist until you call the Update 
method. So you just have to move the .Update line just before 
the .Indexes... lines.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Minor bug with READ WRITE commands?

2009-02-01 Thread Benoit Minisini
On lundi 19 janvier 2009, Jussi Lahtinen wrote:
 I agree.
 But there should be warning message in documentation of read and write
 commands.


 Jussi


I added a big warning on the documentation page of the READ and WRITE 
instructions.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] timers in console app

2009-02-01 Thread Benoit Minisini
On dimanche 1 février 2009, Joshua Higgins wrote:
 This is my code, but it doesn't seem to work.

 PUBLIC SUB Main()

   DIM timer1 AS NEW Timer
   timer1.Delay = 100
   timer1.Enabled = TRUE

 END

 PUBLIC SUB timer1_Timer()

   PRINT hello

 END

 Whats wrong here?


See the documentation of NEW: if you don't specify an event time, your timer 
will never raise events.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Release of Gambas 2.11.1

2009-02-01 Thread Benoit Minisini
Hi,

Here is a release to fix last-minute bugs in the 2.11 version:

* The arithmetic operations on Boolean, Byte and Short now behave correctly 
when an overflow occurs. 

* The compiler message displayed when there is a syntax error in a FOR...NEXT 
loop is correct now. 

* The GridView now stretched its last column correctly. 

* The GridView cell padding has been fixed.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Gambas IDE property viewer

2009-01-30 Thread Benoit Minisini
On vendredi 30 janvier 2009, Leonardo Miliani wrote:
 I don't know if it is a new bug or an old one because I've noticed it
 only right now... but the comboboxes of the properties viewer don't work
 properly in every situation.

 As you can see in the attached screenshot, most of the times if I select
 a property with a combobox, the arrow on the right side of the combobox
 doesn't appear (it seems out of the desktop area) and, when I click on
 it, the menu is too large.

Which version of gambas???

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Benoit Minisini
 my.list works OK but in Makefile I get:
   cp: invalid option -- g
   Try `cp --help' for more information.
 adding the ; on the single cp line and files are again deleted
 So for correct working of the cp command it must finish with ;

 Finak result is now:
 Installing the components...
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.settings...
 OK
 Installing gb.settings...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.info...
 OK
 Installing gb.info...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form...
 /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown
 identifier: Control Installing gb.form...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.dialog...
 /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:52:
 Unknown identifier: HBox Installing gb.form.dialog...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.mdi...
 /home/ron/src/gambas3/trunk/comp/src/gb.form.mdi/Action.class:7: Unknown
 identifier: Window Installing gb.form.mdi...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.db.form...
 /home/ron/src/gambas3/trunk/comp/src/gb.db.form/Common.module:3: Unknown
 identifier: Control Installing gb.db.form...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.web...
 OK
 Installing gb.web...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.report...
 /home/ron/src/gambas3/trunk/comp/src/gb.report/FReportTutorial1.class:141:
 Unknown identifier: Button Installing gb.report...
 ---
 Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.chart...
 /home/ron/src/gambas3/trunk/comp/src/gb.chart/Chart.class:28: Unknown
 identifier: Color Installing gb.chart...
 ---
 make[1]: Nothing to be done for `install-data-am'.
 make[1]: Leaving directory `/home/ron/src/gambas3/trunk/comp'


 Much much better.
 common for the Unknown identifier: i have already posted but no answer.
 the filet is called .class but the identifier is in the .form
 after the second '{'

 # Gambas Form File 3.0

 { Form Form
   MoveScaled(0,0,94,54)
   Text = (Text Editor)
   Icon = Picture[icon:/16/edit]
   Arrangement = Arrange.Vertical
   Spacing = 5
   Padding = 5
   { HBox1 HBox         -- this identifier  
     MoveScaled(1,1,92,4)
     { btnLock ToolButton



 What ever is wrong in/at/on/under my box, is is stupid gba/gbc are delete
 the .info and .list files when they find this error.
 The .gambas directory that is deleted in every component loop is empty for
 these components. By missing this two files the next compile/install will
 gives error for ever because the missing of those files.

 Please check gbc and gba for this behaviour of delete.
 Is there a explain why it not is done when in the Makefile
 in the previous command (the by me wrong added cp .list my.list)
 has a error.





 gambas2.10.2 did compile and run OK.
 With ./configure without --prefix then auto destdir is auto set to
 /usr/local and the symbolic links are in /usr/local/bin and not in /usr/bin
 I have good reason my box is correct condition to do the job.

 The major difference is svn or the source I get from svn.
 To check the svn part I need a tarball of a fresh svn checkout. How do I
 get this? Getting other code with svn did work and I can asume the svn
 installed is not totaly bad.



 I know this report is long but shows that I realy try to find what is going
 wrong. Also I can use gambas2 till final gambas3 is ready.
 Who can tell me I will be able to compile that final gambas3 whitout
 problems ?.



 Going for part 2 investigate:

   Restored 'gb.gtk/src/gb.gtk/.info'
   Restored 'gb.gtk/src/gb.gtk/.list'
   Restored 'gb.qt/src/gb.qt/.info'
   Restored 'gb.qt/src/gb.qt/.list'



 Best regards,

 Ron_1st

I am going to test from a fresh checkout to understand what happens exactly... 
Wait a moment! :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-01-30 Thread Benoit Minisini
On vendredi 30 janvier 2009, Ron_1st wrote:

 Question to Benoit
 I have 2 directories for aclocal, aclocal and aclocal-1.9
 the configure script refer to the 1.9, does aclocal/automake fall back to
 the aclocal for missing *.m4 files ?


I don't know what you are talking about. Where are these two aclocal 
directories?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Benoit Minisini
On samedi 31 janvier 2009, Ron_1st wrote:
 On Friday 30 January 2009, Benoit Minisini wrote:
  On vendredi 30 janvier 2009, Ron_1st wrote:

 8==

   Best regards,
  
   Ron_1st
 
  I am going to test from a fresh checkout to understand what happens
  exactly... Wait a moment! :-)

 OK

 Found some other code related things but first the comile and install.
 Also it kan be of course a (k)ubuntu problem, see answer to charlie
 about aclocal.

 Thanks for look and try.



 Best regards,

 Ron_1st

I compiled and installed a fresh checkout of trunk, and I got no error at all, 
and all the warnings I got are normal.

So at the moment, I don't understand what happens on your system.

Did you try to do everything except installation as a normal user?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3

2009-01-30 Thread Benoit Minisini
On samedi 31 janvier 2009, Ron_1st wrote:
 On Saturday 31 January 2009, Benoit Minisini wrote:
  On vendredi 30 janvier 2009, Ron_1st wrote:
   Question to Benoit
   I have 2 directories for aclocal, aclocal and aclocal-1.9
   the configure script refer to the 1.9, does aclocal/automake fall back
   to the aclocal for missing *.m4 files ?
 
  I don't know what you are talking about. Where are these two aclocal
  directories?

 reconf and/or configure use it.



 /usr/share/aclocal
 /usr/share/aclocal-1.9


 # aclocal --version
   aclocal (GNU automake) 1.9.6
 # automake --version
   automake (GNU automake) 1.9.6
 # libtool --version
   ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493
 2008/02/01 16:58:18)






 Best regards,

 Ron_1st

I have the same directories on Mandriva, but an older version. It seems that 
their contents are mutually exclusive, so I think everything is normal there.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] svn-compile error part1

2009-01-30 Thread Benoit Minisini
On samedi 31 janvier 2009, Ron_1st wrote:
 On Saturday 31 January 2009, Benoit Minisini wrote:
  On samedi 31 janvier 2009, Ron_1st wrote:
   On Friday 30 January 2009, Benoit Minisini wrote:
On vendredi 30 janvier 2009, Ron_1st wrote:
  
   8==
  
 Best regards,

 Ron_1st
   
I am going to test from a fresh checkout to understand what happens
exactly... Wait a moment! :-)
  
   OK
  
   Found some other code related things but first the comile and install.
   Also it kan be of course a (k)ubuntu problem, see answer to charlie
   about aclocal.
  
   Thanks for look and try.
  
  
  
   Best regards,
  
   Ron_1st
 
  I compiled and installed a fresh checkout of trunk, and I got no error at
  all, and all the warnings I got are normal.
 
  So at the moment, I don't understand what happens on your system.
 
  Did you try to do everything except installation as a normal user?

 if I give you a ip address will you upload your compiled trunk directory
 to my box so I can compare for differences between yours and mine.



 It is around 270MByte





 Best regards,

 Ron_1st

Yes, but I will upload first the /trunk directory after a make clean. It 
will be lighter, and I think that the devil is in the things generated 
by ./reconf-all and ./configure.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to address more than one table in resultset

2009-01-29 Thread Benoit Minisini
On jeudi 29 janvier 2009, Ron wrote:
 Bit stuck.

 In an attempt to optimize some db queries.

 I changed this (gets all events first then check if enabled, then gets
 the trigger fields for that event etc):
 
   DIM rResult, rResultTrig, rResultAction AS Result

   rResult = Main.hDB.Exec(SELECT * FROM events)
   IF rResult THEN
 IF rResult.Count THEN
   FOR EACH rResult
 IF rResult!enabled THEN
   IF rResult!trigger1 THEN
 rResultTrig = Main.hDB.Exec(SELECT * FROM triggers WHERE id
 = 1 , rResult!trigger1)
 IF rResultTrig THEN
   IF rResultTrig!param1 =
 ...
NEXT
 

 to this (gets selected events and triggers table/fields):
 
   DIM rResult AS Result

   rResult = Main.hDB.Exec(SELECT * FROM events, triggers WHERE
 events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled
 AND triggers.param1 = 1, iId)

   IF rResult THEN
 IF rResult.Count THEN

   FOR EACH rResult
 ...
   NEXT
 
 In the sql query tool from database manager it returns exactly the
 correct records/fields etc

 But how can I get the fields from the triggers table from this resultset?

 I cannot do something like  rResult!triggers.id
 Is this possible?


The '!' syntactic sugar works only if you use an identifier. Otherwise you 
must use the [] syntax: rResult[triggers.id].

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with Byte datatype ?

2009-01-29 Thread Benoit Minisini
On jeudi 29 janvier 2009, Simonart Dominique wrote:
 Dominique SIMONART a écrit :
  Hi evererybody,
 
  If I code the few lines showed below:
 
  DIM X AS Byte
  DIM Texte AS String[64]
 
X = h2E
X += hE0
TextBox1.Text = Hex(X)
Texte[X] = Hex(X)
 
  I get '10E' displayed. Is this correct for a byte?
  If you put a breakpoint on the TextBox1 line, the local variables show X
  value as 14 (h0E) which is correct.
  and the last line ends wit an 'out of bounds' message.
 
  (as a workaround, I actually insert a' X = X MOD 256' instruction just
  before the last line)
 
  If you wonder why the hell I've to use bytes, I'm working on a memory
  capture of an Amiga program (Captive) running inside the emulator
  WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and
  byte usage was quite common!
  and more, the memory byte order was not compatible with the actual PC so
  you have to read memory byte by byte to restore the Amiga organisation
 
  regards,
  Dominique Simonart
 
 
  -
 - This SF.net email is sponsored by:
  SourcForge Community
  SourceForge wants to tell your story.
  http://p.sf.net/sfu/sf-spreadtheword
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user

 Sorry for missing needed information:
 Gambas 2.8 OpenSuse 11.0

 Dominique Simonart


Things should be fixed in revision #1835 for Gambas 2 and #1836 for Gambas 3.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] To wishlist: Missing assignment operator.

2009-01-29 Thread Benoit Minisini
On jeudi 29 janvier 2009, Jussi Lahtinen wrote:
 Hi!

 Now I have to write like this;
 ff = ff ^ 1.2
 instead of this;
 ff ^= 1.2

 I think this is rarely used (not rare in my project), but nice to
 have. I was little suprised that it is absent.
 So, low priority.
 Thanks!


 Jussi


Done in Gambas 3, revision #1837.

It was just one line to add to a file. :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-28 Thread Benoit Minisini
On mercredi 28 janvier 2009, Ron_1st wrote:
 svn 1825

 then mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo; else rm
 -f .deps/CImageStat.Tpo; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../..
 -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char
 -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF
 .deps/CImageStat.Tpo -c CImageStat.c  -fPIC -DPIC -o .libs/CImageStat.o In
 file included from CImageStat.c:27:
 image_stat.h:77:7: warning: no newline at end of file
 make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'. 
 Stop. make[5]: Leaving directory
 `/home/ron/src/gambas3/trunk/main/lib/image' make[4]: *** [all-recursive]
 Error 1



 Best regards,

 Ron_1st

Update to the latest revision!

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ServerSocket application without Forms

2009-01-28 Thread Benoit Minisini
On mardi 27 janvier 2009, Jose J. Rodriguez wrote:
 Is it possible to use ServerSocket in an applciation without Forms? I
 have been placed all the code in the Main Module and though I get a
 connection, the _Connection event does not seem to fire.

 Regards,
 Joe1962


Of course. You just must not forget to specify the event name when 
instanciating the object:

MyServerSocket = NEW ServerSocket AS ServerSocketEventName

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Slow Gridview creation

2009-01-28 Thread Benoit Minisini
On mercredi 28 janvier 2009, M. Cs. wrote:
 Dear Benoit,
 I would like to know whether it is possible to make GridView creation and
 filling process faster. I'm using databases for storage, then I'm doing the
 querries, which are giving tens of thousand results, or tens of thousand
 rows with five columns each. First, I put the results into five separated
 arrays, and afterwards I'm using them with a FOR...NEXT cycle. This is the
 code I'm using:

 visszhang = DBconX.Exec(quert)
 FOR EACH visszhang
 nev.Add(visszhang!FName)
 ut.Add(visszhang!FPath)
 nagy.Add(Round(visszhang!FSize / 1048576, -2))
 mikor.Add(visszhang!FChanged)
 kotet.Add(point)
 NEXT
 dis = nev.Count
 gV.Rows.Count = dis
 FOR i = 0 TO dis - 1
 gV[i, 0].Text = nev[i]
 gV[i, 1].Text = kotet[i]
 gV[i, 2].Text = ut[i]
 gV[i, 3].Text = nagy[i]
 gV[i, 4].Text = mikor[i]
 NEXT

 But like this it takes eternity to create a table of 17.000 rows. There is
 a remark in Gambas documentation:
 * You should use the last
 methodfile:///usr/share/gambas2/help/help/def/method.htmlif you have
 thousands of rows to display.
 *What does it exactly mean? Can you recommend me a faster algorithm?
 Thanks!

You must do exactly what is written in the documentation: instead of setting 
the data explicitely, you must implement the Data event handler. In this 
event handler, you will receive the Row and Column of the cell to fill, and 
in return you set the properties of the GridView.Data property to define the 
cell contents.

PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer)

  MyGridView.Data.Text = Row   :   Column

END

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What happened to the back button in IDE

2009-01-28 Thread Benoit Minisini
On jeudi 29 janvier 2009, richard terry wrote:
 noticed its been missing for quite a while, I used to find it quite handy
 to navigate around the IDE.

 Regards

 Richard


Click on the toolbar handle to configure the toolbar according to your needs.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-27 Thread Benoit Minisini
On mardi 27 janvier 2009, Ron_1st wrote:
  gb.xml
  gb.xml.rpc
  gb.xml.xslt
  Installing the components...
  Compiling gb.settings...
  OK
  Installing gb.settings...
  Compiling gb.info...
  OK
  Installing gb.info...
  Compiling gb.form...
  Cannot read component list file:
  /root/.local/share/gambas3/info/gb.form.list
  /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown
  identifier: Control

 Done with new svn in home/ron/src/gambas/trunk
 Still same errors.
 Conclusion till now is that there are problems with components written in
 gambas. Creatimg the info and list files does not work correct.
 In the /usr/local/share/gambas3/info directory I see strange things
 First only gb.form.dialog.info and .list
 Second zero length files for
 gb.gtk.info .list
 gb.gui.info .list
 gb.qt.info .list


 end of configure gambas3 from svn is:
 
 THESE COMPONENTS ARE DISABLED:
 - gb.cairo
 - gb.corba
 - gb.qt4
 - gb.qte
 

 end of configure gambas2.10 from tarball is:
 
 THESE COMPONENTS ARE DISABLED:
 - gb.qt4
 - gb.qte
 
 (For gambas2 Ihave not done the 'make install')



 r...@terminator:/home/ron/src/gambas3/trunk# cat configure1.log | grep
 'component ' checking for foreign function interface component with
 pkg-config... no checking for SQLite 3 driver component with pkg-config...
 OK
 checking for GTK+ toolkit component with pkg-config... OK
 checking for GTK+ component component with pkg-config... OK
 checking for SVG loader for GTK+ component with pkg-config... OK
 checking for Poppler PDF library component with pkg-config... OK
 checking for Networking component headers...
 checking for Networking component libraries...
 checking for Advanced networking component component with pkg-config... OK
 checking for STMP client component with pkg-config... OK
 checking for Perl Compatible Regular Expression component headers...
 /usr/include/ checking for Perl Compatible Regular Expression component
 libraries... /usr/lib/ checking for QT component component with
 pkg-config... OK
 checking for QT OpenGL component headers... /usr/include/GL/
 checking for QT OpenGL component libraries... /usr/lib/
 checking for QT/Embedded component headers... /usr/include/qt3/
 checking for QT/Embedded component libraries... no
 checking for QT component component with pkg-config... OK
 checking for KDE 3.x component headers... /usr/include/kde/
 checking for KDE 3.x component libraries... /usr/lib/
 checking for XML parser component component with pkg-config... OK
 checking for XSLT/XML parser component component with pkg-config... OK
 checking for Video For Linux component headers... /usr/include/
 checking for Video For Linux component libraries... /usr/lib/
 checking for DES/MD5 crypt component headers... /usr/include/
 checking for DES/MD5 crypt component libraries... /usr/lib/
 checking for CORBA component headers... no
 checking for CORBA component libraries... no
 checking for Gnome desktop routines component with pkg-config... no
 checking for QT4 toolkit component with pkg-config... no
 checking for Cairo component component with pkg-config... no
 checking for Image loading and saving component with pkg-config... OK



 checking for Gnome desktop routines component with pkg-config... no
 This is standard on KUbuntu.
 Ubuntu users must for IDE get the kde stuff extra so both exists then.

 By missing the Gnome desktop gb.ui fails ???
 By missing the Gnome desktop gb.gtk fails ???
 Do after fail of gb.ui the gb.qt and gb.gtk fail both ???

 From previous message:

 r...@terminator:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas
 No protocol specified
 (gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0

 Question Gtk ?? gtk-dev is all installed and kubuntu uses QT.




 Best regards,

 Ron_1st

There was a syntax error in gb.db.mysql I just fixed, but it is not related to 
your problems.

The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent 
gb.desktop to be compiled. It will just prevent gb.desktop to store password 
in the Gnome keyring.

So I suggest that you delete your Gambas directory, do a checkout from start, 
and compile everything again!

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-27 Thread Benoit Minisini
On mercredi 28 janvier 2009, Ron_1st wrote:
  There was a syntax error in gb.db.mysql I just fixed, but it is not
  related to your problems.
 
  The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent
  gb.desktop to be compiled. It will just prevent gb.desktop to store
  password in the Gnome keyring.
 
  So I suggest that you delete your Gambas directory, do a checkout from
  start, and compile everything again!
 
  Regards,

 I have it done before I send the last results.
 Removed all in /usr/local, everywhere in my home and in the /root dir
 and /usr/share, the /tmp/gambas###

Did you remove the symbolic links in /usr/bin ?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-26 Thread Benoit Minisini
On lundi 26 janvier 2009, Ron_1st wrote:
 On Sunday 25 January 2009, Benoit Minisini wrote:
  Apparently the gb.qt component did not compile - You should check that
  before trying to install anything.

 in output.txt

 line# 5623:
 Compiling the gb.gtk project...
 gb.gtk
 /root/src/gambas/trunk/gb.gtk/src/gb.gtk/Action.class:16: Unknown
 identifier: Picture

 line# 5968:
 Compiling the gb.qt project...
 gb.qt
 /root/src/gambas/trunk/gb.qt/src/gb.qt/Action.class:16: Unknown identifier:
 Picture


 line# 6613:
 Compiling the gb.desktop project...
 gb.desktop
 Cannot read component list file:
 /root/.local/share/gambas3/info/gb.form.list
 /root/src/gambas/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:14:
 Unknown identifier: Image

 Creating the information files for gb.desktop component...
 gb.desktop

 !!! hu what does gb.form.list have to do with gb.desktop and the path
 /root/.local/ 






 Best regards,

 Ron_1st

Apparently you have compiled the same version of Gambas on different 
locations, without removing the previous installation before installing the 
new one.

To uninstall Gambas, you had to run make uninstall.

Now you have to clean up your system, by removing the removing the symbolic 
links created in /usr/bin. Their names are /usr/bin/gb?3. Then you can 
run make install again.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] make install errors

2009-01-25 Thread Benoit Minisini
On lundi 26 janvier 2009, Ron_1st wrote:
 On Sunday 25 January 2009, Benoit Minisini wrote:
  On dimanche 25 janvier 2009, Ron_1st wrote:
   kubuntu 8.04
  
   r...@terminator:~# aclocal --version
 aclocal (GNU automake) 1.10.1
   r...@terminator:~# automake --version
 automake (GNU automake) 1.10.1
   r...@terminator:~# libtool --version
 ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493
   2008/02/01 16:58:18)
  
  
   got the svn source
   reconf-all
   configure
   make
  
   make install
   Get:
  
   Installing gb.settings...
   Compiling gb.info...
   OK
   Installing gb.info...
   Compiling gb.form...
   Cannot read component list file:
   /root/.local/share/gambas3/info/gb.form.list
   /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown
   identifier: Control Installing gb.form...
   /usr/bin/install: cannot stat `.info': No such file or directory
   chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No
   such file or directory /usr/bin/install: cannot stat `.list': No such
   file or directory
   chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No
   such file or directory Compiling gb.form.dialog...
   Cannot read component list file:
   /root/.local/share/gambas3/info/gb.form.list
   /root/src/gambas/trunk/comp/src/gb.form.dialog/FDirDialog.class:51:
   Unknown identifier: DirChooser 8
   Cannot read component list file:
   /root/.local/share/gambas3/info/gb.form.list
   /usr/local/share/gambas3/examples/Sound/MusicPlayer/FSoundPlayer.class:
  106: Unknown identifier: ToolButton Compiling Video/MoviePlayer/...
   /usr/local/share/gambas3/examples/Video/MoviePlayer/FMoviePlayer.class:
  159: Unknown identifier: TextLabel Compiling Video/MyWebCam/...
   /usr/local/share/gambas3/examples/Video/MyWebCam/Form1.class:234:
   Unknown identifier: PictureBox make[2]: Nothing to be done for
   `install-data-am'. make[2]: Leaving directory
   `/root/src/gambas/trunk/examples'
   make[1]: Leaving directory `/root/src/gambas/trunk/examples'
   make[1]: Entering directory `/root/src/gambas/trunk'
   make[2]: Entering directory `/root/src/gambas/trunk'
   make[2]: Nothing to be done for `install-exec-am'.
   make[2]: Nothing to be done for `install-data-am'.
   make[2]: Leaving directory `/root/src/gambas/trunk'
   make[1]: Leaving directory `/root/src/gambas/trunk'
   r...@terminator:~/src/gambas/trunk#
  
   It does not matter doing all as user or as root
  
   I'm now going to try downgrade to aclocal/automake 1.9
   But still the interesting point is
 Cannot read component list file:
   /root/.local/share/gambas3/info/gb.form.list and many more for
   component list files /root/.local/share/
   this happens also as done as user ron with sudo make install
  
  
   r...@terminator:~/src/gambas/trunk# whoami
   root
  
  
  
   Best regards,
  
   Ron_1st
 
  Apparently the gb.qt component did not compile - You should check that
  before trying to install anything.

 just done:
 ( ./configure -C; make; make install )  output.txt 21

 I see at line 149 and up

 checking for external internationalization library headers... /usr/include/
 checking for external internationalization library libraries... no
 configure: WARNING: Unable to find file: libintl.so
 configure: This library may be located inside the system C library, so
 let's go on... checking for optional external charset conversion library
 headers... /usr/include/ checking for optional external charset conversion
 library libraries... no configure: WARNING: Unable to find file:
 libiconv.so
 configure: This library may be located inside the system C library, so
 let's go on... checking for foreign function interface component with
 pkg-config... no configure: WARNING: *** foreign function interface is
 disabled
 checking for foreign function interface headers... /usr/include/
 checking for foreign function interface libraries... /usr/lib/


 libintl.so and libiconv.so do not exist in (k)ubuntu 8.04, I Can't find
 them. the .h however is there.
 With apt-file search i get


 apt-file search libiconv.so
 none found

 apt-file search libiconv
 libiconv-hook-dev: /usr/lib/libiconv_hook.so
 libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.Debian.gz
 libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.gz
 libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/copyright
 libiconv-hook1: /usr/lib/libiconv_hook.a
 libiconv-hook1: /usr/lib/libiconv_hook.so.1
 libiconv-hook1: /usr/lib/libiconv_hook.so.1.0.0
 libiconv-hook1: /usr/share/doc/libiconv-hook1/README.Debian
 libiconv-hook1: /usr/share/doc/libiconv-hook1/README.JP.gz
 libiconv-hook1: /usr/share/doc/libiconv-hook1/README.gz
 libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.Debian.gz
 libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.gz
 libiconv-hook1: /usr/share/doc/libiconv-hook1/copyright

 apt-file search libintl.so
 gettext: /usr/lib/preloadable_libintl.so
 libuclibc-dev: /usr

Re: [Gambas-user] Gambas PostgreSQL cannot create index. relation XXX does not exist.

2009-01-23 Thread Benoit Minisini
On vendredi 23 janvier 2009, Randy-53 wrote:
 Hello Richard,

 I have pgAdmin and made the table with SQL then I tried in gambas code
 without index. That works Ok. Next I added the .Index.Add and the code
 failed with error Cannot create index. relation glcoa does not exist.  I
 would like the program to use Postgresql and sqlite for the database. So
 that is why I wrote the function in Gambas code. I'm testing Gambas, Kbasic
 and, Realbasic to see about coding a business software (General Ledger,
 Account Payable, Point of Sales etc...) I'm new to Gambas and PostgreSQL,
 but I think this is a bug.

 Randy :-(

 Debian Etch, Postgresql 8.1.15, KDE 3.5.5

 This a very simple project. Just connect to database, then make table.
 Project Files:  http://www.nabble.com/file/p21631439/fbs.tar.gz fbs.tar.gz

I am currently busy with theatre until Sunday. I will look at the bug then!

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Warning with Gambas 3

2009-01-21 Thread Benoit Minisini
Hi,

Beware that in the latest revision of the development version, the syntax of 
the Image constructor has changed.

Before, it was:


New Image(Width As Integer, Height As Integer, Optional Transparent As 
Boolean)


Now, Image are always transparent, and the syntax is:


New Image(Optional Width As Integer, Optional Height As Integer, Optional 
Format As Integer, Optional Color As Integer)


Format can be Image.Standard, or Image.Premultiplied, the latest meaning than 
the color components are premultiplied by the alpha component.

Color is a color that will be used to initialize the image contents. 
Otherwise, the contents is undefined.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datepicker bug

2009-01-20 Thread Benoit Minisini
On lundi 19 janvier 2009, Diego Fernández wrote:
 Well just before sending my last mail, i was trying (really hard), to
 debug it myself, at least i think i was trying to.

 Ive come to realise it is not a datepocker bug, is more a gtk issue,
 when i create a new project and use only gb.qt component, the datepicker
 displays ok, but when i choose gb.gkt or gb.gui, the datepicker shows
 the incorrect behavior, and today i saw this in the console section with
 desktop effects on:



 (otravez:9991): Gtk-CRITICAL **: gtk_window_resize: assertion `height 
 0' failed

 (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed

 (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed

 (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed

 (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed

 (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed


 --
 WithOut desktop effects:



 (otravez:10007): Gtk-CRITICAL **: gtk_window_resize: assertion `height 
 0' failed

 (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed

 (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion
 `GTK_IS_WIDGET (widget)' failed

 (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion
 `GDK_IS_SCREEN (screen)' failed


 Do this concern to Phillipe Serafin or it is a concern of somebody else?


 Thanks


If it is a gtk problem, then it is my job!

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Thanks!! :-)

2009-01-20 Thread Benoit Minisini
On lundi 19 janvier 2009, gam...@organet.com wrote:
 Hi Benoit!

 Many thanks for the configurable shortcuts! ...so cool! :-)

 Two questions:
 1) Is there a way to integrate the possibility defining his own commands in
 the menubar (and also access them per shortcut)? Example:
 I've to migrate many server apps form Perl to Gambas. Testing is only
 possible on the server machine itself. If I had a menu with configurable
 commands, I could write a shell or Gambas script to copy the binary to the
 server I think there are lots of scenarios where user defined commands
 could make developer life a lot easier.

No, but in your specific case, you can define a shell command to be run each 
time you make an executable. You define this command in the make executable 
dialog.


 2) What do I have to do, when I want to translate some of the english
 texts, descriptions etc. in the IDE to my native language (German) and make
 it public??

 Greetz
 Stevie


The IDE is a Gambas project like any other Gambas project. So you use the IDE 
to translate the IDE.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MovieBox as Picture in tableview?

2009-01-20 Thread Benoit Minisini
On lundi 19 janvier 2009, Ron wrote:
 Is it possible to use a MovieBox image instead of a normal Picture in a
 tableview on Gambas 2.10?

 Now I use something like

 tbvDevices[iCount, 1].Picture = Picture[path to image]

 But want to display animated gifs too...

 Anyone knows?

 Regards,
 Ron_2nd


This is not possible. You must have one picture for each movie frame, and 
change the displayed picture from a timer event.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread Benoit Minisini
On dimanche 18 janvier 2009, birchy wrote:
 Benoit Minisini wrote:
  Can you show us the code in Python? Maybe it will help me to find
  something
  that could be enhanced in Gambas if Python can do better? :-)

 Ok, i think the bottleneck is related to the function call overhead:

 PYTHON: wrote:
  import time
 
  t = time.time()
  for i in range(99):
  s = QWERTYUIOP.partition(WE)[2].partition(IO)[0]
  print time.time() - t

 GAMBAS: wrote:
  PUBLIC SUB Main()
DIM i AS Integer, t AS Float, s AS String
 
t = Timer
FOR i = 0 TO 99
  s = Scan(QWERTYUIOP, *WE*IO*)[1]
NEXT
PRINT Timer - t
  END

 Both of these run significantly faster when put in-line but Python is still
 ~33% faster. Perhaps you could add a new string function to achieve this as
 it is VERY useful, yet rarely (if ever) seen in other languages?

For sure, Scan() is far slower than this partition() built-in function, as 
partition only searches for one string and returns what was found before, the 
searched string, and what was found after.

As I never used Python, I don't really realized how much an equivalent of 
partition() is needed.

But if Scan() is slower than partition(), it does not mean necessarily that 
Python is faster than Gambas globally. For example, just iterating a void 
loop 0..99 takes 0,1s in Python, and 0,029s in Gambas 3.

If you want, I could make a partition() function temporarily just to compare 
exactly the same thing between Gambas and Python. Do you?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread Benoit Minisini
On dimanche 18 janvier 2009, Gareth Bult wrote:
 Conversely, people use GTK bindings in Python .. Why ?!
 I understand that once upon a time it's what there was .. but not any more!
 Development time for Python or C based GUI applications is 50x more than
 the Gambas equivalent (in this instance I don't think the 50 is an
 exaggeration) and it all comes down (really) to the IDE. (IMHO)


I don't know if there are some people that have a global view of Gambas. So I 
will say that:

- The primary goals of Gambas were simplicity (in the bindings especially), 
quick GUI designing and coding.

- Speed was not the goal, but the interpreter in Gambas 3 is optimized (far 
less in Gambas 2). But its design is old (I wanted a working one before a 
fast one), and now I have ideas to redesign it so that the bytecode is 
interpreted faster, maybe twice. But: I have no time. And Gambas usually 
spend more CPU time in system libraries and native classes than during the 
bytecode dispatching. So what you would win will not very visible!

- The bindings, well, are not bindings: toolkit and libraries API are often 
hidden. You can (almost) write a program for GTK+ and switch to QT3, or the 
contrary. You can write a program completely independant of the database 
backend. So the guy who wants PostgreSQL only can use your program even if 
you developed it with MySQL. When the gb.image and gb.cairo components will 
be done in Gambas 3, you will be able to display a page of a PDF file with 
vector and image drawn on, all being displayed on an OpenGL rotating cube. I 
don't know wich other Linux languages will allow that (mixing Cairo, OpenGL, 
QT transparently...)

- When I have time, I will merge the database manager in the IDE, and add 
features so that the IDE have more support for Web applications (ASP-like 
pages integrated with syntax highlighting, maybe support for creating Web 
Forms...). That was always the goal.

- The object model of Gambas is specific. It actually allows things that you 
cannot do in Java/.Net... and many other object languages, because compiled 
bytecode files are entirely linked at runtime. Then you can do things like 
extending a native class (the Application class has more methods, depending 
on the components you use), overriding it and change its behaviour (you can 
redefine the TextArea class and add it an automatic completion feature based 
on a dictionnary, like a cellphone does when you type SMS), use classes from 
a component that is not necessarily checked in the IDE (The Settings class 
can take the geometry of a Window and put it in the settings file without 
requesting a gui component). This feature is used in many, many places in the 
IDE and in components.

In other words, maybe it is silly to say, but I made Gambas to have a language 
that have features not found in other languages, that allowed me to program 
Gambas. :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread Benoit Minisini
On dimanche 18 janvier 2009, Jaap Cramer wrote:
 I timed the function with this line  s = Scan(QWERTYUIOP, *WE*IO*)[1]
 to be 2.94800719 seconds But there is a faster way:

 s = Mid(QWERTYUIOP, InStr(QWERTYUIOP, WE), InStr(QWERTYUIOP, IO))
 only takes 0.52580698 sec!

 Maybe the Scan function is not that optimized? :)

 Jaap


Not in Gambas 2 anyway. It was in Gambas 3, but as this function is more 
powerful than just looking for one or two strings into another one, it can 
only be slower.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread Benoit Minisini
On dimanche 18 janvier 2009, Jaap Cramer wrote:
 I timed the function with this line  s = Scan(QWERTYUIOP, *WE*IO*)[1]
 to be 2.94800719 seconds But there is a faster way:

 s = Mid(QWERTYUIOP, InStr(QWERTYUIOP, WE), InStr(QWERTYUIOP, IO))
 only takes 0.52580698 sec!

 Maybe the Scan function is not that optimized? :)

 Jaap


And I'm not sure your code does the right thing. :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread Benoit Minisini
On dimanche 18 janvier 2009, nando wrote:
 After reading all the comments about speed, optimization, etc,
 do not forget that an optimizing compiler will absolutely
 poduce faster execution time:
 Since this code reads no data, saves no data and doesn't print any
 calculated data, then why even perform GetSubstring when nobody
 cares about what the result is. An optimizing C compiler most likely
 would compile to only execute the
 t= Timer  and
 Print Timer - t
 shich produces lightning fast times.
 Why? Nobody will ever see the data computations performed inside the loop.
 I recently did see optimized code disassembled for a small C program and
 since nothing was printed nor saved, there was no code to run and the only
 execution was RETURN.
 Be careful testing code and making comparisons amongst languages because
 the tests do not perform and prove unless the test is relatively meaningful
 and results summed over a period of time testing.
 Don't forget there are many ways to program solving a problem and
 there are good and bad ways, easy and hard, fast and slow, efficient and
 not. Spending a whole wack of time to prove saving 2 seconds may or may not
 be futile and can or can not prove anything or nothing.
 I use Gambas 1.17 for a large real-time 200 user mulit-connected program.
 It performs well.
 My appreciation to Benoit.
 -Fernando


Don't worry, the Gambas compiler optimizes almost nothing (this is done by the 
interpreter), and so never removes code. :-)

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Minor bug with READ WRITE commands?

2009-01-18 Thread Benoit Minisini
On vendredi 16 janvier 2009, nando wrote:
 Benoit,

 Question regarding the line:
   WRITE #pResult + (ii * 8), .x

 does WRITE see it casted as variant or int ?
 -Fernando


You exactly got the point. :-)

As fResult is an Object[] array, fResult[ii].x is a Variant.

Why? Because, in Gambas, the datatype of an operator or a function is never 
more precise than the datatype of the arguments, unless the operator or 
function always returns the same datatype. Read that sentence at least twice.

So, as fResult is Object[], then fResult[ii] is Object, and fResult[ii].x is 
always a Variant, as the interpreter cannot know that fResult[ii] is always a 
Class1.

As READ and WRITE receive a Variant, they read/write a byte before the value 
in memory. 

So what is written at the pointer is not two bytes H64+H00 (the 100 value) 
but three bytes H04+H64+H00 (H04 meaning Integer).

As the memory address is computed at each loop, the third byte is replaced by 
the first byte of the next write. The last written byte is outside of the 
array. It does not crash because memory allocation are often rounded by the C 
library.

When reading, what happens? The GetAStruct C function receives:

H04+H64+ H04+HC8+ H04+H64 +...+ H04+HC8+H00

And modifies it:

H0E+H64+ H05+HC8+ ...

Then READ wants to read a Variant, and so interprets the first byte, H0E, as 
a datatype that means...a Class, something that is cannot understand, and so 
you get an error message. But in other situations, you can crash the 
interpreter, because READ can write in memory more than expected!

What is the solution? You have to tell Gambas which is the real datatype to 
read and write.

The first solutiion is what you did: using a local variable with the accurate 
datatype.

The second solution is not having Object as intermediate expression datatype. 
Instead of:

  WITH fResult[ii]

Do that:

  DIM hClass AS Class1

  hClass = fResult[ii]
  WITH hClass

Then the interpreter will know at runtime that hClass is a Class1, and so that 
hClass.x is always an integer.

So, all that is not really a bug, but I admit it is a bit weird, and not 
beginner-friendly.

In Gambas 3, I'm currently thinking about a better, or at least clearer 
syntax. It will be a mix of:

- True memory streams, i.e. a class that inherits Stream and that points at a 
memory emplacement.

- Classic Basic memory access function. PEEK, POKE ? :-) And/Or MkInt$(), 
MkLong$()...

- Explicitely specifying the datatype in READ and/or WRITE, or having 
ReadInteger(), ReadFloat(), WriteInteger()... methods in the Stream class, or 
as subroutines.

People, tell me what you think about that. I'm going to bed now.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] high cpu usage with UDP server/client

2009-01-17 Thread Benoit Minisini
On dimanche 18 janvier 2009, Joshua Higgins wrote:
 I am using the version packaged in Ubuntu Intrepid (2.7)


The bug was fixed in the 2.10!

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Have I been kicked off the list?

2009-01-17 Thread Benoit Minisini
On dimanche 18 janvier 2009, Kris Douglas wrote:
 2009/1/17 Kari Laine klai...@gmail.com:
  Hi Werner,
 
  It's January 17 today - so you seem be subscribed :-)
 
 
  kari
 
  On Sat, Jan 17, 2009 at 5:46 PM, Werner wd...@netfront.net wrote:
  The last message I received was just before Christmas.
 
  Regards
  Werner

 Hello, could be that the mail isn't coming through to him. I recommend
 you check your mail filters, Werner, just to make sure the gambas
 mailing list isn't being sent to spam/ dropped.

Sometimes you don't receive mails immediately because I think sourceforge mail 
servers are overbooked, but two weeks is a lot. Beware that the sourceforge 
mailman automatically cancels a subscription if he cannot send it mails too 
many times.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datepicker bug

2009-01-17 Thread Benoit Minisini
On samedi 17 janvier 2009, Diego Fernández wrote:
 Hi Benoit,

 have you look/solve the datepicker bug yet? just asking, dont mean to
 pressure you..

 Thanks


Mmm, no. I didn't write the code, so maybe Philippe Sérafin, who made the 
control, can do something?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas is slower than Python??

2009-01-17 Thread Benoit Minisini
 On samedi 17 janvier 2009, birchy wrote:
 
  PUBLIC SUB Main()
DIM i AS Integer, t AS Float, s AS String
 
t = Timer
FOR i = 0 TO 99
  s = GetSubstring(QWERTYUIOP, WE, IO)
NEXT
PRINT Timer - t
  END
 
  PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String,
  endstring AS String) AS String
RETURN Split(Split(doc, startstring)[2], endstring)[0]
  END

The previous code takes 4,31s on my PC with Gambas 2, and 3,01s with Gambas 3.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New bugs in OpenGl

2009-01-15 Thread Benoit Minisini
On jeudi 15 janvier 2009, Jaap Cramer wrote:
 Hi

 I discovered a new bug in the OpenGl module.
 I use gl.Color4f(0, 1, 0, iTriangleAlpha) to color a object. The variable
 iTriangleAlpha does not change the opacity but the size. (see attachment,
 use slider)

I see nothing wrong in the source code of this function. The four arguments 
are directly sent to the glColor4d OpenGL API.


 Is openGl still being worked on?

Only Laurent Carlier can answer you.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now

2009-01-15 Thread Benoit Minisini
On jeudi 15 janvier 2009, David Villalobos Cambronero wrote:
 Sure, here it is:

 mysql: 0x7b3680: CALL `sp_Procedimientos`
 mysql: 0x7b3680: CALL `sp_Tablas`


 And it fails on the second CALL, showing the messasage I sent you.

 Atacched the code form my form.


 Reagards


 --
 David


Does the 'CALL' MySQL instruction need to be handled in a different way than 
all other requests? Apparently it does!

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Spacing = True Question

2009-01-15 Thread Benoit Minisini
On vendredi 16 janvier 2009, richard terry wrote:
 Wonder if someone could clarify this for me.

 Previously spacing was (and the documention in the IDE still says it is)
 the number of pixels separating child controls. If this is so, how does one
 give this a value?

 Personally I think using spacing like this is a backwards step for gambas.
 This little property was one of the wonderful things about the
 gui-designer, one had absolute control over the gaps between things, which
 when you are designing a gui with lots of objects, every pixel becomes
 critical.

 Now all I can see to do is switch spacing off, and use padding to set the
 distance betwen 2 controls you don't want to touch - and that at a minimum
 will be 2 pixel widths, as padding pads all around an object.

 Regards

 Richard


This change is a way to prevent VB-like GUI with too small or random spacing 
between widgets, *and* to make the spacing proportional to the font size.

Please provide a concrete example of the usefullness of arbitrary spacing, 
otherwise the discussion will remain theoretical.

If you run out of space because you have too many widgets on the screen, maybe 
this is a sign that your GUI should be redesigned?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Minor bug with READ WRITE commands?

2009-01-15 Thread Benoit Minisini
On jeudi 15 janvier 2009, Jussi Lahtinen wrote:
 Hi!

 Here is my test code (first with errors) for pass array of objects
 byref to external function:

 PUBLIC SUB Button4_Click()
 DIM ii AS Integer
 DIM pResult AS Pointer
 DIM fResult AS NEW Object[]
 DIM aa AS Class1

 FOR ii = 0 TO 9
 aa = NEW Class1
 aa.x = 100
 aa.y = 200
 fResult.Add(aa)
 NEXT

 pResult = Alloc(8, 10)

 FOR ii = 0 TO 9
 WITH fResult[ii]
 WRITE #pResult + (ii * 8), .x
 WRITE #pResult + ((ii * 8) + 4), .y
 END WITH
 NEXT

 GetAStruct(pResult)

 FOR ii = 0 TO 9
 WITH fResult[ii]
 READ #pResult + (ii * 8), .x
 READ #pResult + ((ii * 8) + 4), .y
 END WITH
 NEXT

 Free(pResult)

 FOR ii = 0 TO 9
 PRINT fResult[ii].x fResult[ii].y
 NEXT '

 END


 Line: READ #pResult + (ii * 8), .x
 Gives error; Type mismatch: wanted Integer, got String instead. ??

 And line: WRITE #pResult + (ii * 8), .x
 Writes rubbish into memory. No error messages.

 If I change code this way, it works perfectly:

 PUBLIC SUB Button4_Click()
 DIM ii AS Integer
 DIM pResult AS Pointer
 DIM fResult AS NEW Object[]
 DIM aa AS Class1
 DIM kk AS Integer

 FOR ii = 0 TO 9
 aa = NEW Class1
 aa.x = 100
 aa.y = 200
 fResult.Add(aa)
 NEXT


 pResult = Alloc(8, 10)

 FOR ii = 0 TO 9
 WITH fResult[ii]
 kk = .x
 WRITE #pResult + (ii * 8), kk
 kk = .y
 WRITE #pResult + ((ii * 8) + 4), kk
 END WITH
 NEXT

 GetAStruct(pResult)

 FOR ii = 0 TO 9
 WITH fResult[ii]
 READ #pResult + (ii * 8), kk
 .x = kk
 READ #pResult + ((ii * 8) + 4), kk
 .y = kk
 END WITH
 NEXT

 Free(pResult)

 FOR ii = 0 TO 9
 PRINT fResult[ii].x fResult[ii].y
 NEXT '

 END


 Strange thing is that the whole code has no string on it.
 Class1:
 PUBLIC x AS Integer
 PUBLIC y AS Integer


 So, why .x is string ?
 Is there better way to do this (@ Gambas2.10.2)?


 Jussi


Can you send me a source archive of that project?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Benoit Minisini
On mardi 13 janvier 2009, dave L wrote:
 Hi Charles,

 Yes i've had a look at the code that is in the database example.

 by the time i went to be i had in my sample app created a link to the DB
 from cut i cout  pasted into my app from the sample DB.

 I suppose you have modules you call in that you pass parameters to and it
 passes back the connection and then other routines you call to fill you
 form controls with data as shown in the sample refresh form (or whatever
 it's called).

 anyways i will have another look at how the table connection is made and
 recordsets are done. It's the lack of these properties for those actions i
 was surprised about initially.

 ps thanks for your reply.

 dave.


Do you really look at the Database example? 

The standard database-bound controls of Gambas are located in the gb.db.form 
component.

They are somewhat sparse, but here is a quick description:

1) A DataSource container. You specifiy your request there (usually a table), 
and all data controls inserted in the container will use it.

2) If you put a DataSource A inside another DataSource B, then the DataSource 
A is filtered by the primary key of the DataSource B.

3) You have a DataControl control, that allows to edit a field by using a 
control that depends on the field datatype.

4) You have a DataCombo control, that is a ComboBox that displays an integer 
field by using it as a primary key on another tabl.

5) You have a DataView, that allows to show the contents of a DataSource in a 
GridView.

6) You have a DataBrowser, that allows to browse its parent DataSource by 
using a DataView and some buttons.

7) There is a DataComboMulti too in Gambas 3, but I didn't write nor tested 
it.

8) Theses controls are database neutral. They work with mysql, postgresql, 
sqlite, firebird...

9) The DataSource is intelligent. It only request the records from the 
database by small packets. This way, you can put Internet between your 
application and the database, and things are perfectly usuable.

Some caveats:

10) All table must have a primary key.

11) All DataSource use the current opened connection. Having some sort 
of Connection property to have two DataSource controls on different 
connection is planned.

12) I think that Gareth could have made his control database neutral. But it 
is his code, so he is the boss.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Benoit Minisini
On mercredi 14 janvier 2009, Benoit Minisini wrote:
 On mardi 13 janvier 2009, dave L wrote:
  Hi Charles,
 
  Yes i've had a look at the code that is in the database example.
 
  by the time i went to be i had in my sample app created a link to the DB
  from cut i cout  pasted into my app from the sample DB.
 
  I suppose you have modules you call in that you pass parameters to and it
  passes back the connection and then other routines you call to fill you
  form controls with data as shown in the sample refresh form (or whatever
  it's called).
 
  anyways i will have another look at how the table connection is made and
  recordsets are done. It's the lack of these properties for those actions
  i was surprised about initially.
 
  ps thanks for your reply.
 
  dave.

 Do you really look at the Database example?

 The standard database-bound controls of Gambas are located in the
 gb.db.form component.

 They are somewhat sparse, but here is a quick description:

 1) A DataSource container. You specifiy your request there (usually a
 table), and all data controls inserted in the container will use it.

 2) If you put a DataSource A inside another DataSource B, then the
 DataSource A is filtered by the primary key of the DataSource B.

 3) You have a DataControl control, that allows to edit a field by using a
 control that depends on the field datatype.

 4) You have a DataCombo control, that is a ComboBox that displays an
 integer field by using it as a primary key on another tabl.

 5) You have a DataView, that allows to show the contents of a DataSource in
 a GridView.

 6) You have a DataBrowser, that allows to browse its parent DataSource by
 using a DataView and some buttons.

 7) There is a DataComboMulti too in Gambas 3, but I didn't write nor tested
 it.

 8) Theses controls are database neutral. They work with mysql, postgresql,
 sqlite, firebird...

 9) The DataSource is intelligent. It only request the records from the
 database by small packets. This way, you can put Internet between your
 application and the database, and things are perfectly usuable.

 Some caveats:

 10) All table must have a primary key.

 11) All DataSource use the current opened connection. Having some sort
 of Connection property to have two DataSource controls on different
 connection is planned.

 12) I think that Gareth could have made his control database neutral. But
 it is his code, so he is the boss.

 Regards,

Mmm. Sorry for the language mistakes... :-(

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datepicker bug

2009-01-14 Thread Benoit Minisini
On mardi 13 janvier 2009, Diego Fernández wrote:
 Ehh,

 Well, just finished compiling and testing, and, i have to report that in
 old projects i just hit the update all forms and everything works as
 expected, but if i create a new project and insert a datepicker when i
 trying to run it, it doesnt run and shows a signal 11 error.

 I attach a debug file follwing the instructions in section reporting a
 problem on gambas.sf.net

 Hope that helps.

 Thanks.


It should be fixed in revision #1800.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datepicker bug

2009-01-14 Thread Benoit Minisini
On mercredi 14 janvier 2009, Diego Fernández wrote:
 Hi,

 the signal 11 segmentation is no more, BUT, now when creating a new
 project, then i insert a datepicker, when running it and try to pick a
 date, the dialog appears in the upper left corner of the screen no
 matter where the form is, i am ataching a screenshot so you can check.

 tell me if i am doing something wrong.

 thanks.


Do you have the same behaviour without compiz?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Benoit Minisini
On mercredi 14 janvier 2009, Gareth Bult wrote:
 Ok,

 This function would be required regardless of the underlying DB .. so
 what't the PG equivalent ?

 Gareth.



If I remember, not all databases have this feature. If people can tell me how 
to do the same thing in postgresql, sqlite, odbc and firebird, or at least in 
postgresql  sqlite, I will add it to the gb.db component.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] qt going lgpl

2009-01-14 Thread Benoit Minisini
On mercredi 14 janvier 2009, Frank Cox wrote:
 It appears that qt is to be licensed as lgpl:

 http://www.qtsoftware.com/about/licensing/frequently-asked-questions

 Does this meant that commercial closed-source applications can now be
 developed with Gambas using QT?  (I think you could do that using GTK
 before now.)

I don't think so, as the licence is changed only from the QT 4.5 version 
AFAIK. 

The QT4 component in the /trunk is experimental and has many problems: color 
management has changed in QT4, so colors are incorrect ; some things do not 
display correctly yet ; and on my NVIDIA, QT4 is far slower than QT3, even if 
double-buffering is disabled. For example, moving the side panels in the IDE 
becomes slow as hell. By disabling double-buffering, I noticed a lot of 
useless drawing made by QT 4.4. Maybe these things will be better with QT 
4.5 ? The latest beta driver of NVIDIA fixes some problems, but introduce new 
bugs according to their forum, and I'm not sure that it's NVIDIA fault there 
as the IDE keeps being slow (more than with GTK+ if you can imagine) even if 
XRENDER is disabled.

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now

2009-01-14 Thread Benoit Minisini
On lundi 12 janvier 2009, David Villalobos Cambronero wrote:
 Not sure... but what I know for sure is that is not in my Gambas part.
 Attached is an example using only gb.db

  I try to take a look in the C part, but I couldn't find anything.

 Attached is the entire script for my database, and an example.

 I you connect directly to mysql and execute the last tow statements they
 work, so I think it is a bug in the C part.


 MySQL says:


 If you get Commands out of sync; you can't run this command now in your
 client code, you are calling client functions in the wrong order. This can
 happen, for example, if you are using mysql_use_result() and try to execute
 a new query before you have called mysql_free_result(). It can also happen
 if you try to execute two queries that return data without calling
 mysql_use_result() or mysql_store_result() in between. Best Regards


 --
 David


Can you make the dump of all mysql requests sent by using DB.Debug = TRUE ?

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Benoit Minisini
On jeudi 15 janvier 2009, Gareth Bult wrote:
 Mmm,

 I wouldn't know how to do what GridEditor does without autoinc fields and
 last_id .. if other DB's make this difficult or don't provide the
 functionality, that sort of reinforces my suggestion that one should choose
 MySQL.

 Just turning it around for a second, is there any reason why one should
 *not* use MySQL?

 As a 10yr+ MySQL user, my views may be biased, however to the best of my
 knowledge; a. MySQL is faster than the competition, certainly the likes of
 Postgres (by a lot!) b. MySQL does not crash - so it's reliability is not
 question
 c. Current versions support all the stuff (triggers, stored proc's etc)
 that people used to insist was their excuse for Postgres d. MySQL does
 loads of back end replication stuff other DB's don't do e. MySQL runs on
 more Platforms than any other DB
 f. It has bindings for every language I can think of, and then some
 g. It has loads of nice GUI tools and designers (commercial and free)
 .. etc .. etc .. etc ...

 yes I do have the T-shirt, but no they're not paying me.

 Bottom line, I have no reason why GridEditor should not support other DB's
 , just so long as they can actually do the job .. so as soon as people with
 the relevant expertise provide Gambas with autoinc / lastid support, I'll
 see if I can use it in place of a raw SELECT statement .. how's that ?  
 :-)

 Gareth.


1) How can you know that we should use MySQL if you have used MySQL only?

2) The MySQL C API is, hem... strange. Let be politically correct there.

3) Why did they change their timestamp format suddenly?

4) There is no difference between a BLOB and a large TEXT field.

5) MySQL only get features recently that PostgreSQL had for years.

6) David Villalobos Cambronero got an error message from mysql. I have no idea 
at all where it comes from. Maybe it is gb.db.mysql fault there, but it makes 
me angry. :-)

Not that PostgreSQL is perfect, far from that. The only clean database API I 
know is the SQLite one. The funny thing in Gambas is that the gb.db.sqlite 
component (sorry Niggel!) has used a crappy C++ layer on top! 

And I don't talk about sticking the word standard with SQL...

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datepicker bug

2009-01-13 Thread Benoit Minisini
On mardi 13 janvier 2009, Diego Fernández wrote:
 hi ppl,

 i think i have found a bug,

 System:  Ubuntu8.10
 Gambas version 3
 revision 1794
 compilation made with a downgrade to libtool 1.5

 In old projects when trying to update all forms, i get a window with
 this error,

 It is not posible to safe file

 path_to_form_here

 Void key (FForm.SaveOne.771)


 Tryng to fix it i realise its a problem with a frame component and a
 datepicker.

 You can recreate the problem like this, new project, insert a frame and
 then insert a datepicker inside the frame and try to run the app you get
 the same error.

 And also too, when you just insert a datepicker into a form, the form
 gets the same error but instead of 771 it says 730

 please confirm or let me know what i am doing wrong.

 Thanks

 PD: Atach two shots of the error i get when trying to save or update forms,
 and a shot of what happen queh you insert a datepicker to a form.

I have just fixed the DatePicker bug in revision #1799. Beware that you will 
have visual glitches when inserting a compound control like FileView, 
DirView, FileChooser... in the IDE. Just save the form and reload it to have 
the expected appearance of the control.

Regards,

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error creating install package with Autotools

2009-01-13 Thread Benoit Minisini
On mardi 13 janvier 2009, Achmad Arifin wrote:
 Help me. I create gambas program with ubuntu hardy and I want to run it on
 zenwalk, when I started to build package an error shown:
 ---
 Creating package for Autotools.
 Making build directory.
 Creating package...

 aclocal
 autoconf
 automake -a
 configure.ac:4: installing `./install-sh'
 configure.ac:4: installing `./missing'
 Makefile.am: installing `./INSTALL'
 ./configure
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... no
 checking for mawk... mawk
 checking whether make sets $(MAKE)... yes
 configure: error: Cannot find .project file for coba4 !
 make dist
 make: *** No rule to make target `dist'.  Stop.

 The package build has failed.
 Package.MakeAutotoolsPackage.1048: Out of bounds
 
 I don't understand with this error. Does gambas cannot find .project file,
 because it is a hidden file?



Please tell the version of Gambas you are using!

-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to read keys from a TreeView

2009-01-12 Thread Benoit Minisini
On lundi 12 janvier 2009, Rolf-Werner Eilert wrote:
 Proceeding to convert a Gambas1 app to Gambas2, I found that reading key
 values or stepping through the values is different now.

 The TreeView shows names of persons sorted under groups/classes/filters
 sorted under years sorted under a root header, in brief:

 Root1
   2004
   2005
   2006
   Group1
   Group2 -- Cursor
   John
   Benoit
   Michael
   Rolf
   Group3
   2007
   2008
 Root2

 What I want is when the cursor is on Group2 and I call my function, it
 expands and reads all keys of the names within this group.

 This is the code in Gambas1:

   baum.Current.Expanded = TRUE

   namenKeys.Clear

   FOR i = 1 TO baum.Current.Children
 baum.Item.MoveBelow
 IF Left$(baum.Item.Key, 1) = # THEN
   namenKeys.Add(baum.Item.Key)
 ELSE
   BREAK
 END IF
   NEXT

 baum is the TreeView, namenKeys is an array that should return the
 keys which were found. The idea was to read the keys either up to the
 number of children or until the next key doesn't have a #.

 This doesn't run in Gambas2 this way, but I didn't find a way to make it
 run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an
 error, however), and I tried any possible combination of using
 MoveAfter() with Item and Current, but to no avail.

 So, can anybody help here?

 Thanks so much!

 Rolf


MoveBelow() is a method of TreeView in Gambas 2, and moves the internal cursor 
one item below. (In Gambas 1, this method did not work in all cases).

But as you want the child items of a node, you must not use MoveBelow(). It 
moves one item below, whether it is a child or not of the initial parent 
item. 

So if one of the child has children too, you routine won't work.

You must use MoveNext() instead:

  baum.Current.Expanded = TRUE

  namenKeys.Clear

  ' Move the internal cursor to the current item
  baum.MoveCurrent()
  ' Then move to the first child of the current item
  baum.MoveChild()

  ' While the internal cursor is valid, i.e. while there is
  ' a child to look at.
  WHILE baum.Available

IF Left$(baum.Item.Key, 1) = # THEN
  namenKeys.Add(baum.Item.Key)
ELSE
  BREAK
END IF

' Move to the next sibling item, i.e. the next item having 
' the same parent.
baum.MoveNext()

  WEND

See the documentation of the methods in the wiki to know what they are doing 
exactly.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] local directorie structure in Source Archive?

2009-01-12 Thread Benoit Minisini
On lundi 12 janvier 2009, wig wrote:
 In an open project: Make installation package;

  Cannot make executable.
  gba: ERROR: Cannot create temporary archive file:
 /home/wig/Upload/facs/executables/facs.gambas

 Indeed this directory does not exist.  Not on this machine.  This is a
 freshly installed Mandriva 2009, freshly installed Gambas2.

 I only downloaded the Source Archive made on another machine (Gambas
 2.6).

 Does such a Source Archive contain personal information as local
 directories?

 I cannot see/reach it via the IDE (project, Properties)


Yes. When the IDE makes an executable, it uses the last path memorized in 
the make executable dialog. So you should use make an executable and 
specify a directory that exists on the new machine.

I admit that the packager should be more clever, and uses a location that 
always exist, as it makes an executable only for making the package. But at 
the moment the IDE makes no distinction between an executable that must be 
put in a well-defined place, and an executable that is just temporary.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Save as ?not working

2009-01-12 Thread Benoit Minisini
On dimanche 11 janvier 2009, richard terry wrote:
 Tried to save the project as another name  nowhere to type in the new name
 (build 75)


Save as here means that the project is copied in another place, but its name 
does not change.

But there should be no problem to be able to change the name too.

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Two minor bugs

2009-01-12 Thread Benoit Minisini
On jeudi 8 janvier 2009, Rolf-Werner Eilert wrote:
 Hi everyone!

 When converting one of my apps from Gambas1 to Gambas2, I found 2 minor
 items:

 1. The status of Tool Box Collection is not saved and always starts as
 switched off when starting the Gambas2 IDE. But maybe this is wanted?

I don't know if I wanted that. Its status is just not saved, so it starts 
hidden.


 2. The last (rightmost) column of a TableView is stretched to the
 ultimate width of the tableview and ignores if a Width value is given
 for it.

 Well, it just looks sort of ugly, but I found it worth mentioning anyway.

The width of the last column is ignored only if it is smaller than the 
GridView/TableView contents. I don't find that ugly. On the contrary, I did 
that because I found ugly when there is space between the last column and the 
right border of the GridView.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Alignment or Gridview problem?

2009-01-12 Thread Benoit Minisini
On lundi 12 janvier 2009, Dominique SIMONART wrote:
 Benoit Minisini a écrit :
  On jeudi 8 janvier 2009, Dominique SIMONART wrote:
  Hi everybody,
 
  Happy new year, ...
 
  Here are two little screen captures to show my problem.
  In the Bad.png, look at the width of the Gridview, that ends with +64
  In the Good.png, look the same line that ends with +65. This is the
  unique difference,
  but what a different effect!
  In fact, I don't need the extra width at all. If you change Align.Center
  by Align.Left, all is OK with +2
  (it doesn't work with Align.Right however)
 
  In case you want to test, I add the whole project below
  (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8)
 
  With the last 2.x version, putting 64 or 65 changes nothing except the
  one pixel difference. In both cases you get the first screenshot, which
  what is expected.
 
  Regards,

 Sorry, but the TestThree.png was wrong. Here is the good one!

 Thanks Benoit,

 I think there is a problem with the *last* column of a gridview, but may
 be I missed something instead.
 1) In the TestOne, the code is what I want to get (the usage of 'k' is
 for the test only!), but the display is not what I expected (nothing
 visible in the las column)
 2) If I remove the Alignment instruction (TestTwo), I get what I expect,
 but not what I wished!
 3) As a workaround (TestThree), I add a column to my gridview, I mask it
 with the width limitation (role of k=1), and I restore the alignment.

 As you can see, the problem is just with the last column with centered text
 Is the first case works as expected?

Please send me your project. It will be simpler for me to deal with the real 
thing instead of reproducing it from what you say.

Regards,


-- 
Benoit Minisini

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas SVN download/compile

2009-01-11 Thread Benoit Minisini
On dimanche 11 janvier 2009, Jason Hackney wrote:
 On the off chance that someone other than myself would like to automate
 downloading the source from SVN and compiling, I've attached a bash script
 that does it for Ubuntu 8.10. I have had to do it a number of times in the
 past couple days so I figured I'd put together a relatively crude script.

 Some notes:

 -) It's based heavily on this page:
 http://gambasdoc.org/help/install/ubuntu?show by Gareth Bult.

 -) I am doing this on an ASUS Eee PC running the latest eeebuntu (standard
 edition).

 -) The script automatically downloads (and downgrades) a correct libtool
 package for 32-bit systems.

 -) I did't get too enchanted with trapping errors and such (I just needed
 something that worked)

 -) You will have to edit the HOMEDIR variable to reflect your home
 directory.

 -) Finally, make sure you run the script as superuser.

 I'm open to suggestions for making it better if anyone finds it
 interesting.

 Cheers,
 Jason

You shouldn't have to be root to run the script. Only the make install must 
be run by root, this way:

# su -c make install

Or on Ubuntu you can use sudo too.

This way, you don't have to specify the HOME dir, just use ~. Or let the 
user specify the directory of the local version of /trunk.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] re turn value from a form

2009-01-10 Thread Benoit Minisini
On mercredi 7 janvier 2009, Doriano Blengino wrote:
 kobolds ha scritto:
  in order to get  return value from a form , I create a variable in the
  form
 
  in ftest
  public retun_value as boolean =false
 
  public sub btnOK_click()
   return_value = true
   me.close
  end
 
  public sub btncancel_click()
return_value = false
me.close
  end
 
  
  from Fmain
  public sub btnTest_click()
   dim m_ftest = new ftest
   m_ftest.showmodal
   if m_ftest.return_value = false then
  ..
   endif
  end
 
  when I run I get error object not found on if m_ftest.return_value =
  false then  . my guess is after the ftest close , the ref memory also
  gone . this shouldn't be happen like this right ?

 You are right - the form (better, the instance of the class) has gone.
 There are three solutions.

 1) Read the documentation. ShowModal() can return a value, which is the
 one passed to FTest.Close().
 It has some limitations (if you close the form using the X button,
 this value will be 0, if I well remember).
 This should be the canonical solution.

 2) Don't know if it works. You could make *two* references to ftest
 (ref1=new ftest; ref2=ref1). When the form closes, there is still a
 reference; don't know what precisely do a form when it closes. On other
 platforms, a Close() simply hides the form, so this method works, but
 with gambas Close() normally destroys the form, so who knows what
 happens? This is a dirty solution.

The Persistent property of a form will tell if the Close() method just hides 
it, or destroys it.

When a form is destroyed, the associated Gambas object is not necessarily 
destroyed (if you have references on it in a variable), but it becomes 
invalid. You can't use it anymore!

But if you use static public variables, you will be able to access them, as if 
the form object is invalid, the class object of the form that holds the 
static variable is usable.

When your form is actually a dialog box, you will use one of them at the same 
time. Your form class is a singleton, i.e. you have only one instance of 
them. So using static variables is perfectly logical.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] change row height in listview

2009-01-10 Thread Benoit Minisini
On vendredi 9 janvier 2009, Fabien Bodard wrote:
 2009/1/8 kobolds kobo...@singnet.com.sg:
  how do I change the row height in listview ?
  I try change the the font . it work but look ugly . any other way ?
 
  I try to set listview1.item.height = 30 , but get error null object .

 Item represent the current internal selected item... You must have
 items, and select it... or use a key

 ListView[mykey].height = 30


Anyway, you can't change the height of a row in a ListView. It is always 
adapted to the height of the contents. You must use a GridView if you need 
something like that.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.net.curl - HttpClient - libcurl specs?

2009-01-10 Thread Benoit Minisini
On vendredi 9 janvier 2009, birchy wrote:
 anyone?

I just added the HttpClient.Encoding property in the revision #1795 of the 
development version, so that you have all you want!

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Vs. Gnome 2.24

2009-01-06 Thread Benoit Minisini
On mardi 6 janvier 2009, Leonardo Miliani wrote:
 I still continue to have the same visual problems using Gambas under
 Gnome 2.24 that I posted some time ago (windows borders that appear even
 if their property is set to false).
 Now, with the last 2.10.2, I have another problem (I don't know if it
 was still present in the previous 2.9): ballon tips in the IDE have been
 started to show a window border, like in the attached screenshot.

This is the same problem I think: windows marked as borderless now have a 
border since Gnome 2.24. I looked in the Gnome changelog, but didn't found 
anything related to this problem.

If you can try the development version, windows have a new property to explain 
the window manager exactly what kind of window you want: Normal, tool window, 
popup window, splash screen... 

Maybe Gnome 2.24 decided to make this property mandatory?

I will investigate this problem as soon as I have time.

Regards,

-- 
Benoit Minisini

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 compilation problem

2009-01-05 Thread Benoit Minisini
On lundi 5 janvier 2009, Jussi Lahtinen wrote:

 BTW maybe README section should link to http://gambasdoc.org/help/install ?


Done!

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Void key on Forms Update - sample crashed form

2009-01-05 Thread Benoit Minisini
On lundi 5 janvier 2009, richard terry wrote:
 On Tue, 6 Jan 2009 08:25:19 am richard terry wrote:
  Benoit,
 
  Had two forms on the update with this error message.
  BTW will read the changelog today, didn't know I had to do this.
 
  Regards
 
  Richard

 There are two forms which fail to load in 1784 (1788 itself compiles but
 gambas won't run at all). The message involves the same backcolor dosn't
 exist in label. Ok.  But how does one fix this. There is no reference at
 all to backcolor in the code (its a dummy form I put in as a filler form to
 be replaced in the future).

 Yes I can easy just remove the label and replace it, but as the other of my
 two forms with a similar problem is quite complex, It would be nice to know
 how to fix it without manually removing and replacing all the labels.

 I attatch the form/class file which as  you can see are essentially empty.

Just wait a little, I will commit a new revision that should fix your 
problems. But beware, you will find work in progress in it!

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Warning! Translation files may be corrupted

2009-01-04 Thread Benoit Minisini
I have just detected that the IDE is randomly corrupting non-ASCII characters 
in the translation files.

The suspect is the msgmerge GNU gettext tool, version 0.17 provided with 
Mandriva 2009. This command is used by the IDE each time it opens a 
translation file, for merging old translations with the new strings to be 
translated. At this time, apparently, UTF-8 characters are sometimes lost and 
replaced by another encoding. Strange...

Please check your version, and keep a copy of your translation files, or you 
will have a bad surprise like me!

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] create gambas component

2009-01-04 Thread Benoit Minisini
On dimanche 4 janvier 2009, kobolds wrote:
 I using opensuse 11.1 (64 bit) . I download gambas from
 http://download.opensuse.org/repositories/home:/gbvalor/

 I using gambas 2.9 .
 I also try update to 2.10 and recompile but still get the same error


As far as I can guess, you didn't define any exported class in your component.

When your project is a component, an hidden .list file is automatically 
generated by the compiler. This file is a list of all exported classes. 

Without any class exported, this file is not generated, and you get an error 
from the IDE instead of just a warning.

The fault is in the IDE that should warn you from the beginning that a 
component without any exported class cannot do anything and so is useless. 

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Warning! Translation files may be corrupted

2009-01-04 Thread Benoit Minisini
On dimanche 4 janvier 2009, Benoit Minisini wrote:
 I have just detected that the IDE is randomly corrupting non-ASCII
 characters in the translation files.

 The suspect is the msgmerge GNU gettext tool, version 0.17 provided with
 Mandriva 2009. This command is used by the IDE each time it opens a
 translation file, for merging old translations with the new strings to be
 translated. At this time, apparently, UTF-8 characters are sometimes lost
 and replaced by another encoding. Strange...

 Please check your version, and keep a copy of your translation files, or
 you will have a bad surprise like me!

 Regards,

Finally msgmerge is not in cause but myself (I apolog... Ouch!).

The fix is in revision #1780.

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Release of Gambas 2.10.2

2009-01-03 Thread Benoit Minisini
Hi,

Some things were broken yet in the 2.10, so I made a new release. Fixed things 
mainly are:
* The HttpClient.Async and FtpClient.Async properties. 
* The Balloon class, that was freezing the GUI. 
* The XSLT.Transfrom() method.

Here is the full ChangeLog:

---

[GB.DB]
* BUG: Correctly check that table name are not void in Create(), Find(),
  Edit() and Delete() methods.

[GB.NET.CURL]
* BUG: HttpClient and FtpClient Async property are now correctly
  initialized to TRUE.

[GB.QT]
* BUG: Showing balloons does not freeze the GUI in some case anymore.
* BUG: Setting the Menu.Shortcut property to NULL now correctly removes
  the shortcut.

[GB.QT.EXT]
* BUG: Editor.Print() method now can deal with strings having null
  character inside.

[GB.XML.XSLT]
* BUG: XSLT.Transform() now works correctly again.

---

Happy new year 2009 with Gambas!

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 USB detect !!??

2009-01-02 Thread Benoit Minisini
On vendredi 2 janvier 2009, Biggy UAC wrote:
 Happy new year !

 in my application i want to detect usb flash drive when pluged/unpluged and
 display in a textbox usb drive letter.

 how to detect usb drive stick plug/unplug in gambas2 ??

 thanks .

USB driver letter ??? That does not exist on Linux...

Anyway, this is not possible in Gambas 2 directly.

AFAIK, when you plug a device, the kernel warns the HAL daemon which then 
sends a signal on the DBUS system bus. This signal then can be catched by any 
application that ask for it on the DBUS system bus.

You cannot do that in Gambas without support for DBUS.

Maybe there is another way with a command-line tool, but I don't know.

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Save Project Directory Rename

2009-01-01 Thread Benoit Minisini
On mercredi 31 décembre 2008, richard terry wrote:
 A real bug, and the picture will also give you the sad information of how I
 spent new years eve, alone, programming.

 Anyway, I name my backup directories after the days, Usually eg 31Dec08,
 but probably because I was tired and about to go to bed, typed in
 01/01/2009.

 See the piccie which resulted.

 Happy new year!

 Regards

 Richard

Happy new year too, Richard.

The bug is fixed in revision #1762. Funny that this bug was already fixed in 
the stable version...

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] URL encoding %20

2008-12-31 Thread Benoit Minisini
On mercredi 31 décembre 2008, Doriano Blengino wrote:
 Rob ha scritto:
  On Tuesday 30 December 2008 19:44, werner 007 wrote:
  First when i read your solution i was thinking damn, i was lazy to make
  a good job.
  But then, we are not looking for single chars but for three at once.
 
  I misunderstood you, then.  URL encoding is replacing non-printable
  characters with %xx.  URL DEcoding is replacing %xx with the original
  non-printable character.  What I wrote will be fine for encoding and what
  you wrote in this response will be fine if you rename the function
  to urldecode.

 ...and don't forget that URL's ENcoding and DEcoding deals with other
 characters too (not merely the non-printable ones), for example the %
 itself should be encoded, and probably others (I don't have the specs at
 hands). The correct ENcoding of  %  (blank-percent-blank) is
 %20%25%20, *not* %20%%20...

You have CGI.Encode() and CGI.Decode() in the gb.web component that do what 
you are talking about. You can take the source code if you need.

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] 1755 build failed! (sob sob) gambas3

2008-12-30 Thread Benoit Minisini
On mardi 30 décembre 2008, richard terry wrote:
 /usr/bin/ld: cannot find -lqt-mt
 collect2: ld returned 1 exit status
 make[5]: *** [gb.qt.kde.html.la] Error 1
 make[5]: Leaving directory
 `/home/richard/gambas3-svn/src/trunk/gb.qt.kde/src/html'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory
 `/home/richard/gambas3-svn/src/trunk/gb.qt.kde/src' make[3]: ***
 [all-recursive] Error 1
 make[3]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/richard/gambas3-svn/src/trunk/gb.qt.kde'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/richard/gambas3-svn/src/trunk'
 make: *** [all] Error 2
 == ERROR: Build Failed.
 Aborting...

 Any idea's

 Regards

 Richard


First, do a ./reconf  ./configure -C. Then check that the qt 3 library is 
installed on your system.

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in gb.net curl component

2008-12-30 Thread Benoit Minisini
On mardi 30 décembre 2008, you wrote:
 Dear Benoit:

 This is a really bug, I think it appears in gambas 2.9 and persist in
 gambas 2.10, in gambas 2.7 works fine. It's really simple. And fails also
 in http get example in gambas. When I put this url:

 http.url=
 http://217.76.137.224/multimedia/milenio3/diciembre2008/milenio3_20081228_p
arte2.mp3 

 And code reach the

 http.get

 The application wait eternaly and not continue.

 In gambas 2.7 http.get pass well and start downloading and calling event
 Read.

 I attach my program who parse and url and extract all mp3 and start
 downloading one per one. In gambas 2.7 works fine, but in gambas 2.9 and
 2.10 when start donwload, hangs up.

 Regards
 Lorenzo Tejera

I found the bug: the FtpClient and HttpClient control Async property is not 
correctly initialized to TRUE.

As a workaround, just explicitely set the Async property to TRUE before 
running the Get() method. It should work!

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Release of Gambas 2.10

2008-12-29 Thread Benoit Minisini
 non-modal window event loop management.
* BUG: Fix a leak in font objects management.
* BUG: Picture.Load() yet loads an image, but internally converts it to
  a pixmap. It speeds up following draws based on this picture.
* BUG: Startup forms hidden at design time are not shown automatically
  anymore.
* BUG: Startup forms are visible by default again.
* BUG: Fix the warning when closing a window.

[GB.NET]
* BUG: The socket watch callbacks were incorrectly initialized!
* BUG: Fix the Handle property for Socket, SerialPort and UdpSocket
  classes.
* BUG: The Socket Ready event is correctly raised now.

[GB.QT]
* BUG: Windows having SkipTaskbar set now get the focus correctly when
  activated.
* BUG: Remove warning messages when changing control colors.
* BUG: Disable automatic extra indent of Labels.
* BUG: Startup forms hidden at design time are not shown automatically
  anymore.
* BUG: Don't allow widgets to be destroyed while processing non-input
  events.
* NEW: The Editor.Print() method automatically split lines longer than
  256 characters.

[GB.QT.EXT]
* BUG: Fix Editor margin width when showing line numbers.

[GB.XML]
* BUG: Remove a method declared twice.

[GB.XML.XSLT]
* BUG: The XSLT component works again.

--8---

Enjoy it!

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3 revision #1747

2008-12-28 Thread Benoit Minisini
Hi,

For those who are in front of their computer during the X-mas holidays...

There should be, as not everone in the world celebrate X-mas and/or have 
holidays at the same time...

First, you may see a lot of change in the last revision of Gambas 3. 

Most of them are bug fixes ported from Gambas 2, except a new component 
named gb.image.info. This is a little present for you. :-)

That component allows you to get information about an image file without 
having to fully load it.

It works this way:

WITH ImageStat(System.User.Home / photo.jpg)
  PRINT .Type
  PRINT .Width;; .Height;; .Depth
END WITH

The Type property is a MIME type (image/jpeg in that example), and is got 
from the file contents, not the file extension.

The Depth is 24 for a true color image, 32 for a true color image with an 
alpha channel, and 8 for a palette-based image like GIF. You may get other 
values.

The component have known bugs yet. For example ImageStat(~/photo.jpeg) does 
not work. 

So it is in alpha state at the moment.

Last, just to tell everyone too, I have to develop a component for my job 
soon.

That component will allow you to make images without having to use gb.qt or 
gb.gtk.  It may be named gb.image, and the current gb.image component 
will be renamed as gb.image.effect or something similar.

That component will be based on the GD library (and libjpeg, libpng...). If 
you know a better library, please tell me. 

Meanwhile, enjoy gb.image.info!

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with Conv() and XmlWrite

2008-12-22 Thread Benoit Minisini
On lundi 22 décembre 2008, Luigi Carlotto wrote:
  If you are sure that your strings are ASCII, why doing
  Conv(TheString, UTF-8, ASCII)?

 Yes!

The question was why?


  And the error message printed by the underlying iconv library is

 clear: your

  string is not ASCII.

 No (see result)!

  According to you, The toString() methods always returns an accurate

 string.
 Yes!

  According to the source code, Conv() receives a non-ascii string.

 No!

  Can you check that, by splitting your code?
 
  FOR EACH oItem IN oGroup.Items
  sType = oItem.toString()
  sType = Conv(sType, UTF-8, ASCII)
  oXml.Attribute(oItem.Name, sType)
  NEXT

 Result:

 ...
 150FOR EACH oItem IN oGroup.Items
 151  sType = oItem.toString()
 152  PRINT sType
 153  sType = Conv(sType, UTF-8, ASCII)
 154  oXml.Attribute(oItem.Name, sType)
 155NEXT
 ...

 sType=ACTION,ADD,ALL,ALTER,ANALYZE,AND,AS,ASC,ASENSITIVE,BEFORE,BETWEEN,BI
GINT,BINARY,BIT,BLOB,BOTH,BY,CALL,CASCADE,CASE,CHANGE,CHAR,CHARACTER,CHECK,C
OLLATE,COLUMN,CONDITION,CONNECTION,CONSTRAINT,CONTINUE,CONVERT,CREATE,CROSS,
CURRENT_DATE,CURRENT_TIME,CURRENT_TIMESTAMP,CURRENT_USER,CURSOR,CURSOR
 DATABASE,DATABASES,DATE,DAY_HOUR,DAY_MICROSECOND,DAY_MINUTE,DAY_SECOND,DEC,
DECIMAL,DECLARE,DEFAULT,DELAYED,DELETE,DESC,DESCRIBE,DETERMINISTIC,DISTINCT,
DISTINCTROW,DIV,DOUBLE,DROP,DUAL,EACH,ELSE,ELSEIF,ENCLOSED,ENUM,ESCAPED,EXIS
TS,EXIT,EXPLAIN,FALSE,FETCH,FLOAT,FLOAT4,FLOAT8,FOR,FORCE,FOREIGN,FROM,FULLT
EXT,GOTO,GRANT,GROUP,HAVING,HIGH_PRIORITY,HOUR_MICROSECOND,HOUR_MINUTE,HOUR_
SECOND,IF,IGNORE,IN,INDEX,INFILE,INNER,INOUT,INSENSITIVE,INSERT,INT,INT1,INT
2,INT3,INT4,INT8,INTEGER,INTERVAL,INTO,IS,ITERATE,JOIN,KEY,KEYS,KILL,LABEL,L
EADING,LEAVE,LEFT,LIKE,LIMIT,LINES,LOAD,LOCALTIME,LOCALTIMESTAMP,LOCK,LONG,L
ONGBLOB,LONGTEXT,LOOP,LOW_PRIORITY,MATCH,MEDIUMBLOB,MEDIUMINT,MEDIUMTEXT,MID
DLEINT,MINUTE_MICROSECOND,MINUTE_SECOND,MOD,MODIFIES,NATURALNOT,NO,NO_WRITE_
TO_BINLOG,NULL
 NUMERIC,ON,OPTIMIZE,OPTION,OPTIONALLY,OR,ORDER,OUT,OUTER,OUTFILE,PRECISION,
PRIMARY,PROCEDURE,PURGE,READ,READS,REAL,REFERENCES,REGEXP,RELEASE,RENAME,REP
EAT,REPLACE,REQUIRE,RESTRICT,RETURN,REVOKE,RIGHT,RLIKE,SCHEMA,SCHEMAS,SECOND
_MICROSECOND,SELECT,SENSITIVE,SEPARATOR,SET,SHOW,SMALLINT,SONAME,SPATIAL,SPE
CIFIC,SQL,SQLEXCEPTION,SQLSTATE,SQLWARNING,SQL_BIG_RESULT,SQL_CALC_FOUND_ROW
S,SQL_SMALL_RESULT,SSL STARTING,STRAIGHT_JOIN,TABLE
 TERMINATED,TEXT,THEN,TIME,TIMESTAMP,TINYBLOB,TINYINT,TINYTEXT,TO,TRAILING,T
RIGGER,TRUE,UNDO,UNION,UNIQUE,UNLOCK,UNSIGNED,UPDATE,UPGRADE,USAGE,USE,USING
,UTC_DATE,UTC_TIME,UTC_TIMESTAMP,VALUES,VARBINARY,VARCHAR,VARCHARACTER,VARYI
NG,WHEN,WHERE,WHILE,WITH,WRITE,XOR,YEAR_MONTH,ZEROFILL Error: Error writing
 XML data
 Code: -1
 Class: pgConfig
 Where: pgConfig.Save.154

 As you can see, the error not verification in the conversion, but in the
 writing on XML, and the string “sType” (too long...) contains alone
 characters ASCII.


Why don't you have the same error as in your first post?

Does the sType string have newlines inside?

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with MySQL LONGTEXT field type

2008-12-22 Thread Benoit Minisini
On lundi 22 décembre 2008, Luigi Carlotto wrote:
 Il giorno lun, 22/12/2008 alle 20.13 +0100, Luigi Carlotto ha scritto:
  It pardons me, but the table in object is not part of mine database,
  but of the same motor of MySQL.
  The fact that is complete with the data, or without data, is not the
  true problem.
  My function reads the content of this table in order to determine the
  structure of a database, and not the data.
  The data contained in this table, come inserted automatically from the
  motor of MySQL, when they come created objects in the database.
 
  In the normal situation, the table contains the information
  approximately the structure of the objects that MySQL creates of
  default, when it comes created database any.
  The table “routines” is of property of the “information_schema”
  schema, that it is of property of MySQL, and on which writing
  operations cannot be made, but only of reading.
  The same library of Gambas2, uses this table for populate the objects
  “Table”, “Field”, etc
 
  To this point, it still pardons me, I I do not believe that to send
  the dump of this table he is of great usefullness since, if an
  installation of MySQL is had, it is possible to verify the problem
  directly.
  As creed of to have written, the problem does not seem that or caused
  from the reading of the field, but its maintenance in memory, if
  managed from a complex application… This, obviously, is only a
  hypothesis…
 
  Thanks to you for the patience!

 In attached the dump of the database of test.
 A table is present only...

 Thanks

There is nothing that fills the ROUTINE table, so I think something is missing 
in the dump file. 

I guess that the ROUTINE table is indirectly filled by MySQL user-defined 
database functions, isn't it?

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SQLite and INT4 vs. INTEGER

2008-12-20 Thread Benoit Minisini
On mardi 16 décembre 2008, moon_walker wrote:
 Hi Benoit,

 i am developing a cross platform application. The linux side is on GAMBAS
 and the Win side is on
 C#.NET. The common part is the SQLite database.

 There is some foreign relations which are coupled with comboboxes.
 So the child table has some foreign key fields joined to parent primary
 keys.

 In the parent tables the primary keys are defined as autoincrement. Since i
 was unable to use the type gb.serial at all, i defined this keys in
 SQLite-datamanager in firefox. I realised that SQLite only allows
 autoincrement for primary key INTEGER. However gambas database manager use
 INT4 for the foreign key fields in the child table.
 This causes inconsistency in .NET since it is impossible to create
 relations on type mismatched fields (INT4 vs INTEGER). If i switch all
 related fields to INTEGER then GAMBAS is unable to handle tha databounded
 combobox.

 I would prefer that instead of INT4, only INTEGER would be used general by
 SQLite area.

 thx
 br
 Attila

I didn't find any clean way to know if a field is an autoincrement field with 
sqlite 3 API. There is a function, but it is not necesarilly compiled in all 
versions of sqlite 3 (and apparently not on Mandriva).

So the AUTOINCREMENT feature is detected by the use of INTEGER, whereas INT4 
is used with norma integer fields.

If I find a way to detect autoincrement fields, you won't have any problem!

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] sidepanel object + gb.gtk bug

2008-12-20 Thread Benoit Minisini
On mercredi 17 décembre 2008, M0E Lnx wrote:
 I develop a couple of application in gambas2-2.9.0, both of which have
 a sidepanel object. Both use gb.gtk.
 I've found something that I believe is a bug. Does not happen when I
 use the gb.qt component

 When I click the little  on the side panel (to hide it) it goes
 well, but when I click it again to restore it, it will not restore it.
 The little arrow will only turn the other way, but the panel is still
 hidden.

 I can drag it and resize it back to normal size, and hiding/restoring
 after that works flawlessly... but the first time it gets stuck.


I cannot reproduce the problem: can you send me a little project that has the 
bug?

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with MySQL LONGTEXT field type

2008-12-20 Thread Benoit Minisini
On dimanche 14 décembre 2008, Luigi Carlotto wrote:
 Gambas2 - versione 2.9.0

 The single anomaly verification in a circumstance, that I will try to
 describe:

 - I have created a small static class that executes the logon to a
 database, executes query and returns the data in a structure much
 similar one to the logic applied to the Result/Field objects; at last
 the logon comes sluice.  This my logic is created in order to avoid to
 leave the logon open and, since the Result object maintains the data
 single to opened logon, my class copy these data in an appropriate
 structure of Array of objects, that it comes returned to the procedures
 that use this function.
 - the calling procedures use this class, that the structure returns
 given, that comes used for determined scopes.
 - the logons can be made on database PostgreSQL, MySQL and SQLite; the
 query they come correctly executed, returning the corrected values,
 unless for MySQL. Like described in the first mail, one of the query
 executes a loading of information from a table of system of MySQL, used
 in order to determine the structure of the database.
 - some fields of this table are of type “longtext” (BLOB).
 - Strangely, these fields return a value NULL, although their content is
 instead a valid data.
 - Verifying the Result object, immediately after the execution of the
 query, I have found that the value of this field is truly NULL, and this
 excludes an anomaly of my procedures.
 - To ulterior I have had confirmation, constructing it a small procedure
 of test, in which it executes the same operations made from my program,
 and that it uses the same static class; strangely, the query executed
 from the test program, it has given back a valid value in the field
 “longtest”.
 - The thing has made me to rise a doubt: since my program is rather
 complex, he is probable exists some problem in memory (stack) with the
 management of fields BLOB?
 - Knowing enough language C/C++, I have given to a glance to the code
 source of the library, but the only thing that I have found is that
 fields BLOB come managed in way detail, but has not found details
 conditions that could make me to doubt on they a wrong management.  The
 only thing that has come to me in mind, is perhaps that a problem of
 memory with programs exists many complexes, for which this type of data
 (blob) comes lost…
 - I have found this single anomaly in MySQL, but it is also true that
 the others dbms do not use this type of data (blob) in the system
 tables.

 Some suggestion?

 Thanks

Can you send me a little mysql database that implies some data in the ROUTINES 
table of information_schema?

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Localisation: find available language(s)

2008-12-19 Thread Benoit Minisini
On vendredi 19 décembre 2008, wig wrote:
 I want to show the available languages (translations) for my project.

 Is there a way to get the available languages in Gambas like

 aLanguages = Application.Languages ?

 Or is it stored as metadata in some file?

 If not, I understand that in the project directory ..
 myproject/.lang
 .. I can find the language files ending on .po and .mo

 I could use them as indication of available languages.

 Or is there a better way?


There is no better way. But it work only in trunk because of a bug that was 
fixed recently.

Regards,

-- 
Benoit Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] last line of editor

2008-12-18 Thread Benoit Minisini
On jeudi 18 décembre 2008, Demosthenes Koptsis wrote:
 Actually this was my thought, to put this statement in SUB Editor_Change()

 but it doesnot work, that's why i ask you...what am i doing wrong?

 my code is

 PBLIC SUB edtSQL_Change()

 edtSQL.Goto(edtSQL.Lines.Count, 0)

 END


Moving the cursor during a Change event is risky, as you don't know if the 
editor will move the cursor again after the event.

 but when i change editors text with edtSQL.text=somethiing does not
 go to last line


Setting the Text property changes the text, raises the Change event, and the 
moves the cursor to the top. So if you want to put it at the end, you must 
use the Goto() method just after.

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 compilation problem

2008-12-17 Thread Benoit Minisini
On mercredi 17 décembre 2008, Jussi Lahtinen wrote:
 That's odd... since I already compiled Gambas2.9 without problems with
 libtool 2.2.4 !

Really? Can you send me the full output of the compilation of Gambas 2.9 with 
libtool 2.2.4? If you don't know how to do that, it is explained on the 
website ('Reporting a problem' page).

 So libtool problem is only with gambas3?

Maybe. I don't know, as Mandriva only has libtool 1.5.


 I readed that wiki entry.
 I run this command:
 sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb

 And I get these messages:

 dpkg: error processing libtool_1.5.26-1ubuntu1_amd64.deb (--install):
 cannot access archive: No such file or directory
 Errors were encountered while processing:
 libtool_1.5.26-1ubuntu1_amd64.deb

You must download the package first I suppose...

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] import mysql dump EXEC or SHELL?

2008-12-17 Thread Benoit Minisini
On mercredi 17 décembre 2008, Doriano Blengino wrote:
 Ron_1st ha scritto:
  P.S. Just a side note. At the moment when I 'reply' kmail strips every
  thing below the '--' as signature. As result your name is also
  stripped (I did cut/paste to get it back here) and also automagicly
  the advertisement from SF is gone away. As in normal written mail the
  name of the writter is below the 'regards' and it looks to me the '--'
  shouls below your name instead above.

 Yes, Mozilla does it too.
 I started little time ago to use standard signatures, and never noticed
 this.

 I am not sure, perhaps Mozilla and kmail do the wrong thing; the --
 followed by the name is the standard way to sign mails.

Actually, it is -- . Did you notice the space after the --?

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drag Drop to KDE Desktop

2008-12-17 Thread Benoit Minisini
On mercredi 17 décembre 2008, Doriano Blengino wrote:
 Fabien Bodard ha scritto:
  doriano you have not read carefully my message too !
 
  this is an exemple to interact with desktop it work on KDE4..;

 Fabien,

 you are so kind. In your last message there was no word saying kde

 :-), so I assumed you misunderstood.

 As I stated before, the first example failed to DD between two instances.
 Here at work I have no KDE, too; this evening I will try again at home.

 The last example you sended fails with error 11 - no problem, may be my
 gambas version is too old (2.0.0); nevertheless I don't understand why
 it does so...

 Regards,
 Doriano


gb.gtk was not very reliable in 2.0.0. You should use a more recent version!

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error on Connection when closing

2008-12-17 Thread Benoit Minisini
On mardi 16 décembre 2008, David Villalobos Cambronero wrote:
 Hi, I got an error when close my connection at runtime, the error is easy,
 the connection is not closed, it still accepts queries.

 Is the .Close() Method supposed to close the connection meaning that it
 won't accept queries or I'm wrong. See the attached example.

 Gambas 3, svn 1740, Mandriva 2008.1 32 Bits and MySQL.

 Benoit, can you confirm.

  Regards


 --
 David

This is normal: a closed connection is automatically reopened as soon as it 
is used. Someone requested this feature, but I don't remember who.

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] last line of editor

2008-12-17 Thread Benoit Minisini
On mardi 16 décembre 2008, Demosthenes Koptsis wrote:
 Hi to all,

 i have a text area and i want when i feed text to it to go to the last
 line of it, so i wrote the next code that works fine

 PUBLIC SUB txaSQL_Change()

   txaSQL.Pos = Len(txaSQL.Text)

 END

 how can i have the same result with an editor control?

TheEditor.Goto(TheEditor.Lines.Count, 0)

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] error calling external function but not when debugging

2008-12-17 Thread Benoit Minisini
On lundi 15 décembre 2008, je ber lo wrote:
 hello, I'm using gambas 2.8 on debian and I'm getting different result when
 debugging code ( the result is a md5 hash string (32 characters)) but no
 when executing in a normal way. The error is

 Failed to set text from markup due to error parsing markup: Error on line 1
 char 10: Invalid UTF-8 encoded text - not valid '�$R
 ���\u0002}60b725f10c9c85c70d97880dfe8191b3'

 The correct result is string 60b725f10c9c85c70d97880dfe8191b3

 sometimes I get the following message too.   *** glibc detected ***
 dinamic: double free or corruption (out): 0x08894530 ***


 I declare the function

 EXTERN md5file(filename AS String, resultado AS Pointer) AS Pointer IN
 mimd5sum

 I call the function with

 DIM cas AS Pointer
 DIM cas2 AS Pointer
 DIM cad AS String

 cas = Alloc(33)
 cas2 = md5file(/prueba.txt, cas)
 cad = StrPtr(cas2)
 Message(cad)
 Free(cas)


 and the function in laguage C is:

 void miMDPrint (MD5_CTX *mdContext, char* resultado)
 {
   int i;

   char cadtemporal[3]=;

   for (i = 0; i  16; i++) {
 sprintf (cadtemporal, %02x, mdContext-digest[i]);
 strcat(resultado, cadtemporal);
   }
   //strcat(resultado,);


 }


 char* md5file (char* filename,char* resultado)
 {

   FILE *inFile = fopen (filename, rb);
   MD5_CTX mdContext;
   int bytes;
   unsigned char data[1024];

   if (inFile == NULL) {
 //printf (%s can't be opened.\n, filename);
 return NULL;
   }

   MD5Init (mdContext);
   while ((bytes = fread (data, 1, 1024, inFile)) != 0)
 MD5Update (mdContext, data, bytes);
   MD5Final (mdContext);
   miMDPrint (mdContext,resultado);
   fclose (inFile);

   return resultado;

 }

 Any idea about this problem is welcome.

 Regards.

Please send your project, the library, and the needed file data, and explain 
exactly what should be done to reproduce the bug. 

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Command completion

2008-12-17 Thread Benoit Minisini
On samedi 13 décembre 2008, gam...@organet.com wrote:
 Hi Benoit,

 in Gambas3 (snapshot from friday), when writing a long line, so that the
 IDE begins to scroll, there is no command completion anymore.

 Greetz
 Stevie


In Gambas 2 too. As soon as something scrolls in the editor, completion and 
signature popups are hidden.

I admit that the editor should be more clever and just move them.

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 compilation problem

2008-12-16 Thread Benoit Minisini
On mardi 16 décembre 2008, Jussi Lahtinen wrote:
 Hi!
 I must rise this again, it is still problem... ideas? Anyone?
 I tried it again with revision 1740, and same problem.
 Do I need to install something from somewhere..?
 Thanks!


 Jussi



As briefly explained on the wiki, on the Ubuntu page, you must replace the 
default libtool package (version 2) by an older one (version 1.5). Otherwise, 
Gambas does not compile correctly!

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Hex string to float

2008-12-14 Thread Benoit Minisini
On dimanche 14 décembre 2008, nando wrote:
 My apologies to all...I stand corrected for my mistake.
 The i = h3fd5 converts hex to integer and is easiest to do it this
 way. This method does performs as the original person wanted but is a waste
 to do disk IO.  Perhaps a pipe, write the integer, read the single.
 Although I haven't investigated, Gambas3 has pointers.
 Copying 4B from a pointer to the 4B int to the 4B single will do it.
 There are (older) versions of BASIC that had (something like) MKI$, MKS$,
 MKD$ and counterparts (something like) CVI, CVS, CVD.  They took a string
 and converted it to an Int Single Double.  No conversion happened because
 the string was binary correct for the type. All it did was copy 2B, 4B 8B
 from/to a numeric var to/from string.
  If Benoit were to incorporate these functions, it makes Gambas easily
 perform IO of data types with ease to convert to native variables.
 Thanks,
 -Fernando


Yeh, this is planed.

Anyway, you can do these conversion in Gambas 2 (and 3) this way:

DIM sSrc AS String
DIM eDst AS Float
DIM pPtr AS Pointer

pPtr = Alloc(8)
WRITE #pPtr, sSrc, 8
READ #pPtr, eDst
Free(pPtr)

But beware with the endianness!

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] An other problem with object oriented approach.

2008-12-13 Thread Benoit Minisini
On samedi 13 décembre 2008, Jussi Lahtinen wrote:
 Ok, thanks!
 Those items have unique long type id number.
 Maybe I'm wrong but to me string keys sounds slow.
 Perhaps binary mode is quicker (
 http://gambasdoc.org/help/comp/gb/collection/_new?show ).
 But I think this is the right way to go!

 I didn't find this from documentation, so do anyone know what $ sign
 means at declaration.
 Example:
 PRIVATE $iTotal AS Long


 Jussi


The '$' sign is just a character that you can use inside an indentifier. I use 
it at the beginning to name a private class variable. For public class 
variable, I use Pascal notation.

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Wish list for a tooltip feature

2008-12-13 Thread Benoit Minisini
On dimanche 14 décembre 2008, richard terry wrote:
 I wondered if there would be any way or perhaps future feature to be able
 to set the tooltip font/size?

 Reason being that in some circumstances the font size is quite large
 compared to ones underlying control/design.

 Regards

 Richard


Quite large? By default the tooltip font is the desktop default font. Do you 
have a screenshot?

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Gambas 2.9 and Gnome 2.24

2008-12-13 Thread Benoit Minisini
On dimanche 14 décembre 2008, Leonardo Miliani wrote:
 Benoit Minisini ha scritto:
  On mardi 9 décembre 2008, Leonardo Miliani wrote:
  Benoit Minisini ha scritto:
  On mardi 9 décembre 2008, Gaël Le Hec'H wrote:
  I confirm the problem on fedora 10 with gnome 2.24.2 and gambas2 2.9.0
  with the clock example
 
  Gaël Le Hec'H
 
  Just an idea: do you use Compiz?
 
  No, I don't.
  I attach a screenshot to let you see the problem.
 
  The mask is actually applied. Just that the window manager shows the
  windows borders, whereas it was requested not to do that.

 Strange thing...
 If I create a new project, the mask property works correctly and the
 borders don't visualize... So the problems appears only opening old
 projects: is there any change internally at Gambas?

Can you send me one of these old projects? (It seems to be a rule: always send 
the project!)

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Integer Bug

2008-12-12 Thread Benoit Minisini
On vendredi 12 décembre 2008, L Jumadi wrote:
 I found integer bug in gambas. Please try ?54*4100 in gambas
 console. The result is negative, maybe because 4100 is converted
 to integer rather than long integer. I can solve it by use manual
 converting to ?54*clng(4100) but I think it should converted
 automatically by interpreter, isn't it?

It should not, because checking an overflow is impossible in C, AFAIK. It 
would take far longer to check it than doing the operation. 

So I prefer let the programmer do the conversion explicitely.

 Another anomali (I am not search the detail yet) when I change gb.qt
 to gb.gtk: When I navigate between textbox with keyboard Tab it raise
 gambas error (it seems divide by zero) but rapidly another error raise
 (message box already open) and gambas close  with signal 11. I hope
 this little information can help to solve the problem, or may be I
 will investigate more deeply (cause my program already complex now) in
 later time. When I switch back to gb.qt everything normal again.

I need a piece of your project that raises the bug, and the way to reproduce 
it. Otherwise I cannot do anything.

You can help by running your project with valgrind and a gambas compiled from 
sources, and send me the valgrind output until the crash.

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Problem with gambas wiki web site

2008-12-12 Thread Benoit Minisini
Hi all,

Apparently gambasdoc.org does not answer anymore, nor kudla.org, the domain 
where you can write to Rob Kudla, the gambasdoc.org server owner.

If you read that Rob, please tell us what happens!

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Hiding FMain not possible?

2008-12-11 Thread Benoit Minisini
On jeudi 11 décembre 2008, Benoit Minisini wrote:

 I will post a fix so that when the Visible property of the form is set to
 FALSE, the form is not shown at startup, but loaded. So the workaround
 above will not be needed anymore!

 Regards,

Fix committed in revision #1735.

Regards,

-- 
Benoit Minisini

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   5   >