From sirfabien at ...626... Sat Jul 1 01:33:58 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 1 Jul 2006 01:33:58 +0200 Subject: [Gambas-user] Gambasforge Message-ID: <200607010133.58598.sirfabien@...626...> Hi to all The new beta gambasforge site is online (http://www.gambasforge.net) It is writed in gambas ! You can now re-use the downloading... But not put any code a this time ... i 'm working on it ! Regards, Fabien Bodard From blanchet.jocelyn at ...626... Sat Jul 1 03:08:17 2006 From: blanchet.jocelyn at ...626... (Jocelyn Blanchet) Date: Fri, 30 Jun 2006 21:08:17 -0400 Subject: [Gambas-user] apt-get install for debian broken Message-ID: I added this line in my sources.list file: deb http://www.linex.org/sources/linex/debian/ cl gambas Here is what I have when I: apt-get install gambas: atout1:/etc/apt# apt-get install gambas Reading package lists... Done Building dependency tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies: gambas: Depends: gambas-gb-qt-ext (>= 1.9.19) but it is not going to be installed Depends: gambas-gb-qt-editor (>= 1.9.19) but it is not going to be installed Depends: gambas-gb-sdl (>= 1.9.19) but it is not going to be installed Depends: gambas-doc (>= 1.9.19) but it is not going to be installed Depends: gambas-gb-qt-kde-html (>= 1.9.19) but it is not going to be installed Depends: gambas-gb-db-mysql (>= 1.9.19) but it is not going to be installed Depends: gambas-gb-settings (>= 1.9.19-2) but it is not going to be installed Depends: gambas-gb-form (>= 1.9.19) but it is not going to be installed Depends: gambas-ide (>= 1.9.20) but it is not going to be installed Depends: gambas-gb-sdl-opengl (>= 1.9.19) but it is not going to be installed E: Broken packages Please advise? Thanks -- Jocelyn Blanchet From ronstk at ...239... Sat Jul 1 04:07:33 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 1 Jul 2006 04:07:33 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: References: Message-ID: <200607010407.33471.ronstk@...239...> On Saturday 01 July 2006 03:08, Jocelyn Blanchet wrote: > ? ? ? ? Depends: gambas-ide (>= 1.9.20) but it is not going to be installed > ? ? ? ? ? Depends: gambas-gb-sdl-opengl (>= 1.9.19) but it is not > going to be installed > E: Broken packages > > > Please advise? > > Thanks > > -- > Jocelyn Blanchet > The best thing? Goto the gambas homesite at http://gambas.sourceforge.net/ Read about compile your own gambas at http://gambas.sourceforge.net/compilation.html Take care about dependencies !!!! at http://gambasdoc.org/help/readme Download the latest 1.9.32 version at http://gambas.sourceforge.net/download.html Follow the instructions in http://gambas.sourceforge.net/compilation In case of troubles read at http://gambas.sourceforge.net/tr-compilation.html It is just like cooking gambas to eat :) El cocinar es un acto de preparar el alimento para comer. Abarca una gama extensa de m?todos, de herramientas y de combinaciones de ingredientes para mejorar el sabor o la digestibilidad del alimento. Requiere generalmente la selecci?n, la medida y combinar de ingredientes en un procedimiento pedido en un esfuerzo de alcanzar el resultado deseado. And enjoy the gambasians :) The easy thing? Wait till it is fixed. Lekker Garnalen etende Ron From ronstk at ...239... Sat Jul 1 04:49:22 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 1 Jul 2006 04:49:22 +0200 Subject: [Gambas-user] Gambasforge In-Reply-To: <200607010133.58598.sirfabien@...626...> References: <200607010133.58598.sirfabien@...626...> Message-ID: <200607010449.22508.ronstk@...239...> On Saturday 01 July 2006 01:33, Fabien Bodard wrote: > Hi to all > > The new beta gambasforge site is online (http://www.gambasforge.net) > > It is writed in gambas ! > > You can now re-use the downloading... > > But not put any code a this time ... i 'm working on it ! > > Regards, > Fabien Bodard > Nice done Fabien Ron From _root at ...324... Sat Jul 1 08:17:40 2006 From: _root at ...324... (-=FoX=-) Date: Sat, 01 Jul 2006 08:17:40 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: References: Message-ID: <44A61384.60305@...324...> Hi !! Jos? L. Redrejo Rodr?guez answer me : That information is obsolete, take a look at http://apt.linex.org/linex/gambas/ There you will find last packages for stable/development gambas releases, for sid and for sarge. If you want to use, for example, version 1.9.16, you should use deb http://apt.linex.org/linex/gambas/1.0.16/sid/ ./ now it works ;-) bye FoX -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Cerchi cd e dvd vergini? Su mystorage.it trovi il meglio a partire da ? 0,15! * Spedizione immediata in tutta Italia. Offerte strepitose tutti i giorni! * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5347&d=1-7 From timothy.marshal-nichols at ...247... Sat Jul 1 08:49:20 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Sat, 1 Jul 2006 07:49:20 +0100 Subject: [Gambas-user] Gambasforge In-Reply-To: <200607010133.58598.sirfabien@...626...> Message-ID: Hello, I have never been able to create a log in account for gambasforge. (It always rejects my email address. It is a real one, honest :-) - you can see it below. May be it is the '-'.) Is this being fixed? Not being able to log in creates a catch 22 situation. You can not report the log in fault as you are not logged in. But if you could create a account to log in then you would not need to report the fault. Advert: People should also think about using the http://forum.stormweb.no/index.php site. It is enthusiastically maintained by Rohnny Stormo. This means any problems are fixed a lot faster than with gambasforge. You can also upload and download demo Gambas projects. Could a link be added to this site from http://gambas.sourceforge.net/ ? Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Fabien > Bodard > Sent: Saturday, 01 July 2006 00:34 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Gambasforge > > > Hi to all > > The new beta gambasforge site is online (http://www.gambasforge.net) > > It is writed in gambas ! > > You can now re-use the downloading... > > But not put any code a this time ... i 'm working on it ! > > Regards, > Fabien Bodard > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jul 1 10:44:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Jul 2006 10:44:04 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: <44A61384.60305@...324...> References: <44A61384.60305@...324...> Message-ID: <200607011044.04913.gambas@...1...> On Saturday 01 July 2006 08:17, -=FoX=- wrote: > Hi !! > > Jos? L. Redrejo Rodr?guez answer me : > > That information is obsolete, take a look at > http://apt.linex.org/linex/gambas/ > There you will find last packages for stable/development gambas > releases, for sid and for sarge. > If you want to use, for example, version 1.9.16, you should use > > deb http://apt.linex.org/linex/gambas/1.0.16/sid/ ./ > > > now it works ;-) > > > bye > FoX > > OK. I updated the web site! -- Benoit Minisini From _root at ...324... Sat Jul 1 11:55:18 2006 From: _root at ...324... (-=FoX=-) Date: Sat, 01 Jul 2006 11:55:18 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: <200607011044.04913.gambas@...1...> References: <44A61384.60305@...324...> <200607011044.04913.gambas@...1...> Message-ID: <44A64686.4000508@...324...> Benoit Minisini wrote: >OK. I updated the web site! > > > Hi Benoit, how are u? Do u remember me?? :-P -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Gioca e vinci con Cesar: trova la ciotola ed ? subito tuo il prezioso kit per la tavola del tuo cagnolino Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5332&d=1-7 From gambas at ...1... Sat Jul 1 12:01:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Jul 2006 12:01:26 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 Message-ID: <200607011201.26673.gambas@...1...> Hi, This new release fixes two important bugs in the interpreter: The error management does not leak stack anymore. Too many TRY inside the same function created a stack overflow. The = and <> operators now always behave correctly when comparing a string with NULL. Last, but not least, the symbolic links in /usr/bin are not necessary anymore! Now the Gambas installation path is encoded directly in the executable at compilation time. The only requirement is that gbr2 must be in the PATH. If a /usr/bin/gbx2 symbolic link exist, then it will be used to find gambas instead of the installation path defined at compilation time. You may have to create a /usr/bin/gbr2 symbolic link too, if gbr2 is installed in a strange location that /usr/local on Mandriva, then Apache won't be able to run a CGI script written in Gambas, as /usr/local/bin is not in the PATH of apache processes. It is experimental, so please report any problem with this new way to get the Gambas installation path. Here is the full ChangeLog: --8<------------------------------------------------------------------------- CONFIGURATION & INSTALLATION * The symbolic links in /usr/bin are not needed anymore. Now the gambas installation path is encoded in the executable at compilation time, unless a symbolic link /usr/bin/gbx2 exists. Otherwise, the only requirement is that gbr2 must be in the PATH. DEVELOPMENT ENVIRONMENT * BUG: Move some code from Form constructors to Form_Open event handlers, as no event can be raised during instanciation. * BUG: Some fixes in the automatic completion. * BUG: Some fixes in the help explorer window. * BUG: Making an executable outside of the project directory now works correctly. INTERPRETER * BUG: The error management does not leak stack anymore. So functions doing a lot of TRY do not crash the interpreter anymore. * NEW: File.SetName, File.SetExt, File.SetDir and File.SetBaseName replace the File.Name, File.Ext, File.Dir and File.BaseName methods called with two parameters. * BUG: The = and <> operator now work correctly in any case when comparing two strings whose one is null. GB.QT COMPONENT * NEW: The Draw.Drawing method now takes four extra optional clipping parameters, like Draw.Image and Draw.Picture. * BUG: Windows automatic layout works again. GB.QT.EXT COMPONENT * BUG: The procedure line delimiter is correctly displayed in all cases now. GB.FORM COMPONENT * BUG: Some fixes because of the constructor not being able to raise events anymore. GB.FORM.MDI COMPONENT * NEW: Pressing the Shift key allows to resize MDI child windows freely. GB.DB COMPONENT * BUG: Drivers functions that test the existence of a user, an index, a field, and so on, now correctly return FALSE if an error occurs. GB.V4L COMPONENT * BUG: The component now requires the "linux/videodev2.h" include to compile. --8<------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From gambas at ...1... Sat Jul 1 12:10:12 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Jul 2006 12:10:12 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: <44A64686.4000508@...324...> References: <200607011044.04913.gambas@...1...> <44A64686.4000508@...324...> Message-ID: <200607011210.13301.gambas@...1...> On Saturday 01 July 2006 11:55, -=FoX=- wrote: > Benoit Minisini wrote: > >OK. I updated the web site! > > Hi Benoit, > how are u? > Do u remember me?? > > :-P > Did we met in Palerma? -- Benoit Minisini From _root at ...324... Sat Jul 1 14:15:17 2006 From: _root at ...324... (-=FoX=-) Date: Sat, 1 Jul 2006 14:15:17 +0200 Subject: [Gambas-user] apt-get install for debian broken In-Reply-To: <200607011210.13301.gambas@...1...> References: <44A64686.4000508@...324...> <200607011210.13301.gambas@...1...> Message-ID: <200607011415.17841._root@...324...> Alle 12:10, sabato 1 luglio 2006, Benoit Minisini ha scritto: > Did we met in Palerma? hihi no, you must go back to 2004... :-D when i make a little software to change X cursors... nop. ;) however good job! ;-) -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Le telecomunicazioni sono la tua passione? Realizza il tuo sogno, entra in www.tlctel.com Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5389&d=1-7 From fidojones at ...805... Sat Jul 1 15:14:50 2006 From: fidojones at ...805... (Lorenzo) Date: Sat, 1 Jul 2006 15:14:50 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011201.26673.gambas@...1...> References: <200607011201.26673.gambas@...1...> Message-ID: <7338ff3a9f57bdc6fe7b9a02e72f06b3@...40...> Benoit, compiling like always, "segmentation fault" in gb.qt.kde component, wait instruccions. make[5]: se ingresa al directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' Creating the information files for gb.qt.kde.html component... gb.qt.kde.html make[5]: *** [install-data-hook] Violaci?n de segmento make[5]: se sale del directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' make[4]: *** [install-data-am] Error 2 regards lorenzo On Sat, 1 Jul 2006 12:01:26 +0200, Benoit Minisini wrote: > Hi, > > This new release fixes two important bugs in the interpreter: > > The error management does not leak stack anymore. Too many TRY inside the > same > function created a stack overflow. > > The = and <> operators now always behave correctly when comparing a string > with NULL. > > Last, but not least, the symbolic links in /usr/bin are not necessary > anymore! > Now the Gambas installation path is encoded directly in the executable at > compilation time. The only requirement is that gbr2 must be in the PATH. > > If a /usr/bin/gbx2 symbolic link exist, then it will be used to find > gambas > instead of the installation path defined at compilation time. > > You may have to create a /usr/bin/gbr2 symbolic link too, if gbr2 is > installed > in a strange location that /usr/local on Mandriva, then Apache won't be > able > to run a CGI script written in Gambas, as /usr/local/bin is not in the > PATH > of apache processes. > > It is experimental, so please report any problem with this new way to get > the > Gambas installation path. > > Here is the full ChangeLog: > > --8<------------------------------------------------------------------------- > > CONFIGURATION & INSTALLATION > > * The symbolic links in /usr/bin are not needed anymore. Now the gambas > installation path is encoded in the executable at compilation time, > unless a symbolic link /usr/bin/gbx2 exists. Otherwise, the only > requirement is that gbr2 must be in the PATH. > > DEVELOPMENT ENVIRONMENT > > * BUG: Move some code from Form constructors to Form_Open event handlers, > as no event can be raised during instanciation. > * BUG: Some fixes in the automatic completion. > * BUG: Some fixes in the help explorer window. > * BUG: Making an executable outside of the project directory now works > correctly. > > INTERPRETER > > * BUG: The error management does not leak stack anymore. So functions > doing > a lot of TRY do not crash the interpreter anymore. > * NEW: File.SetName, File.SetExt, File.SetDir and File.SetBaseName replace > the File.Name, File.Ext, File.Dir and File.BaseName methods called with > two parameters. > * BUG: The = and <> operator now work correctly in any case when comparing > two strings whose one is null. > > GB.QT COMPONENT > > * NEW: The Draw.Drawing method now takes four extra optional clipping > parameters, like Draw.Image and Draw.Picture. > * BUG: Windows automatic layout works again. > > GB.QT.EXT COMPONENT > > * BUG: The procedure line delimiter is correctly displayed in all cases > now. > > GB.FORM COMPONENT > > * BUG: Some fixes because of the constructor not being able to raise > events > anymore. > > GB.FORM.MDI COMPONENT > > * NEW: Pressing the Shift key allows to resize MDI child windows freely. > > GB.DB COMPONENT > > * BUG: Drivers functions that test the existence of a user, an index, a > field, and so on, now correctly return FALSE if an error occurs. > > GB.V4L COMPONENT > > * BUG: The component now requires the "linux/videodev2.h" include to > compile. > > --8<------------------------------------------------------------------------- > > Enjoy it! > > -- > Benoit Minisini > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jul 1 15:59:24 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Jul 2006 15:59:24 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <7338ff3a9f57bdc6fe7b9a02e72f06b3@...40...> References: <200607011201.26673.gambas@...1...> <7338ff3a9f57bdc6fe7b9a02e72f06b3@...40...> Message-ID: <200607011559.25411.gambas@...1...> On Saturday 01 July 2006 15:14, Lorenzo wrote: > Benoit, compiling like always, "segmentation fault" in gb.qt.kde component, > wait instruccions. > > > > make[5]: se ingresa al directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' > > > > Creating the information files for gb.qt.kde.html component... > > gb.qt.kde.html > > make[5]: *** [install-data-hook] Violaci?n de segmento > > make[5]: se sale del directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' > > make[4]: *** [install-data-am] Error 2 > > > > regards > > > > lorenzo > Which distribution do you use? Try 'gbi2 gb.qt.kde.html' manually as root. Does it crash or not? If it crashes, tell me where by running it inside gdb: $ gdb gbi2 ... (gdb) run gb.qt.kde.html ... (gdb) bt Regards, -- Benoit Minisini From tetsuo at ...756... Sat Jul 1 16:53:36 2006 From: tetsuo at ...756... (tetsuo) Date: Sat, 01 Jul 2006 16:53:36 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011201.26673.gambas@...1...> References: <200607011201.26673.gambas@...1...> Message-ID: <44A68C70.9040608@...756...> Benoit Minisini wrote: > This new release fixes two important bugs in the interpreter: hi... on my gentoo i can compile and install 1.9.33 without problems, but when i start it this message appear: roko at ...1494... ~ $ gambas2 ERROR: #2: Cannot load class 'Stock': Unable to load class file regards From gambas at ...1... Sat Jul 1 17:47:17 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 1 Jul 2006 17:47:17 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <44A68C70.9040608@...756...> References: <200607011201.26673.gambas@...1...> <44A68C70.9040608@...756...> Message-ID: <200607011747.17467.gambas@...1...> On Saturday 01 July 2006 16:53, tetsuo wrote: > Benoit Minisini wrote: > > This new release fixes two important bugs in the interpreter: > > hi... on my gentoo i can compile and install 1.9.33 without problems, > but when i start it this message appear: > > roko at ...1494... ~ $ gambas2 > ERROR: #2: Cannot load class 'Stock': Unable to load class file > > regards > The gambas2 symbolic link is not created anymore, you should run gambas2.gambas now. Maybe I should create this symbolic link for convenience... Regards, -- Benoit Minisini From Karl.Reinl at ...9... Sat Jul 1 19:07:31 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 01 Jul 2006 19:07:31 +0200 Subject: [Gambas-user] Gambasforge In-Reply-To: <200607010133.58598.sirfabien@...626...> References: <200607010133.58598.sirfabien@...626...> Message-ID: <1151773651.6299.5.camel@...1496...> Am Samstag, den 01.07.2006, 01:33 +0200 schrieb Fabien Bodard: > Hi to all > > The new beta gambasforge site is online (http://www.gambasforge.net) > > It is writed in gambas ! > > You can now re-use the downloading... > > But not put any code a this time ... i 'm working on it ! > > Regards, > Fabien Bodard > Salut Fabien, like Ron sait, nice job. A stupit question, is it a gambas-project, who offers his screens etc. in a Browser, or does the gambas project build pages ? Remarked two mistakes, Dates on first Page, what means 'put by 140 (see times)' ? Amicalment Charlie From tetsuo at ...756... Sat Jul 1 19:49:52 2006 From: tetsuo at ...756... (tetsuo) Date: Sat, 01 Jul 2006 19:49:52 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011747.17467.gambas@...1...> References: <200607011201.26673.gambas@...1...> <44A68C70.9040608@...756...> <200607011747.17467.gambas@...1...> Message-ID: <44A6B5C0.5090805@...756...> Benoit Minisini wrote: > , you should run gambas2.gambas now. roko at ...1494... ~ $ gambas2 ERROR: #2: Cannot load class 'Stock': Unable to load class file roko at ...1494... ~ $ gambas2.gambas ERROR: #2: Cannot load class 'Stock': Unable to load class file before installing 1.9.33 i have uninstalled 1.9.32 (always using emerge) regards From sirfabien at ...626... Sat Jul 1 21:38:27 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 1 Jul 2006 21:38:27 +0200 Subject: [Gambas-user] Gambasforge In-Reply-To: <1151773651.6299.5.camel@...1496...> References: <200607010133.58598.sirfabien@...626...> <1151773651.6299.5.camel@...1496...> Message-ID: <200607012138.27507.sirfabien@...626...> Le Samedi 1 Juillet 2006 19:07, Charlie Reinl a ?crit?: > Am Samstag, den 01.07.2006, 01:33 +0200 schrieb Fabien Bodard: > > Hi to all > > > > The new beta gambasforge site is online (http://www.gambasforge.net) > > > > It is writed in gambas ! > > > > You can now re-use the downloading... > > > > But not put any code a this time ... i 'm working on it ! > > > > Regards, > > Fabien Bodard > > Salut Fabien, > > like Ron sait, nice job. > > A stupit question, is it a gambas-project, who offers his screens etc. > in a Browser, or does the gambas project build pages ? yes it is stupid, my gambas project build pages > Remarked two mistakes, Dates on first Page, what means 'put by 140 (see > times)' ? this way it explain this error ! > Amicalment > Charlie > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sirfabien at ...626... Sat Jul 1 21:41:40 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 1 Jul 2006 21:41:40 +0200 Subject: [Gambas-user] Gambasforge In-Reply-To: References: Message-ID: <200607012141.40744.sirfabien@...626...> Le Samedi 1 Juillet 2006 08:49, Timothy Marshal-Nichols a ?crit?: > Hello, > > I have never been able to create a log in account for gambasforge. (It > always rejects my email address. It is a real one, honest :-) - you can see > it below. May be it is the '-'.) Is this being fixed? yes it was a regular expression problem ! > > Not being able to log in creates a catch 22 situation. You can not report > the log in fault as you are not logged in. But if you could create a > account to log in then you would not need to report the fault. yes it was an error in fact the more difficult in this project will be to make a session system... Maby i will use some session cookies. > > Advert: > > People should also think about using the http://forum.stormweb.no/index.php > site. It is enthusiastically maintained by Rohnny Stormo. This means any > problems are fixed a lot faster than with gambasforge. You can also upload > and download demo Gambas projects. Could a link be added to this site from > http://gambas.sourceforge.net/ ? > > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Fabien > > Bodard > > Sent: Saturday, 01 July 2006 00:34 > > To: gambas-user at lists.sourceforge.net > > Subject: [Gambas-user] Gambasforge > > > > > > Hi to all > > > > The new beta gambasforge site is online (http://www.gambasforge.net) > > > > It is writed in gambas ! > > > > You can now re-use the downloading... > > > > But not put any code a this time ... i 'm working on it ! > > > > Regards, > > Fabien Bodard > > > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make > > your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sandjaya_arie at ...43... Sun Jul 2 08:55:03 2006 From: sandjaya_arie at ...43... (arie sandjaya) Date: Sat, 1 Jul 2006 23:55:03 -0700 (PDT) Subject: [Gambas-user] tableview Message-ID: <20060702065503.61380.qmail@...1499...> hallo all, i need help to finished my program. i'm build an easy internet cafe software and i will build it fo free, but i have a big problem with tableview. there is someone can help me to make my tableview can update data every 1 second without any refresh effect on my tableview. i'm sorry if my english not very good. thanks for your attention. Arie Sandjaya --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Sun Jul 2 09:01:53 2006 From: rohnny at ...1248... (R. Stormo) Date: Sun, 2 Jul 2006 00:01:53 -0700 (PDT) Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011201.26673.gambas@...1...> References: <200607011201.26673.gambas@...1...> Message-ID: <5138026.post@...1379...> I have the same problem as in previous version. Cannot load class "Workspace":Unable to load class file. This was ok in version upto 31. Is there a way to get this working or is it gone for good? If it's gone, is there an example someplace. -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Release-of-gambas2-1.9.33-tf1876790.html#a5138026 Sent from the gambas-user forum at Nabble.com. From fidojones at ...805... Sun Jul 2 11:03:33 2006 From: fidojones at ...805... (Lorenzo) Date: Sun, 2 Jul 2006 11:03:33 +0200 Subject: [Gambas-user] Gambasforge In-Reply-To: <200607012138.27507.sirfabien@...626...> References: <200607012138.27507.sirfabien@...626...> Message-ID: <7337855b62968cdac8ae4918a7328c39@...40...> Fabien, could be better use http://gforge.org/ ? to gambasforge? as http://forjamari.linex.org/ who use for example the linex people? Should be good to have a reference site to unifed the gambas projects. It's only in idea. Lorenzo On Sat, 1 Jul 2006 21:38:27 +0200, Fabien Bodard wrote: > Le Samedi 1 Juillet 2006 19:07, Charlie Reinl a ?crit : >> Am Samstag, den 01.07.2006, 01:33 +0200 schrieb Fabien Bodard: >> > Hi to all >> > >> > The new beta gambasforge site is online (http://www.gambasforge.net) >> > >> > It is writed in gambas ! >> > >> > You can now re-use the downloading... >> > >> > But not put any code a this time ... i 'm working on it ! >> > >> > Regards, >> > Fabien Bodard >> >> Salut Fabien, >> >> like Ron sait, nice job. >> >> A stupit question, is it a gambas-project, who offers his screens etc. >> in a Browser, or does the gambas project build pages ? > yes it is stupid, my gambas project build pages > > > >> Remarked two mistakes, Dates on first Page, what means 'put by 140 (see >> times)' ? > > this way it explain this error ! > >> Amicalment >> Charlie >> >> >> Using Tomcat but need to do more? Need to support web services, > security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From fidojones at ...805... Sun Jul 2 11:13:55 2006 From: fidojones at ...805... (Lorenzo) Date: Sun, 2 Jul 2006 11:13:55 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011559.25411.gambas@...1...> References: <200607011559.25411.gambas@...1...> Message-ID: <8f7538c3057b2ffb9ea1b779d7371843@...40...> Sorry for the delay, I use debian unstable. Here is the debug, only fails in "make install", I mistaked when I say in compilling. Here it is the debug: (gdb) run gb.qt.kde.html Starting program: /opt/gambas2/bin/gbi2 gb.qt.kde.html gb.qt.kde.html [Thread debugging using libthread_db enabled] [New Thread -1210284352 (LWP 27110)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1210284352 (LWP 27110)] 0xb736a36a in ?? () from /usr/lib/libkdeui.so.4 (gdb) bt #0 0xb736a36a in ?? () from /usr/lib/libkdeui.so.4 #1 0xb736f200 in ?? () from /usr/lib/libkdeui.so.4 #2 0xb735dc4c in ?? () from /usr/lib/libkdeui.so.4 #3 0x00000001 in ?? () #4 0xffffffff in ?? () #5 0x00000101 in ?? () #6 0xfffffffe in ?? () #7 0xfffffffe in ?? () #8 0x00000001 in ?? () #9 0xb6935428 in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib/libstdc++.so.6 #10 0xb7ca26e0 in ?? () from /usr/lib/libqt-mt.so.3 #11 0xb7d979c4 in vtable for QLibrary () from /usr/lib/libqt-mt.so.3 #12 0xb6935428 in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib/libstdc++.so.6 #13 0xb7343e08 in typeinfo name for QGList () from /usr/lib/libkdeui.so.4 #14 0xb7d9adc0 in vtable for QUrlOperator () from /usr/lib/libqt-mt.so.3 #15 0xb6935428 in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib/libstdc++.so.6 #16 0xb7343e20 in typeinfo name for QXEmbed () from /usr/lib/libkdeui.so.4 #17 0xb7d9a39c in vtable for QNetworkOperation () from /usr/lib/libqt-mt.so.3 #18 0x00000000 in ?? () regards Lorenzo On Sat, 1 Jul 2006 15:59:24 +0200, Benoit Minisini wrote: > On Saturday 01 July 2006 15:14, Lorenzo wrote: >> Benoit, compiling like always, "segmentation fault" in gb.qt.kde > component, >> wait instruccions. >> >> >> >> make[5]: se ingresa al directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' >> >> >> >> Creating the information files for gb.qt.kde.html component... >> >> gb.qt.kde.html >> >> make[5]: *** [install-data-hook] Violaci?n de segmento >> >> make[5]: se sale del directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' >> >> make[4]: *** [install-data-am] Error 2 >> >> >> >> regards >> >> >> >> lorenzo >> > > Which distribution do you use? > > Try 'gbi2 gb.qt.kde.html' manually as root. Does it crash or not? > > If it crashes, tell me where by running it inside gdb: > > $ gdb gbi2 > ... > (gdb) run gb.qt.kde.html > ... > (gdb) bt > > Regards, > > -- > Benoit Minisini > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jul 2 11:22:14 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Jul 2006 11:22:14 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <44A6B5C0.5090805@...756...> References: <200607011201.26673.gambas@...1...> <200607011747.17467.gambas@...1...> <44A6B5C0.5090805@...756...> Message-ID: <200607021122.15045.gambas@...1...> On Saturday 01 July 2006 19:49, tetsuo wrote: > Benoit Minisini wrote: > > , you should run gambas2.gambas now. > > roko at ...1494... ~ $ gambas2 > ERROR: #2: Cannot load class 'Stock': Unable to load class file > roko at ...1494... ~ $ gambas2.gambas > ERROR: #2: Cannot load class 'Stock': Unable to load class file > > before installing 1.9.33 i have uninstalled 1.9.32 (always using emerge) > > regards > Please send your complete 'configure/make/make install' output. -- Benoit Minisini From rolf.frogs at ...221... Sun Jul 2 19:00:31 2006 From: rolf.frogs at ...221... (rolf) Date: Sun, 2 Jul 2006 19:00:31 +0200 Subject: [Gambas-user] tableview In-Reply-To: <20060702065503.61380.qmail@...1499...> References: <20060702065503.61380.qmail@...1499...> Message-ID: <200607021900.31388.rolf.frogs@...221...> Hi arie sandjaya: > i need help to finished my program. I hope it helps > i'm build an easy internet cafe software and i will build it fo free, > but i have a big problem with tableview. there is someone can help me to > make my tableview can update data every 1 second without any refresh > effect on my tableview. Did you setup a timerevent (let's say with 2000 microseconds = 2 seconds which is offen enough). When the event is fired up, start the timer again and make a new data selection (from you database) and refresh the tableview. Fine regards rolf From rolf.frogs at ...221... Sun Jul 2 19:05:40 2006 From: rolf.frogs at ...221... (rolf) Date: Sun, 2 Jul 2006 19:05:40 +0200 Subject: [Gambas-user] Online help Message-ID: <200607021905.40240.rolf.frogs@...221...> Hi, I would like to build for a larger programm system a kontext sensitiv help, perhaps with a help button. How can I realize this with one (html) file? Fine regards rolf From jredrejo at ...96... Sun Jul 2 19:20:11 2006 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Sun, 02 Jul 2006 19:20:11 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: References: Message-ID: <1151860811.6347.14.camel@...40...> El s?b, 01-07-2006 a las 12:06 -0700, > Message: 4 > Date: Sat, 1 Jul 2006 15:59:24 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] Release of gambas2 1.9.33 > To: mailing list for gambas users > Message-ID: <200607011559.25411.gambas at ...1...> > Content-Type: text/plain; charset="utf-8" > > On Saturday 01 July 2006 15:14, Lorenzo wrote: > > Benoit, compiling like always, "segmentation fault" in gb.qt.kde component, > > wait instruccions. > > > > > > > > make[5]: se ingresa al directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' > > > > > > > > Creating the information files for gb.qt.kde.html component... > > > > gb.qt.kde.html > > > > make[5]: *** [install-data-hook] Violaci?n de segmento > > > > make[5]: se sale del directorio `/1/gambas2-1.9.33/gb.qt.kde/src/html' > > > > make[4]: *** [install-data-am] Error 2 > > > > > > > > regards > > > > > > > > lorenzo > > > > Which distribution do you use? > > Try 'gbi2 gb.qt.kde.html' manually as root. Does it crash or not? > > If it crashes, tell me where by running it inside gdb: > > $ gdb gbi2 > ... > (gdb) run gb.qt.kde.html > ... > (gdb) bt > > Regards, > > -- > Benoit Minisini > Hi Beno?t, I've been digging a little bit in this error. I have detected it since a month ago and it applies to (at least) all 1.9.x versions since 1.9.19. I haven't tested it in previous versions. The error has raised since a Debian unstable packages upgrade. What I've seen is that: - gb.qt.kde.html needs the execution of preload(argv, "libqt-mt.so.3 libkdecore.so.4") as you've written in the gbi.c code. I think this didn't apply in previous version of Debian packages, and that could explain why the error didn't raise before. - in the preload function of gbi.c you have : execv("/usr/bin/gbi" GAMBAS_VERSION_STRING, argv); and this doesn't work if you are installing gambas in a different path of /usr, as /usr/local or when compiling packages in debian, in a temporary directory. So, the bug seems to be due to the hardcoded path "/usr/bin/gbi" in the preload function of gbi.c Please, tell me if I'm wrong or if you find a fast workaround to avoid this to be able to build new gambas packages for this release. Regards. From sourceforge-raindog2 at ...94... Sun Jul 2 21:42:19 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 2 Jul 2006 15:42:19 -0400 Subject: [Gambas-user] Online help In-Reply-To: <200607021905.40240.rolf.frogs@...221...> References: <200607021905.40240.rolf.frogs@...221...> Message-ID: <200607021542.20006.sourceforge-raindog2@...94...> On Sun July 2 2006 13:05, rolf wrote: > I would like to build for a larger programm system a kontext > sensitiv help, perhaps with a help button. > How can I realize this with one (html) file? I see two ways to do it, if you want to limit it to one file.... 1. Put all the help in one file, and set up anchors for each keyword corresponding to a particular context: And then when you bring up your help browser, specify #OptionsDialog at the end of the URL you use to display the help file. The other way is.... 2. Put all the help in one file, and insert comments indicating the start and end of each context.

Options Dialog

This is the dialog where you set the options. And then, in the help browser you write, you can iterate through the HTML file a line at a time, and display only those lines between the BEGIN and END comments for your desired context. Rob From tetsuo at ...756... Mon Jul 3 09:46:50 2006 From: tetsuo at ...756... (tetsuo) Date: Mon, 03 Jul 2006 09:46:50 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607021122.15045.gambas@...1...> References: <200607011201.26673.gambas@...1...> <200607011747.17467.gambas@...1...> <44A6B5C0.5090805@...756...> <200607021122.15045.gambas@...1...> Message-ID: <44A8CB6A.9060709@...756...> Benoit Minisini wrote: > Please send your complete 'configure/make/make install' output. I was installed 1.9.33 with emerge, and it delete the temporary files after installation process, so i cannot send you the outputs. NOW, finally, installing by hand, without ebuild, it works fine. There was a problem changing by hand the old 1.9.23 ebuild (for versions > 1.9.23 i was simply modified the name of the ebuild, digesting it; only for this version [.33] the executables created make problems.... it is strange!). no more questions! thanks :D tetsuo From gambas at ...1... Mon Jul 3 13:25:13 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Jul 2006 13:25:13 +0200 Subject: [Gambas-user] Gambas 2 roadmap Message-ID: <200607031325.13910.gambas@...1...> Hi, Here is a kind of roadmap for Gambas 2. This is a list of tasks, with short comments on their difficulty. All tasks in the 'Before 2.0' sections are the tasks I'd like to have for the 2.0 release. The other tasks can be added after without problems (for a 2.2 version for example). The SDL and OpenGL parts depends on the work of Laurent Carlier. Tell me about that Laurent! :-) The GTK+ work may be done by Daniel Campos or another people from gnuLinex, or not. The current Workspace class may be replaced by the one made by Fabien Bodard, if it is stable :-) and can do at least the same things. I didn't look at it yet. The "import vb" project feature made by Rob Kudla should be replaced by an external tool I think. The IDE should be able just to import a vb form, but that's all. What do you think Rob? Do you use it again? Do you plan to update it? Otherwise, the bigger invisible change in the IDE that must be done is the redesign of *.component files, and the move of their interpretation in a dedicated component (gb.info). I plan to make interpreter error messages translatable (and maybe compiler error messages too). Do you think it is necessary? I think the more important after all these tasks is the 64 bits port. This will need to break a lot of things, so I prefer to make the 2.0 before. I can't estimate the date of the release at the moment, as I don't know how my life will be since September. I hope to be paid for working on Gambas next year, and so some tasks may become more important than others. I will tell more soon. I want to redesign the web site too. I'd like to know if I can use freely the new 3D mascot made by Marcos Morales, and if he can make more picture and animations with them (for replacing the current moing mascot in the IDE for example). Lastly, the longer task keeps being the documentation... It would be cool if people making components could document them a little :-) Well, I think that's all... Tell me if I forget something! Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-roadmap.pdf Type: application/pdf Size: 46278 bytes Desc: not available URL: From josemar_mariano at ...494... Mon Jul 3 13:54:19 2006 From: josemar_mariano at ...494... (Josemar) Date: Mon, 03 Jul 2006 08:54:19 -0300 Subject: [Gambas-user] thread in gambas In-Reply-To: References: Message-ID: <44A9056B.40508@...494...> hi how to thread in gambas ? tks _______________________________________________________ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ From tetsuo at ...756... Mon Jul 3 13:53:05 2006 From: tetsuo at ...756... (tetsuo) Date: Mon, 03 Jul 2006 13:53:05 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <200607011201.26673.gambas@...1...> References: <200607011201.26673.gambas@...1...> Message-ID: <44A90521.2090008@...756...> Benoit Minisini wrote: > Hi, > > This new release fixes two important bugs in the interpreter: > > [..] > > GB.QT COMPONENT > > * NEW: The Draw.Drawing method now takes four extra optional clipping > parameters, like Draw.Image and Draw.Picture. > * BUG: Windows automatic layout works again. > > [..] when i choose a color (not by system palette) the box with the color table gradients does not show, returning fatal error; so it is aborted the problem is in the "free pallette" tab. (tab-label in italian is named "Libero") error: this application has raised an unexpected error and must abort. [13] Null object. FColorChooser.dwgColorMap_Draw.155 bye From gambas at ...1... Mon Jul 3 13:59:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Jul 2006 13:59:53 +0200 Subject: [Gambas-user] Release of gambas2 1.9.33 In-Reply-To: <44A90521.2090008@...756...> References: <200607011201.26673.gambas@...1...> <44A90521.2090008@...756...> Message-ID: <200607031359.53711.gambas@...1...> On Monday 03 July 2006 13:53, tetsuo wrote: > Benoit Minisini wrote: > > Hi, > > > > This new release fixes two important bugs in the interpreter: > > > > [..] > > > > GB.QT COMPONENT > > > > * NEW: The Draw.Drawing method now takes four extra optional clipping > > parameters, like Draw.Image and Draw.Picture. > > * BUG: Windows automatic layout works again. > > > > [..] > > when i choose a color (not by system palette) the box with the color > table gradients does not show, returning fatal error; so it is aborted > > the problem is in the "free pallette" tab. (tab-label in italian is > named "Libero") > > error: > this application has raised an unexpected error and must abort. > > [13] Null object. > FColorChooser.dwgColorMap_Draw.155 > > bye > This will be fixed in the next release. Regards, -- Benoit Minisini From rolf.frogs at ...221... Mon Jul 3 15:43:00 2006 From: rolf.frogs at ...221... (rolf) Date: Mon, 3 Jul 2006 15:43:00 +0200 Subject: [Gambas-user] Online help In-Reply-To: <200607021542.20006.sourceforge-raindog2@...94...> References: <200607021905.40240.rolf.frogs@...221...> <200607021542.20006.sourceforge-raindog2@...94...> Message-ID: <200607031543.01250.rolf.frogs@...221...> Hi Rob > > I would like to build for a larger programm system a kontext > > sensitiv help, perhaps with a help button. > > How can I realize this with one (html) file? > > I see two ways to do it, if you want to limit it to one file.... > > 1. Put all the help in one file, and set up anchors for each > keyword corresponding to a particular context: > > > > And then when you bring up your help browser, specify > #OptionsDialog at the end of the URL you use to display the help > file. The other way is.... This does not work, because HELPFILE#OptionsDialog will be interpreted as a filename at all. Usually a browser may split the achor part correctly, if the shell passes the complete name to the browser. > 2. Put all the help in one file, and insert comments indicating > the start and end of each context. > > >

Options Dialog

> This is the dialog where you set the options. > > > And then, in the help browser you write, you can iterate through > the HTML file a line at a time, and display only those lines > between the BEGIN and END comments for your desired context. This implies, that I have to write a program by my self (which also has to deal with links inside the document. I hoped that some of the html elements of gambas can do the things I was looking for. Many thanks for your suggestions rolf From sourceforge-raindog2 at ...94... Mon Jul 3 17:05:03 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 3 Jul 2006 11:05:03 -0400 Subject: [Gambas-user] Gambas 2 roadmap In-Reply-To: <200607031325.13910.gambas@...1...> References: <200607031325.13910.gambas@...1...> Message-ID: <200607031105.04108.sourceforge-raindog2@...94...> On Mon July 3 2006 07:25, Benoit Minisini wrote: > The "import vb" project feature made by Rob Kudla should be > replaced by an external tool I think. The IDE should be able > just to import a vb form, but that's all. What do you think > Rob? Do you use it again? Do you plan to update it? Well, seeing as how it was originally an external tool and you had me integrate it into the IDE, splitting it back out shouldn't be too big of a problem ;) And naturally I'll update it so that it works with Gambas 2. I can't give a time frame right now because I'm overbooked till the end of September. > I think the more important after all these tasks is the 64 > bits port. This will need to break a lot of things, so I > prefer to make the 2.0 before. I really look forward to this, as the lack of Gambas is one of my biggest pet-peeves about amd64 Linux! > I can't estimate the date of the release at the moment, as I > don't know how my life will be since September. I hope to be > paid for working on Gambas next year, and so some tasks may > become more important than others. I will tell more soon. This would be wonderful, and I hope it happens too. Rob From gambas at ...1... Mon Jul 3 17:25:55 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Jul 2006 17:25:55 +0200 Subject: [Gambas-user] Gambas 2 roadmap In-Reply-To: <200607031105.04108.sourceforge-raindog2@...94...> References: <200607031325.13910.gambas@...1...> <200607031105.04108.sourceforge-raindog2@...94...> Message-ID: <200607031725.55965.gambas@...1...> On Monday 03 July 2006 17:05, Rob Kudla wrote: > On Mon July 3 2006 07:25, Benoit Minisini wrote: > > The "import vb" project feature made by Rob Kudla should be > > replaced by an external tool I think. The IDE should be able > > just to import a vb form, but that's all. What do you think > > Rob? Do you use it again? Do you plan to update it? > > Well, seeing as how it was originally an external tool and you > had me integrate it into the IDE, splitting it back out > shouldn't be too big of a problem ;) And naturally I'll update > it so that it works with Gambas 2. I can't give a time frame > right now because I'm overbooked till the end of September. > I think you should make a command-line tool in Gambas to convert a vb project, or part of it, and the IDE will use this command-line tool to do some task. If you need, I can make a component to implement the GNU options parser (aka 'getopt'). Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon Jul 3 17:36:00 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 3 Jul 2006 11:36:00 -0400 Subject: [Gambas-user] Gambas 2 roadmap In-Reply-To: <200607031725.55965.gambas@...1...> References: <200607031325.13910.gambas@...1...> <200607031105.04108.sourceforge-raindog2@...94...> <200607031725.55965.gambas@...1...> Message-ID: <200607031136.01455.sourceforge-raindog2@...94...> On Mon July 3 2006 11:25, Benoit Minisini wrote: > I think you should make a command-line tool in Gambas to > convert a vb project, or part of it, and the IDE will use this > command-line tool to do some task. > If you need, I can make a component to implement the GNU > options parser (aka 'getopt'). That would be awesome, and I agree that this would be the best approach. Rob From jredrejo at ...96... Mon Jul 3 17:52:57 2006 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Mon, 03 Jul 2006 17:52:57 +0200 Subject: [Gambas-user] [Gambas-devel] Gambas 2 roadmap In-Reply-To: <200607031325.13910.gambas@...1...> References: <200607031325.13910.gambas@...1...> Message-ID: <1151941977.6075.8.camel@...40...> El lun, 03-07-2006 a las 13:25 +0200, Benoit Minisini escribi?: > Hi, > > Here is a kind of roadmap for Gambas 2. > > This is a list of tasks, with short comments on their difficulty. > > All tasks in the 'Before 2.0' sections are the tasks I'd like to have for the > 2.0 release. > > The other tasks can be added after without problems (for a 2.2 version for > example). > > The SDL and OpenGL parts depends on the work of Laurent Carlier. Tell me about > that Laurent! :-) > > The GTK+ work may be done by Daniel Campos or another people from gnuLinex, or > not. > > The current Workspace class may be replaced by the one made by Fabien Bodard, > if it is stable :-) and can do at least the same things. I didn't look at it > yet. > > The "import vb" project feature made by Rob Kudla should be replaced by an > external tool I think. The IDE should be able just to import a vb form, but > that's all. What do you think Rob? Do you use it again? Do you plan to update > it? > > Otherwise, the bigger invisible change in the IDE that must be done is the > redesign of *.component files, and the move of their interpretation in a > dedicated component (gb.info). > > I plan to make interpreter error messages translatable (and maybe compiler > error messages too). Do you think it is necessary? > > I think the more important after all these tasks is the 64 bits port. This > will need to break a lot of things, so I prefer to make the 2.0 before. > > I can't estimate the date of the release at the moment, as I don't know how my > life will be since September. I hope to be paid for working on Gambas next > year, and so some tasks may become more important than others. I will tell > more soon. > > I want to redesign the web site too. I'd like to know if I can use freely the > new 3D mascot made by Marcos Morales, and if he can make more picture and > animations with them (for replacing the current moing mascot in the IDE for > example). > > Lastly, the longer task keeps being the documentation... It would be cool if > people making components could document them a little :-) > > Well, I think that's all... Tell me if I forget something! > Wow! Those are a lot of things to be done. I only miss one: an avahi component, that together with the d-bus component would allow the developing of collaborative tools in a LAN environment. I also would like to see the report component in 2.0, and not after, but it's clear that there are too many things to be done, and not they all can be done in the short term. Just one last question: I've heard you talk sometimes about the web use of gambas, not to make cgi, but to develop web apps using the IDE. In fact I want to remember that was one of the reasons to do the form component. Do you still have that intention or just gave up ? Regards. From sourceforge-raindog2 at ...94... Mon Jul 3 18:36:48 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 3 Jul 2006 12:36:48 -0400 Subject: [Gambas-user] [Gambas-devel] Gambas 2 roadmap In-Reply-To: <1151941977.6075.8.camel@...40...> References: <200607031325.13910.gambas@...1...> <1151941977.6075.8.camel@...40...> Message-ID: <200607031236.49401.sourceforge-raindog2@...94...> On Mon July 3 2006 11:52, Jos? L. Redrejo Rodr?guez wrote: > Just one last question: I've heard you talk sometimes about > the web use of gambas, not to make cgi, but to develop web > apps using the IDE. In fact I want to remember that was one of > the reasons to do the form component. Do you still have that > intention or just gave up ? It looked to me like that's in the roadmap, at least the beginning stages of it.... "New controls and containers that generate HTML Web pages, with maybe some JavaScript." and then, "How to implement complex controls like TreeView with HTML and JavaScript?" I myself have thought about doing that (in the course of rolling my own perl AJAX "toolkit") where you would use Javascript on the client to dispatch all the events generated by the controls on the form back to the server, run the gambas code there, and send the results back to the web form.... but that'll be pretty difficult to get up to the level of gb.gtk forms, let alone gb.qt. (I've had a hell of a time making a Javascript combo box that relied on the server to provide its list data, so I can only imagine what writing a dynamically populated treeview control will be like....) Rob From gambas at ...1... Mon Jul 3 18:53:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 3 Jul 2006 18:53:47 +0200 Subject: [Gambas-user] [Gambas-devel] Gambas 2 roadmap In-Reply-To: <1151941977.6075.8.camel@...40...> References: <200607031325.13910.gambas@...1...> <1151941977.6075.8.camel@...40...> Message-ID: <200607031853.47668.gambas@...1...> Let's continue the talk only on the user mailing-list... On Monday 03 July 2006 17:52, Jos? L. Redrejo Rodr?guez wrote: > > Wow! Those are a lot of things to be done. I only miss one: an avahi > component, that together with the d-bus component would allow the > developing of collaborative tools in a LAN environment. I don't know what avahi is, except that there is a service related with it on my Mandriva. As I didn't know what it was, I stopped it :-) > I also would like to see the report component in 2.0, and not after, but > it's clear that there are too many things to be done, and not they all > can be done in the short term. The report component needs some changes in the IDE. I want to release the 2.0 as soon as possible, and these changes can go to a 2.2 version. > Just one last question: I've heard you talk sometimes about the web use > of gambas, not to make cgi, but to develop web apps using the IDE. In > fact I want to remember that was one of the reasons to do the form > component. Do you still have that intention or just gave up ? > I didn't give up. I have an idea about how to manage HTTP sessions with gambas processes, but making "web" control (i.e. things that look like controls inside a web page with some JavaScript) is difficult. I never did that, and it depends on the browser client! My goal is allowing making web intranets very easy :-) Performances will not be dedicated to the web, but to a local network. Regards, -- Benoit Minisini From timothy.marshal-nichols at ...247... Mon Jul 3 19:01:05 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 3 Jul 2006 18:01:05 +0100 Subject: [Gambas-user] Online help In-Reply-To: <200607031543.01250.rolf.frogs@...221...> Message-ID: This is the help viewer I use. But it assumes you split you help into a number of files. I do not like the idea of keeping it all in one file. This is OK only if the amount of help is small. This project does search, history and a few other things. There are a few HTML templates in the project that can be used as a starting point for a help system. It also show how you can follow links is a HTML file. You will need to have the component gb.qt.ext in your project. It has been compiled in Gambas 1.9.32. Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of rolf > Sent: Monday, 03 July 2006 14:43 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Online help > > > Hi Rob > > > > I would like to build for a larger programm system a kontext > > > sensitiv help, perhaps with a help button. > > > How can I realize this with one (html) file? > > > > I see two ways to do it, if you want to limit it to one file.... > > > > 1. Put all the help in one file, and set up anchors for each > > keyword corresponding to a particular context: > > > > > > > > And then when you bring up your help browser, specify > > #OptionsDialog at the end of the URL you use to display the help > > file. The other way is.... > This does not work, because HELPFILE#OptionsDialog will be > interpreted as a > filename at all. Usually a browser may split the achor part > correctly, if the > shell passes the complete name to the browser. > > > > 2. Put all the help in one file, and insert comments indicating > > the start and end of each context. > > > > > >

Options Dialog

> > This is the dialog where you set the options. > > > > > > And then, in the help browser you write, you can iterate through > > the HTML file a line at a time, and display only those lines > > between the BEGIN and END comments for your desired context. > > This implies, that I have to write a program by my self (which > also has to > deal with links inside the document. > I hoped that some of the html elements of gambas can do the things I was > looking for. > > Many thanks for your suggestions > rolf > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: HelpViewer.tar Type: application/x-tar Size: 153600 bytes Desc: not available URL: From jredrejo at ...96... Mon Jul 3 19:21:26 2006 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Mon, 03 Jul 2006 19:21:26 +0200 Subject: [Gambas-user] [Gambas-devel] Gambas 2 roadmap (Benoit Minisini) In-Reply-To: References: Message-ID: <1151947287.6075.55.camel@...40...> El lun, 03-07-2006 a las 10:01 -0700, Benoit Minisini escribi?: > > Let's continue the talk only on the user mailing-list... > > On Monday 03 July 2006 17:52, Jos? L. Redrejo Rodr?guez wrote: > > > > Wow! Those are a lot of things to be done. I only miss one: an avahi > > component, that together with the d-bus component would allow the > > developing of collaborative tools in a LAN environment. > > I don't know what avahi is, except that there is a service related with it on > my Mandriva. As I didn't know what it was, I stopped it :-) http://www.avahi.org/ is part of the freedesktop.org project. In a few words, it allows zero-configuration of devices and networked applications. Using avahi an application says that is available and which are the services it provides. So you can just put some networked computers using avahi and the users don't need to know anything about ip addresses or even network addresses. The applications can connect automagically to a shared printer, or to a chat or collaborative editor without needing a central server or ip configuration. You can see here http://www.avahi.org/wiki/Avah4users#SoftwareMakinguseofAvahi some applications using it, but my favourite one is gobby (http://en.wikipedia.org/wiki/Gobby ). > > > I also would like to see the report component in 2.0, and not after, but > > it's clear that there are too many things to be done, and not they all > > can be done in the short term. > > The report component needs some changes in the IDE. I want to release the 2.0 > as soon as possible, and these changes can go to a 2.2 version. Ok. > > > Just one last question: I've heard you talk sometimes about the web use > > of gambas, not to make cgi, but to develop web apps using the IDE. In > > fact I want to remember that was one of the reasons to do the form > > component. Do you still have that intention or just gave up ? > > > > I didn't give up. I have an idea about how to manage HTTP sessions with gambas > processes, but making "web" control (i.e. things that look like controls > inside a web page with some JavaScript) is difficult. I never did that, and > it depends on the browser client! > As Rob Kudla said, ajax could be the easiest solution. Maybe using some of the "standard" (standard in the sense of most used, in more than 50% of non-google apps) ajax frameworks could be the solution. These are free and browser independent, for example http://openrico.org/ http://script.aculo.us/ http://www.xajaxproject.org/ This is not free but is a great sample of what you can do: http://www.activewidgets.com/grid/ When you get boring ;-) take a tour by http://www.ajaxian.com/ to see the most recent news in this topic. > My goal is allowing making web intranets very easy :-) Performances will not > be dedicated to the web, but to a local network. > Obviously that's more than enough and we all would be happy (and proud) to see it. Regards From rolf.frogs at ...221... Mon Jul 3 21:41:10 2006 From: rolf.frogs at ...221... (rolf) Date: Mon, 3 Jul 2006 21:41:10 +0200 Subject: [Gambas-user] Online help In-Reply-To: References: Message-ID: <200607032141.10903.rolf.frogs@...221...> Hi Timothy > This is the help viewer I use. But it assumes you split you help into a > number of files. I do not like the idea of keeping it all in one file. My idea is, to have one complete document, like a manual and when a help was requested, just jump to the corresponding part into this document. So linking seems to be easier without loading another document. > This is OK only if the amount of help is small. This project does search, > history and a few other things. There are a few HTML templates in the > project that can be used as a starting point for a help system. It also > show how you can follow links is a HTML file. > > You will need to have the component gb.qt.ext in your project. It has been > compiled in Gambas 1.9.32. I have Gambas 1.9.31 running and will try your program tomorrow. Thanks rolf From timothy.marshal-nichols at ...247... Mon Jul 3 22:31:55 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 3 Jul 2006 21:31:55 +0100 Subject: [Gambas-user] Online help In-Reply-To: <200607032141.10903.rolf.frogs@...221...> Message-ID: Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of rolf > Sent: Monday, 03 July 2006 20:41 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Online help > > > Hi Timothy > > > This is the help viewer I use. But it assumes you split you help into a > > number of files. I do not like the idea of keeping it all in one file. > > My idea is, to have one complete document, like a manual and when > a help was > requested, just jump to the corresponding part into this > document. So linking > seems to be easier without loading another document. But the code in the example will follow links in a page. You just need to provide the HTML tags: So in the HTML page provide the anchor:

Section Heading

Then you can link to it (the link can be above or below the anchor) from the same page: Go to link It is in the example :-) You just need a bit of HTML. > > > This is OK only if the amount of help is small. This project > does search, > > history and a few other things. There are a few HTML templates in the > > project that can be used as a starting point for a help system. It also > > show how you can follow links is a HTML file. > > > > You will need to have the component gb.qt.ext in your project. > It has been > > compiled in Gambas 1.9.32. > > I have Gambas 1.9.31 running and will try your program tomorrow. > Thanks > rolf > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From stefanopalmeri at ...152... Mon Jul 3 22:11:02 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Mon, 3 Jul 2006 22:11:02 +0200 Subject: [Gambas-user] 1.9.33 help browser still buggy Message-ID: <200607032211.02580.stefanopalmeri@...152...> Hi, Benoit. Some links in the help page still don't work. Here's the output from console: FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/lang/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/comp/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/error/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/def/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/doc/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/howto/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/lang/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/overview/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/name/?en These are the broken links: Section LANGUAGE * Language Index * Components * Error Messages * Lexicon Section DOCUMENTS * Here a list of documents... * How To Section DEVELOPERS All are broken. Regards, Stefano Palmeri -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajish.raju at ...626... Tue Jul 4 11:41:54 2006 From: ajish.raju at ...626... (ajish) Date: 4 Jul 2006 09:41:54 -0000 Subject: [Gambas-user] ajish invites you to join Zorpia Message-ID: <20060704094154.10283.qmail@...1503...> Hi ! Your friend ajish from United States, just invited you to his online photo albums and journals at Zorpia.com. So what is Zorpia? It is an online community that allows you to upload unlimited amount of photos, write journals and make friends. We also have a variety of skins in store for you so that you can customize your homepage freely. Join now for free! Please click the following link to join Zorpia: http://www.zorpia.com/cgi/signup.cgi?invitation_key=194ba77a78b2d5445a086da5b66a8765&referral=ajishraju This message was delivered with the ajish's initiation. If you wish to discontinue receiving invitations from us, please click the following link: http://www.zorpia.com/cgi/signup.cgi?action=optout&email=gambas-user at lists.sourceforge.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From mandrakeron at ...43... Tue Jul 4 15:18:46 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Tue, 4 Jul 2006 06:18:46 -0700 (PDT) Subject: [Gambas-user] MusicPlayer Example Message-ID: <20060704131846.50866.qmail@...1504...> Does the MusicPlayer example play mp3 format? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Tue Jul 4 15:26:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 4 Jul 2006 15:26:18 +0200 Subject: [Gambas-user] MusicPlayer Example In-Reply-To: <20060704131846.50866.qmail@...1504...> References: <20060704131846.50866.qmail@...1504...> Message-ID: <200607041526.18876.gambas@...1...> On Tuesday 04 July 2006 15:18, Ron Gottstein wrote: > Does the MusicPlayer example play mp3 format? > It depends on the SDL library. If your SDL library is compiled with mp3 support, then it will. Otherwise it won't. Regards, -- Benoit Minisini From mandrakeron at ...43... Tue Jul 4 15:25:17 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Tue, 4 Jul 2006 06:25:17 -0700 (PDT) Subject: [Gambas-user] MusicPlayer Example In-Reply-To: <200607041526.18876.gambas@...1...> Message-ID: <20060704132517.59877.qmail@...1306...> How do I complie with mp3 support? Thank you Ron G --- Benoit Minisini wrote: > On Tuesday 04 July 2006 15:18, Ron Gottstein wrote: > > Does the MusicPlayer example play mp3 format? > > > > It depends on the SDL library. If your SDL library > is compiled with mp3 > support, then it will. Otherwise it won't. > > Regards, > > -- > Benoit Minisini > > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From lordheavym at ...626... Tue Jul 4 15:30:02 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 4 Jul 2006 15:30:02 +0200 Subject: [Gambas-user] Gambas 2 roadmap In-Reply-To: <200607031325.13910.gambas@...1...> References: <200607031325.13910.gambas@...1...> Message-ID: <200607041530.03275.> Le lundi 3 juillet 2006 13:25, Benoit Minisini a ?crit?: > Hi, > > Here is a kind of roadmap for Gambas 2. > > This is a list of tasks, with short comments on their difficulty. > > All tasks in the 'Before 2.0' sections are the tasks I'd like to have for > the 2.0 release. > > The other tasks can be added after without problems (for a 2.2 version for > example). > > The SDL and OpenGL parts depends on the work of Laurent Carlier. Tell me > about that Laurent! :-) > It's on the way and it will be fully opengl accelerated (for 2d and of course 3d). Sound part is merged into my "tree", and opengl ouput is working well (except for image and picture support only partially implemented). It will work only on a X client -I've add some xlib code to add missing sdl features- Some example projects will be broken but not too much. If someone is interrested i can post a "tarball" of my "work in (slow and lazy) progress". :-) > The GTK+ work may be done by Daniel Campos or another people from gnuLinex, > or not. ... > > I can't estimate the date of the release at the moment, as I don't know how > my life will be since September. I hope to be paid for working on Gambas > next year, and so some tasks may become more important than others. I will > tell more soon. > > I want to redesign the web site too. I'd like to know if I can use freely > the new 3D mascot made by Marcos Morales, and if he can make more picture > and animations with them (for replacing the current moing mascot in the IDE > for example). > And perhaps the "source code" of the mascot will be great ;-) > Lastly, the longer task keeps being the documentation... It would be cool > if people making components could document them a little :-) > > Well, I think that's all... Tell me if I forget something! > > Regards, Regards, From lordheavym at ...626... Tue Jul 4 15:32:26 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 4 Jul 2006 15:32:26 +0200 Subject: [Gambas-user] MusicPlayer Example In-Reply-To: <20060704132517.59877.qmail@...1306...> References: <20060704132517.59877.qmail@...1306...> Message-ID: <200607041532.26890.lordheavym@...626...> Le mardi 4 juillet 2006 15:25, Ron Gottstein a ?crit?: > How do I complie with mp3 support? > > Thank you > Ron G > It depends on your linux distro ..... There must be some packages available somewhere. Regards, From mandrakeron at ...43... Tue Jul 4 22:45:12 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Tue, 4 Jul 2006 13:45:12 -0700 (PDT) Subject: [Gambas-user] Channel Class Message-ID: <20060704204512.92332.qmail@...1332...> How do you use this class in a code example. I can't seem to get the property or methods to be recognized. Thanks Ron G __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From GonzaloSeals at ...787... Wed Jul 5 01:17:50 2006 From: GonzaloSeals at ...787... (Gonzalo Seals) Date: Wed, 5 Jul 2006 02:17:50 +0300 Subject: [Gambas-user] Your money, nerve-racking Message-ID: <0567191413.20060705021750@...787...> Even if you have no erectin problems SOFT CIAzLIS would help you to make BETTER SE X MORE OFTEN! and to bring unimagnable plesure to her. Just disolve half a pil under your tongue and get ready for action in 15 minutes. The tests showed that the majority of men after taking this medic ation were able to have PERFECT ER ECTI ON during 36 hours! VISIT US, AND GET OUR SPECIAL 70% DISC OUNT OFER! http://eosctu.mixball.info/?76418585 ========== "Set aside," came a voice from the multitude, "even if it be the Law that they died from fright and not from the plague. It was terrifying. "I don't understand how you manage to love a mob of birds that has at it and rejoiced in silence. It led us to the garage door better than any "To begin with " he said heavily, "you've got to understand that a evening, all I had to do was throw off my lab suit and I could head for the sleep in the air, setting a course at night across the offshore wind, appreciate that. Only a stalker could. Tears were streaming down my cheeks, From sourceforge-raindog2 at ...94... Wed Jul 5 04:41:05 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 4 Jul 2006 22:41:05 -0400 Subject: [Gambas-user] Unimagnable plesure Message-ID: <200607042241.05525.sourceforge-raindog2@...94...> I think Sourceforge needs to update its spam filters a bit. Hadn't seen that particular spam in weeks at least, but the Gambas lists are whitelisted for me. :P Rob From brian at ...1334... Wed Jul 5 04:57:11 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Tue, 04 Jul 2006 19:57:11 -0700 (PDT) Subject: [Gambas-user] Unimagnable plesure In-Reply-To: <200607042241.05525.sourceforge-raindog2@...94...> References: <200607042241.05525.sourceforge-raindog2@...94...> Message-ID: <20060704194249.D64386@...1337...> On Tue, 4 Jul 2006, Rob Kudla wrote: > I think Sourceforge needs to update its spam filters a bit. > Hadn't seen that particular spam in weeks at least, but the > Gambas lists are whitelisted for me. :P > > Rob I see that one in various forms quite regularly. If I had the need for that particular drug it sure wouldn't be hard to find a "vendor". Of course the spam advertises black market sources but that's a different issue altogether... Oh yeah, that, and phishing for mid-america bank accounts (and eBay and paypal too). The least the phishers could do is learn that I don't have a mid-america bank account! .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From cjro99 at ...67... Wed Jul 5 14:55:30 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 5 Jul 2006 12:55:30 +0000 Subject: [Gambas-user] ColumnView, ListView Message-ID: please, if anybody send me a ColumnView and ListView example i apreciate that, the Wiki dont helps about that and is so hard to understant how add items in them. Thanks Very much Javier _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From gambas at ...1... Wed Jul 5 15:00:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Jul 2006 15:00:51 +0200 Subject: [Gambas-user] ColumnView, ListView In-Reply-To: References: Message-ID: <200607051500.51777.gambas@...1...> On Wednesday 05 July 2006 14:55, javier romero wrote: > please, if anybody send me a ColumnView and ListView example i apreciate > that, the Wiki dont helps about that and is so hard to understant how add > items in them. > > Thanks Very much > Javier If someone could make an example for ColumnView and ListView, it would be cool :-) -- Benoit Minisini From fidojones at ...805... Wed Jul 5 15:47:08 2006 From: fidojones at ...805... (Lorenzo) Date: Wed, 5 Jul 2006 15:47:08 +0200 Subject: [Gambas-user] ColumnView, ListView In-Reply-To: <200607051500.51777.gambas@...1...> References: <200607051500.51777.gambas@...1...> Message-ID: <393b42c22f6bc8344e3973de522c8358@...40...> Kwirechange, a small aplication who use column view, I hope help you. Regards Lorenzo On Wed, 5 Jul 2006 15:00:51 +0200, Benoit Minisini wrote: > On Wednesday 05 July 2006 14:55, javier romero wrote: >> please, if anybody send me a ColumnView and ListView example i apreciate >> that, the Wiki dont helps about that and is so hard to understant how > add >> items in them. >> >> Thanks Very much >> Javier > > If someone could make an example for ColumnView and ListView, it would be > cool :-) > > -- > Benoit Minisini > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: kwirechange.tgz Type: application/x-gtar Size: 12306 bytes Desc: not available URL: From eilert-sprachen at ...221... Wed Jul 5 15:48:52 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 05 Jul 2006 15:48:52 +0200 Subject: [Gambas-user] ColumnView, ListView In-Reply-To: References: Message-ID: <44ABC344.40104@...221...> javier romero schrieb: > please, if anybody send me a ColumnView and ListView example i apreciate that, the Wiki dont helps about that and is so hard to understant how add items in them. I may help you with ListView. ColumnView will run very similar, but I never used it, so I do not have any experience with it. Imagine you have a string array with several entries, like "names[]" then you might want to fill the ListView "myList" this way: For i = 0 to names.Count - 1 myList.Add(names[i]) Next When you want to clear the list, just use myList.Clear Was this helpful? Regards Rolf From w at ...731... Wed Jul 5 16:20:03 2006 From: w at ...731... (Vincenzo Ing. Virgilio) Date: Wed, 05 Jul 2006 16:20:03 +0200 Subject: [Gambas-user] Gambas RoadMap In-Reply-To: References: Message-ID: <44ABCA93.5000205@...731...> Hi everybody, I usually don't write much publicly, but this time I do becouse I asked and I ask again to Benoit to include as soon as possible the 64bit migration of Gambas. Why, you should ask, becouse your actual computer has not an AMD64 or EM64T processor inside? Becouse your next computer will do. Linux has been the first OS to become available on 64bit system since 1994, the first Alpha porting (note A is Upper Case, it's the Digital processor) On Sparc64 and on PowerPC4 Linux is the only alternative to proprietary OS and often the preferred choice. We will stay with Gambas2 for a long while, like for all stable releases, and if could be interesting some backporting of features to Gambas1, we shall look to the future, and in the Santa Claus bag will be a lot of 64bit PC, right to the end of this year. Linux is almost ready, and I think Gambas 2.0 should. I spoke about this in the past with Benoit, and I hope many of you will ask for. I started trying to accomplish the task, but it's impossible if Benoit don't decide so, and i will respect his decision, after talking about a little! Vincenzo Virgilio From sourceforge-raindog2 at ...94... Wed Jul 5 17:31:16 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 5 Jul 2006 11:31:16 -0400 Subject: [Gambas-user] Gambas RoadMap In-Reply-To: <44ABCA93.5000205@...731...> References: <44ABCA93.5000205@...731...> Message-ID: <200607051131.17728.sourceforge-raindog2@...94...> On Wed July 5 2006 10:20, Vincenzo Ing. Virgilio wrote: > Why, you should ask, becouse your actual computer has not an > AMD64 or EM64T processor inside? > Becouse your next computer will do. I agree.... the cheapest computer I could buy from Wal-Mart when my server died last winter was 64-bit, and when we were shopping for a new laptop (which needs to run Gambas as well as some video programs that aren't 64-bit ready either) it was hard to find a laptop that fit our specs and was 32-bit. (Yes, you can install 32-bit operating systems on AMD64, but as I understand it there's a noticeable performance hit.) But after digging through the source code myself when I was trying to build Gambas2 on my 64-bit machine, I recognize that it is going to be a difficult task. It will require adding a whole layer of abstraction to all Gambas datatypes and internal data structures in order to make a Gambas program compiled on a 32-bit machine run on a 64-bit one and vice versa. It must have been tough getting the endian problem sorted and the 64-bit problem is much bigger. And it will change the Gambas bytecode format, so it needs to be done by Benoit unless one of us can come up with a set of acceptable patches within a few days after a 1.9 series release ;) Rob From linuxseeker at ...626... Fri Jul 7 19:09:22 2006 From: linuxseeker at ...626... (LinuxSeeker) Date: Fri, 7 Jul 2006 20:09:22 +0300 Subject: [Gambas-user] Gambas RoadMap In-Reply-To: <200607051131.17728.sourceforge-raindog2@...94...> References: <44ABCA93.5000205@...731...> <200607051131.17728.sourceforge-raindog2@...94...> Message-ID: > > (Yes, you can > install 32-bit operating systems on AMD64, but as I understand > it there's a noticeable performance hit.) Actually, running 32-bit software on an 64-bit CPU is just like running 32-bit software on a 32-bit CPU, there is no performance hit. -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonardo at ...1237... Sat Jul 8 11:40:30 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 08 Jul 2006 11:40:30 +0200 Subject: [Gambas-user] Global arrays Message-ID: <44AF7D8E.2050006@...1237...> I have a problem I cannot solve. I would like to know how I can implement a global multi-dimensional array (valid for all the project and not just for a procedure or function). Gambas cannot let me declare a multidimensional array at the beginning of a class (it tells that arrays are not allowed there) and permits me only to declare a dinamic array (i.e.: byte[]). But in a program that I'm writing I _need_ a global multidimensional array (name[4,256])... How I can do that? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From leonardo at ...1237... Sat Jul 8 11:44:36 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 08 Jul 2006 11:44:36 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <449E8329.1040303@...1237...> References: <449E8329.1040303@...1237...> Message-ID: <44AF7E84.5070208@...1237...> Leonardo Miliani ha scritto: > Are there sample codes of (de)cypher algorithms in Gambas? > I.E. Blowfish, DES, TEA, etc.? > I ask again if someone has a good implementation of Blowfish and Rijndael for Gambas... I wrote an RC4 algorithm implementation but it was easy to do, because code was very short. But Blowfish and Rijndael have a lot of code and translating a C++ program in Gambas isn't easy for me... :-/ -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From ronstk at ...239... Sat Jul 8 14:36:52 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 8 Jul 2006 14:36:52 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <44AF7D8E.2050006@...1237...> References: <44AF7D8E.2050006@...1237...> Message-ID: <200607081436.53356.ronstk@...239...> On Saturday 08 July 2006 11:40, Leonardo Miliani wrote: > I have a problem I cannot solve. > I would like to know how I can implement a global multi-dimensional > array (valid for all the project and not just for a procedure or function). > Gambas cannot let me declare a multidimensional array at the beginning > of a class (it tells that arrays are not allowed there) and permits me > only to declare a dinamic array (i.e.: byte[]). > But in a program that I'm writing I _need_ a global multidimensional > array (name[4,256])... How I can do that? > The gambas IDE uses also global arrays This is done in the module 'Project'. By making a module 'Leonardo' with the array(s) and other variables _and_ a SUB Main() as start they are available in everey class via Leonardo.arrayname[x,y]. In the Main() you instantiate the current start Form. The IDE code is a good sample with many usable methods as example. ( see in source tree at gambas2-1.9.xx/app/src/gambas2) Ron From gambas at ...1... Sat Jul 8 14:43:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Jul 2006 14:43:29 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <44AF7D8E.2050006@...1237...> References: <44AF7D8E.2050006@...1237...> Message-ID: <200607081443.29910.gambas@...1...> On Saturday 08 July 2006 11:40, Leonardo Miliani wrote: > I have a problem I cannot solve. > I would like to know how I can implement a global multi-dimensional > array (valid for all the project and not just for a procedure or function). > Gambas cannot let me declare a multidimensional array at the beginning > of a class (it tells that arrays are not allowed there) and permits me > only to declare a dinamic array (i.e.: byte[]). > But in a program that I'm writing I _need_ a global multidimensional > array (name[4,256])... How I can do that? In the development version, you can do: PUBLIC MyArray AS Byte[4, 256] Regards, -- Benoit Minisini From leonardo at ...1237... Sat Jul 8 23:08:07 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 08 Jul 2006 23:08:07 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <200607081436.53356.ronstk@...239...> References: <44AF7D8E.2050006@...1237...> <200607081436.53356.ronstk@...239...> Message-ID: <44B01EB7.4030204@...1237...> Ron Onstenk ha scritto: > On Saturday 08 July 2006 11:40, Leonardo Miliani wrote: >> I have a problem I cannot solve. >> I would like to know how I can implement a global multi-dimensional >> array (valid for all the project and not just for a procedure or function). >> Gambas cannot let me declare a multidimensional array at the beginning >> of a class (it tells that arrays are not allowed there) and permits me >> only to declare a dinamic array (i.e.: byte[]). >> But in a program that I'm writing I _need_ a global multidimensional >> array (name[4,256])... How I can do that? >> > > The gambas IDE uses also global arrays > This is done in the module 'Project'. > By making a module 'Leonardo' with the array(s) and other > variables _and_ a SUB Main() as start they are available in > everey class via Leonardo.arrayname[x,y]. > In the Main() you instantiate the current start Form. > > The IDE code is a good sample with many usable methods as example. > ( see in source tree at gambas2-1.9.xx/app/src/gambas2) > I've tried this but it doesn't work... Gambas tells that arrays cannot be declared at the top of the module... maybe I'm wrong with something... I don't know... -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From leonardo at ...1237... Sat Jul 8 23:09:39 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sat, 08 Jul 2006 23:09:39 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <200607081443.29910.gambas@...1...> References: <44AF7D8E.2050006@...1237...> <200607081443.29910.gambas@...1...> Message-ID: <44B01F13.1080402@...1237...> Benoit Minisini ha scritto: > On Saturday 08 July 2006 11:40, Leonardo Miliani wrote: >> I have a problem I cannot solve. >> I would like to know how I can implement a global multi-dimensional >> array (valid for all the project and not just for a procedure or function). >> Gambas cannot let me declare a multidimensional array at the beginning >> of a class (it tells that arrays are not allowed there) and permits me >> only to declare a dinamic array (i.e.: byte[]). >> But in a program that I'm writing I _need_ a global multidimensional >> array (name[4,256])... How I can do that? > > In the development version, you can do: > > PUBLIC MyArray AS Byte[4, 256] > > Regards, > This does work, thank you Benoit :-) Just one more thing to ask you. Do you think to leave this way of declaration inaltered or maybe I would like to se another way to get this? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From gambas at ...1... Sat Jul 8 23:22:35 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Jul 2006 23:22:35 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <44B01F13.1080402@...1237...> References: <44AF7D8E.2050006@...1237...> <200607081443.29910.gambas@...1...> <44B01F13.1080402@...1237...> Message-ID: <200607082322.35673.gambas@...1...> On Saturday 08 July 2006 23:09, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > On Saturday 08 July 2006 11:40, Leonardo Miliani wrote: > >> I have a problem I cannot solve. > >> I would like to know how I can implement a global multi-dimensional > >> array (valid for all the project and not just for a procedure or > >> function). Gambas cannot let me declare a multidimensional array at the > >> beginning of a class (it tells that arrays are not allowed there) and > >> permits me only to declare a dinamic array (i.e.: byte[]). > >> But in a program that I'm writing I _need_ a global multidimensional > >> array (name[4,256])... How I can do that? > > > > In the development version, you can do: > > > > PUBLIC MyArray AS Byte[4, 256] > > > > Regards, > > This does work, thank you Benoit :-) > Just one more thing to ask you. Do you think to leave this way of > declaration inaltered or maybe I would like to se another way to get this? I'm happy with this syntax. Do you want a new one? :-) Note that it is just syntactic sugar for: PUBLIC MyArray AS Byte[] = NEW Byte[](4, 256) Regards, -- Benoit Minisini From sirfabien at ...626... Sat Jul 8 23:24:03 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 8 Jul 2006 23:24:03 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <44AF7E84.5070208@...1237...> References: <449E8329.1040303@...1237...> <44AF7E84.5070208@...1237...> Message-ID: <200607082324.03217.sirfabien@...626...> Le Samedi 8 Juillet 2006 11:44, Leonardo Miliani a ?crit?: > Leonardo Miliani ha scritto: > > Are there sample codes of (de)cypher algorithms in Gambas? > > I.E. Blowfish, DES, TEA, etc.? > > I ask again if someone has a good implementation of Blowfish and > Rijndael for Gambas... > I wrote an RC4 algorithm implementation but it was easy to do, because > code was very short. > But Blowfish and Rijndael have a lot of code and translating a C++ > program in Gambas isn't easy for me... :-/ why translate ?... why don't you make a C++ component ? Fabien From gambas at ...1... Sat Jul 8 23:30:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Jul 2006 23:30:41 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <200607082324.03217.sirfabien@...626...> References: <449E8329.1040303@...1237...> <44AF7E84.5070208@...1237...> <200607082324.03217.sirfabien@...626...> Message-ID: <200607082330.41567.gambas@...1...> On Saturday 08 July 2006 23:24, Fabien Bodard wrote: > Le Samedi 8 Juillet 2006 11:44, Leonardo Miliani a ?crit?: > > Leonardo Miliani ha scritto: > > > Are there sample codes of (de)cypher algorithms in Gambas? > > > I.E. Blowfish, DES, TEA, etc.? > > > > I ask again if someone has a good implementation of Blowfish and > > Rijndael for Gambas... > > I wrote an RC4 algorithm implementation but it was easy to do, because > > code was very short. > > But Blowfish and Rijndael have a lot of code and translating a C++ > > program in Gambas isn't easy for me... :-/ > > why translate ?... why don't you make a C++ component ? > > > Fabien > Yes. These are some interesting functions to put in a component. Maybe there are libraries somewhere that implement these algorithms? -- Benoit Minisini From sourceforge-raindog2 at ...94... Sun Jul 9 00:09:13 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 8 Jul 2006 18:09:13 -0400 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <200607082330.41567.gambas@...1...> References: <449E8329.1040303@...1237...> <200607082324.03217.sirfabien@...626...> <200607082330.41567.gambas@...1...> Message-ID: <200607081809.13300.sourceforge-raindog2@...94...> On Sat July 8 2006 17:30, Benoit Minisini wrote: > Yes. These are some interesting functions to put in a > component. Maybe there are libraries somewhere that implement > these algorithms? Blowfish is implemented in openssl/blowfish.h in libopenssl, and blowfish and rijndael are both implemented in libmcrypt though I can't find include files for that library in Mandriva's repositories. Rob From sirfabien at ...626... Sun Jul 9 00:47:49 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sun, 9 Jul 2006 00:47:49 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <200607081809.13300.sourceforge-raindog2@...94...> References: <449E8329.1040303@...1237...> <200607082330.41567.gambas@...1...> <200607081809.13300.sourceforge-raindog2@...94...> Message-ID: <200607090047.49830.sirfabien@...626...> Le Dimanche 9 Juillet 2006 00:09, Rob Kudla a ?crit?: > On Sat July 8 2006 17:30, Benoit Minisini wrote: > > Yes. These are some interesting functions to put in a > > component. Maybe there are libraries somewhere that implement > > these algorithms? > > Blowfish is implemented in openssl/blowfish.h in libopenssl, and > blowfish and rijndael are both implemented in libmcrypt though I > can't find include files for that library in Mandriva's > repositories. if they are gnu... Maby you need to make you own lib by concatain each needed algorithm in it. Like benoit have done with gb.image (witch contain some of kdegraphics part of code). > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Sun Jul 9 03:15:01 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 8 Jul 2006 21:15:01 -0400 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <200607090047.49830.sirfabien@...626...> References: <449E8329.1040303@...1237...> <200607081809.13300.sourceforge-raindog2@...94...> <200607090047.49830.sirfabien@...626...> Message-ID: <200607082115.02028.sourceforge-raindog2@...94...> On Sat July 8 2006 18:47, Fabien Bodard wrote: > > Blowfish is implemented in openssl/blowfish.h in libopenssl, > > and blowfish and rijndael are both implemented in libmcrypt > if they are gnu... Maby you need to make you own lib by > concatain each needed algorithm in it. Like benoit have done > with gb.image (witch contain some of kdegraphics part of > code). Well, I don't think it'd be a big problem to have a Gambas encryption component that required openssl to be installed, since most people have it installed anyway. That libmcrypt thing seems to be a little more obscure, but I've never used rijndael encryption myself anyway. Rob From leonardo at ...1237... Sun Jul 9 09:58:24 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 09 Jul 2006 09:58:24 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <200607082115.02028.sourceforge-raindog2@...94...> References: <449E8329.1040303@...1237...> <200607081809.13300.sourceforge-raindog2@...94...> <200607090047.49830.sirfabien@...626...> <200607082115.02028.sourceforge-raindog2@...94...> Message-ID: <44B0B720.8090209@...1237...> Rob Kudla ha scritto: > On Sat July 8 2006 18:47, Fabien Bodard wrote: >>> Blowfish is implemented in openssl/blowfish.h in libopenssl, >>> and blowfish and rijndael are both implemented in libmcrypt >> if they are gnu... Maby you need to make you own lib by >> concatain each needed algorithm in it. Like benoit have done >> with gb.image (witch contain some of kdegraphics part of >> code). > > Well, I don't think it'd be a big problem to have a Gambas > encryption component that required openssl to be installed, > since most people have it installed anyway. That libmcrypt > thing seems to be a little more obscure, but I've never used > rijndael encryption myself anyway. > > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > THe main problem is that I know just the basics of C/C+ languages so I'm a little bit afraid when I look at the cipher algorithms in C/C++... The minor problem is that I would like to write my own programs in Gambas, translating several cyphers from C or other languages (i.e. VBasic). I've tried and implemented RC4 and now I'm trying with Twofish and Blowfish but C algorithms are too complex for me and some VBasic implementations that I've found are too radicated in that language to have a clear translation in Gambas (they use DLLs for Windows, particular constants declarations, ecc...) Fabien said that I could create a C component. How could I do? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From leonardo at ...1237... Sun Jul 9 10:03:13 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 09 Jul 2006 10:03:13 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <200607082322.35673.gambas@...1...> References: <44AF7D8E.2050006@...1237...> <200607081443.29910.gambas@...1...> <44B01F13.1080402@...1237...> <200607082322.35673.gambas@...1...> Message-ID: <44B0B841.8020502@...1237...> Benoit Minisini ha scritto: > Note that it is just syntactic sugar for: > > PUBLIC MyArray AS Byte[] = NEW Byte[](4, 256) I didn't know this way to declare arrays.. :-( Benoit, I love Gambas but when I write a program with it I first have to collect a lot of informations about commands, functions and langauage specifications so I waste a lot of time for little things... Is there a _complete_ documentation that I can access to to understand all the commands of this language? The embeddeb help doesn't work well on my system (just 5% of links are active, the other ones are just colored words... :-( ), and the online help is more complete then the embedded one but not complete.. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From gambas at ...1... Sun Jul 9 10:22:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 9 Jul 2006 10:22:46 +0200 Subject: [Gambas-user] Global arrays In-Reply-To: <44B0B841.8020502@...1237...> References: <44AF7D8E.2050006@...1237...> <200607082322.35673.gambas@...1...> <44B0B841.8020502@...1237...> Message-ID: <200607091022.46279.gambas@...1...> On Sunday 09 July 2006 10:03, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > Note that it is just syntactic sugar for: > > > > PUBLIC MyArray AS Byte[] = NEW Byte[](4, 256) > > I didn't know this way to declare arrays.. :-( > Benoit, I love Gambas but when I write a program with it I first have to > collect a lot of informations about commands, functions and langauage > specifications so I waste a lot of time for little things... > Is there a _complete_ documentation that I can access to to understand > all the commands of this language? The embeddeb help doesn't work well > on my system (just 5% of links are active, the other ones are just > colored words... :-( ), and the online help is more complete then the > embedded one but not complete.. The language is entirely described in the online help. It's the rest that is far from being complete! For example, see http://gambasdoc.org/help/lang/arraydecl for array declaration. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Sun Jul 9 11:34:45 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 09 Jul 2006 11:34:45 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <44B0B720.8090209@...1237...> References: <449E8329.1040303@...1237...> <200607081809.13300.sourceforge-raindog2@...94...> <200607090047.49830.sirfabien@...626...> <200607082115.02028.sourceforge-raindog2@...94...> <44B0B720.8090209@...1237...> Message-ID: <1152437686.5724.3.camel@...1496...> Salut, Blowfish this subject was treated, also 2 years ago. If you look in Gambas Archiv you will find. Amicalment Charlie Am Sonntag, den 09.07.2006, 09:58 +0200 schrieb Leonardo Miliani: > Rob Kudla ha scritto: > > On Sat July 8 2006 18:47, Fabien Bodard wrote: > >>> Blowfish is implemented in openssl/blowfish.h in libopenssl, > >>> and blowfish and rijndael are both implemented in libmcrypt > >> if they are gnu... Maby you need to make you own lib by > >> concatain each needed algorithm in it. Like benoit have done > >> with gb.image (witch contain some of kdegraphics part of > >> code). > > > > Well, I don't think it'd be a big problem to have a Gambas > > encryption component that required openssl to be installed, > > since most people have it installed anyway. That libmcrypt > > thing seems to be a little more obscure, but I've never used > > rijndael encryption myself anyway. > > > > Rob > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > THe main problem is that I know just the basics of C/C+ languages so I'm > a little bit afraid when I look at the cipher algorithms in C/C++... > The minor problem is that I would like to write my own programs in > Gambas, translating several cyphers from C or other languages (i.e. > VBasic). I've tried and implemented RC4 and now I'm trying with Twofish > and Blowfish but C algorithms are too complex for me and some VBasic > implementations that I've found are too radicated in that language to > have a clear translation in Gambas (they use DLLs for Windows, > particular constants declarations, ecc...) > > Fabien said that I could create a C component. How could I do? > From carsten at ...498... Sun Jul 9 13:55:40 2006 From: carsten at ...498... (Carsten Olsen) Date: Sun, 09 Jul 2006 13:55:40 +0200 Subject: [Gambas-user] gbx2: too many project files. Message-ID: <44B0EEBC.1060006@...498...> I have compiles Gambas2-1.9.33 without problems, but when I try to startet I got this message "gbx2: too many project files." Can anybody help? Best Regards Carsten Olsen -------------- next part -------------- A non-text attachment was scrubbed... Name: carsten.vcf Type: text/x-vcard Size: 257 bytes Desc: not available URL: From rolf.frogs at ...221... Sun Jul 9 19:58:45 2006 From: rolf.frogs at ...221... (rolf) Date: Sun, 9 Jul 2006 19:58:45 +0200 Subject: [Gambas-user] Problem with Postgresql Message-ID: <200607091958.45305.rolf.frogs@...221...> Hi, I need to add a column to a postgres table (which name starts with an underscore) and and have to modify a few constraints. With this actions the following problems araise: - Postgresql 8.1 always crashes when a "serial" datatyp is requested. The log file says something like "bad UTF-8" code. The server crashes with a message like "ERROR-STACK EXCEED" - CODE: query1 = "alter table _" & TextBox.Text & " add column id serial not null" res1 = hDB.Exec(query1) - The same happens, if a primary key should be set with a code like: query1 = "ALTER TABLE ONLY _" & TextBox.Text & " ADD CONSTRAINT X" & TextBox.Text & "_pkey PRIMARY KEY (id)" res1 = hDB.Exec(query1) Of couse I checked the output of the "direct window" with the setting: "DB.Debug = true" A copy of the output line into the psql-Client works without any problem! At least I don't know, if it is a gambas or a postgresql problem. Many thanks. Rolf From leo.barnhoorn at ...246... Sun Jul 9 22:16:48 2006 From: leo.barnhoorn at ...246... (Leo Barnhoorn) Date: Sun, 9 Jul 2006 22:16:48 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <44B0B720.8090209@...1237...> Message-ID: Hello Leo, I hope you can use this Gambas code. Regards, Leo. -----Oorspronkelijk bericht----- Van: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Namens Leonardo Miliani Verzonden: zondag 9 juli 2006 9:58 Aan: mailing list for gambas users Onderwerp: Re: [Gambas-user] Cypher algorithms Rob Kudla ha scritto: > On Sat July 8 2006 18:47, Fabien Bodard wrote: >>> Blowfish is implemented in openssl/blowfish.h in libopenssl, >>> and blowfish and rijndael are both implemented in libmcrypt >> if they are gnu... Maby you need to make you own lib by >> concatain each needed algorithm in it. Like benoit have done >> with gb.image (witch contain some of kdegraphics part of >> code). > > Well, I don't think it'd be a big problem to have a Gambas > encryption component that required openssl to be installed, > since most people have it installed anyway. That libmcrypt > thing seems to be a little more obscure, but I've never used > rijndael encryption myself anyway. > > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > THe main problem is that I know just the basics of C/C+ languages so I'm a little bit afraid when I look at the cipher algorithms in C/C++... The minor problem is that I would like to write my own programs in Gambas, translating several cyphers from C or other languages (i.e. VBasic). I've tried and implemented RC4 and now I'm trying with Twofish and Blowfish but C algorithms are too complex for me and some VBasic implementations that I've found are too radicated in that language to have a clear translation in Gambas (they use DLLs for Windows, particular constants declarations, ecc...) Fabien said that I could create a C component. How could I do? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7-7-2006 -------------- next part -------------- A non-text attachment was scrubbed... Name: Crc162432.tar Type: application/x-tar Size: 134144 bytes Desc: not available URL: From leo.barnhoorn at ...246... Sun Jul 9 22:20:55 2006 From: leo.barnhoorn at ...246... (Leo Barnhoorn) Date: Sun, 9 Jul 2006 22:20:55 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <44B0B720.8090209@...1237...> Message-ID: Hello Leo, I hope you can use this Gambas code. Regards, Leo. -----Oorspronkelijk bericht----- Van: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Namens Leonardo Miliani Verzonden: zondag 9 juli 2006 9:58 Aan: mailing list for gambas users Onderwerp: Re: [Gambas-user] Cypher algorithms Rob Kudla ha scritto: > On Sat July 8 2006 18:47, Fabien Bodard wrote: >>> Blowfish is implemented in openssl/blowfish.h in libopenssl, >>> and blowfish and rijndael are both implemented in libmcrypt >> if they are gnu... Maby you need to make you own lib by >> concatain each needed algorithm in it. Like benoit have done >> with gb.image (witch contain some of kdegraphics part of >> code). > > Well, I don't think it'd be a big problem to have a Gambas > encryption component that required openssl to be installed, > since most people have it installed anyway. That libmcrypt > thing seems to be a little more obscure, but I've never used > rijndael encryption myself anyway. > > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > THe main problem is that I know just the basics of C/C+ languages so I'm a little bit afraid when I look at the cipher algorithms in C/C++... The minor problem is that I would like to write my own programs in Gambas, translating several cyphers from C or other languages (i.e. VBasic). I've tried and implemented RC4 and now I'm trying with Twofish and Blowfish but C algorithms are too complex for me and some VBasic implementations that I've found are too radicated in that language to have a clear translation in Gambas (they use DLLs for Windows, particular constants declarations, ecc...) Fabien said that I could create a C component. How could I do? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7-7-2006 -------------- next part -------------- A non-text attachment was scrubbed... Name: gCrypto2.tar Type: application/x-tar Size: 123388 bytes Desc: not available URL: From leo.barnhoorn at ...246... Sun Jul 9 22:29:28 2006 From: leo.barnhoorn at ...246... (Leo Barnhoorn) Date: Sun, 9 Jul 2006 22:29:28 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: <44B0B720.8090209@...1237...> Message-ID: Hello Leo, I have send more Gambas code to the gambas list but it is on hold because it is to big. This is Gambas code Blowfish and more. I hoop they will (the list moderator) give his approval Regards, Leo. -----Oorspronkelijk bericht----- Van: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]Namens Leonardo Miliani Verzonden: zondag 9 juli 2006 9:58 Aan: mailing list for gambas users Onderwerp: Re: [Gambas-user] Cypher algorithms Rob Kudla ha scritto: > On Sat July 8 2006 18:47, Fabien Bodard wrote: >>> Blowfish is implemented in openssl/blowfish.h in libopenssl, >>> and blowfish and rijndael are both implemented in libmcrypt >> if they are gnu... Maby you need to make you own lib by >> concatain each needed algorithm in it. Like benoit have done >> with gb.image (witch contain some of kdegraphics part of >> code). > > Well, I don't think it'd be a big problem to have a Gambas > encryption component that required openssl to be installed, > since most people have it installed anyway. That libmcrypt > thing seems to be a little more obscure, but I've never used > rijndael encryption myself anyway. > > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > THe main problem is that I know just the basics of C/C+ languages so I'm a little bit afraid when I look at the cipher algorithms in C/C++... The minor problem is that I would like to write my own programs in Gambas, translating several cyphers from C or other languages (i.e. VBasic). I've tried and implemented RC4 and now I'm trying with Twofish and Blowfish but C algorithms are too complex for me and some VBasic implementations that I've found are too radicated in that language to have a clear translation in Gambas (they use DLLs for Windows, particular constants declarations, ecc...) Fabien said that I could create a C component. How could I do? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7-7-2006 From rolf.frogs at ...221... Mon Jul 10 10:54:41 2006 From: rolf.frogs at ...221... (rolf) Date: Mon, 10 Jul 2006 10:54:41 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607091958.45305.rolf.frogs@...221...> References: <200607091958.45305.rolf.frogs@...221...> Message-ID: <200607101054.41543.rolf.frogs@...221...> Hi, > I need to add a column to a postgres table (which name starts with an > underscore) and and have to modify a few constraints. With this actions the > following problems araise: > - Postgresql 8.1 always crashes when a "serial" datatyp is requested. The > log file says something like "bad UTF-8" code. The server crashes with a > message like "ERROR-STACK EXCEED" > > - CODE: > query1 = "alter table _" & TextBox.Text & " add column id serial not > null" res1 = hDB.Exec(query1) > > - The same happens, if a primary key should be set with a code like: > query1 = "ALTER TABLE ONLY _" & TextBox.Text & > " ADD CONSTRAINT X" & TextBox.Text & > "_pkey PRIMARY KEY (id)" > res1 = hDB.Exec(query1) > > Of couse I checked the output of the "direct window" with the > setting: "DB.Debug = true" > > A copy of the output line into the psql-Client works without any problem! > > At least I don't know, if it is a gambas or a postgresql problem. I use GAMBA 1.9.31 and PostgreSQL 8.1.4 It seems to be a problem of postgresql and no real solution. Bye Rolf From leonardo at ...1237... Mon Jul 10 11:07:40 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 10 Jul 2006 11:07:40 +0200 Subject: [Gambas-user] Cypher algorithms In-Reply-To: References: Message-ID: <44B218DC.7060507@...1237...> Leo Barnhoorn ha scritto: > Hello Leo, > > I have send more Gambas code to the gambas list but it is on hold because it > is to big. > This is Gambas code Blowfish and more. > > I hoop they will (the list moderator) give his approval > > Regards, > Leo. > > > -----Oorspronkelijk bericht----- > Van: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]Namens Leonardo > Miliani > Verzonden: zondag 9 juli 2006 9:58 > Aan: mailing list for gambas users > Onderwerp: Re: [Gambas-user] Cypher algorithms > > > Rob Kudla ha scritto: >> On Sat July 8 2006 18:47, Fabien Bodard wrote: >>>> Blowfish is implemented in openssl/blowfish.h in libopenssl, >>>> and blowfish and rijndael are both implemented in libmcrypt >>> if they are gnu... Maby you need to make you own lib by >>> concatain each needed algorithm in it. Like benoit have done >>> with gb.image (witch contain some of kdegraphics part of >>> code). >> Well, I don't think it'd be a big problem to have a Gambas >> encryption component that required openssl to be installed, >> since most people have it installed anyway. That libmcrypt >> thing seems to be a little more obscure, but I've never used >> rijndael encryption myself anyway. >> >> Rob >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job > easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > THe main problem is that I know just the basics of C/C+ languages so I'm > a little bit afraid when I look at the cipher algorithms in C/C++... > The minor problem is that I would like to write my own programs in > Gambas, translating several cyphers from C or other languages (i.e. > VBasic). I've tried and implemented RC4 and now I'm trying with Twofish > and Blowfish but C algorithms are too complex for me and some VBasic > implementations that I've found are too radicated in that language to > have a clear translation in Gambas (they use DLLs for Windows, > particular constants declarations, ecc...) > > Fabien said that I could create a C component. How could I do? > > -- > Ciao. > Leo > > Visita il mio sito personale: www.leonardomiliani.com > e-mail: leonardo at ...1237... > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7-7-2006 > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks Leo for your code. Your Blowfish class will help me to finish translating the original C++ Blowfish algorithm... If you need, I translated theRC4 algoirthm in a project that de/crypts files of any type. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... -------------- next part -------------- A non-text attachment was scrubbed... Name: Cifra_RC4plus.tar.bz2 Type: application/x-bzip Size: 12588 bytes Desc: not available URL: From ronstk at ...239... Mon Jul 10 11:32:36 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 10 Jul 2006 11:32:36 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607091958.45305.rolf.frogs@...221...> References: <200607091958.45305.rolf.frogs@...221...> Message-ID: <200607101132.36389.ronstk@...239...> On Sunday 09 July 2006 19:58, rolf wrote: > - CODE: ? > ? query1 = "alter table _" & TextBox.Text & " add column id serial not null" ? > ? res1 = hDB.Exec(quer > if a primary key should be set with a code like: > ? ? query1 = "ALTER TABLE ONLY _" & TextBox.Text & > ? ? ? ? ? ? ? ? ? ? ?" ADD CONSTRAINT X" & TextBox.Text & > ? ? ? ? ? ? ? ? ? ? ?"_pkey PRIMARY KEY (id)" > ? ?res1 = hDB.Exec(query1) > What are those underscores? In example on postgres site: 'ALTER TABLE table_name ADD' Leave those underscore away or do you have really a table starting with '_' ? " ADD CONSTRAINT X" & TextBox.Text & "_pkey PRIMARY KEY (id)" This looks as 'CONSTRAINT Xmyname_pkey PRIMARY' are you sure this correct? Maybe also case sensitive can be a problem. Ron From rolf.frogs at ...221... Mon Jul 10 16:06:17 2006 From: rolf.frogs at ...221... (rolf) Date: Mon, 10 Jul 2006 16:06:17 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607101132.36389.ronstk@...239...> References: <200607091958.45305.rolf.frogs@...221...> <200607101132.36389.ronstk@...239...> Message-ID: <200607101606.18104.rolf.frogs@...221...> Hi Ron > > - CODE: ? > > ? query1 = "alter table _" & TextBox.Text & " add column id serial not > > null" ? res1 = hDB.Exec(quer<1) > > > > if a primary key should be set with a code like: > > ? ? query1 = "ALTER TABLE ONLY _" & TextBox.Text & > > ? ? ? ? ? ? ? ? ? ? ?" ADD CONSTRAINT X" & TextBox.Text & > > ? ? ? ? ? ? ? ? ? ? ?"_pkey PRIMARY KEY (id)" > > ? ?res1 = hDB.Exec(query1) > > What are those underscores? They are used, because the tablename is a number (of a bank account). If I use pure numbered tablenames they always must be double quoted with mouch more trouble. > In example on postgres site: 'ALTER TABLE table_name ADD' All the comands work in the psql-shell without any error! I printed out the commands in a file and passed this file as input to psql and again all commands will execute as expected without any error. > > Leave those underscore away or do you have really a table starting with '_' > ? > > " ADD CONSTRAINT X" & TextBox.Text & "_pkey PRIMARY KEY (id)" > This looks as 'CONSTRAINT Xmyname_pkey PRIMARY' are you sure this correct? > > Maybe also case sensitive can be a problem. Postgres is case sensitive in table, column and database names, not in sql commands. I found a discussion on the postgres mailing list about this problem - with version 8.1.1 - I use 8.1.4 - but in spanish, which I don't understand. Because all the trouble making sql commands work in the psql-shell I am not shure, if gambas is linked against the right libraries or uses the right function calls. I recompiled gambas (using 1.9.31 because the documentation is still usable) and will test it. Many thanks for your help. Rolf From joe1962 at ...626... Mon Jul 10 17:05:31 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 10 Jul 2006 11:05:31 -0400 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607101606.18104.rolf.frogs@...221...> References: <200607091958.45305.rolf.frogs@...221...> <200607101132.36389.ronstk@...239...> <200607101606.18104.rolf.frogs@...221...> Message-ID: <6c208f950607100805hd66a1c1xbb9dba788678b2b5@...627...> On 7/10/06, rolf wrote: > > I found a discussion on the postgres mailing list about this problem - with > version 8.1.1 - I use 8.1.4 - but in spanish, which I don't understand. > Maybe I can help you with that ;) post the link... Regards, Joe1962 From gambas at ...1... Mon Jul 10 18:39:24 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Jul 2006 18:39:24 +0200 Subject: [Gambas-user] gbx2: too many project files. In-Reply-To: <44B0EEBC.1060006@...498...> References: <44B0EEBC.1060006@...498...> Message-ID: <200607101839.24424.gambas@...1...> On Sunday 09 July 2006 13:55, Carsten Olsen wrote: > I have compiles Gambas2-1.9.33 without problems, but when I try to > startet I got this message "gbx2: too many project files." > > Can anybody help? > > Best Regards > Carsten Olsen What do you try exactly? Try to remove the symbolic links created in /usr/bin by a previous install, and redo 'make install'. Regards, -- Benoit Minisini From ronstk at ...239... Mon Jul 10 19:35:45 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 10 Jul 2006 19:35:45 +0200 Subject: [Gambas-user] gbx2: too many project files. In-Reply-To: <44B0EEBC.1060006@...498...> References: <44B0EEBC.1060006@...498...> Message-ID: <200607101935.45220.ronstk@...239...> On Sunday 09 July 2006 13:55, Carsten Olsen wrote: > I have compiles Gambas2-1.9.33 without problems, but when I try to > startet I got this message "gbx2: too many project files." > > Can anybody help? > > Best Regards > Carsten Olsen > Goes it wrong on start of gambas or a project made in the past ? For the last case open the forms and move one of the controls a little. Then save the form. Do it for all the forms in that project. Then Compile all and try again to start the project. I had this problem also once after upgrade gambas on old project. Ron From ronstk at ...239... Mon Jul 10 19:43:39 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 10 Jul 2006 19:43:39 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607101606.18104.rolf.frogs@...221...> References: <200607091958.45305.rolf.frogs@...221...> <200607101132.36389.ronstk@...239...> <200607101606.18104.rolf.frogs@...221...> Message-ID: <200607101943.39319.ronstk@...239...> On Monday 10 July 2006 16:06, rolf wrote: > > What are those underscores? > > They are used, because the tablename is a number (of a bank account). If I use > pure numbered tablenames they always must be double quoted with mouch more > trouble. > OK, nice trick to circumvent the quotes. But I will use a alfa letter in front with or without undescore. Simple because the underscore is mostly used as seperator for words in names. And most languages wants alfa as first character, dispite postgres accept it. I'm not covinced other databases accept the underscare as first. And maybe the gambas interface to postgres also does not accept it even if postrges does it well. Ron From patrick.jacquot at ...1387... Tue Jul 11 10:03:42 2006 From: patrick.jacquot at ...1387... (Patrick Jacquot) Date: Tue, 11 Jul 2006 10:03:42 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <200607101606.18104.rolf.frogs@...221...> References: <200607091958.45305.rolf.frogs@...221...> <200607101132.36389.ronstk@...239...> <200607101606.18104.rolf.frogs@...221...> Message-ID: <44B35B5E.5040509@...1387...> rolf wrote: >Hi Ron > > > >>>- CODE: >>> query1 = "alter table _" & TextBox.Text & " add column id serial not >>>null" res1 = hDB.Exec(quer<1) >>> >>>if a primary key should be set with a code like: >>> query1 = "ALTER TABLE ONLY _" & TextBox.Text & >>> " ADD CONSTRAINT X" & TextBox.Text & >>> "_pkey PRIMARY KEY (id)" >>> res1 = hDB.Exec(query1) >>> >>> >>What are those underscores? >> >> > >They are used, because the tablename is a number (of a bank account). If I use >pure numbered tablenames they always must be double quoted with mouch more >trouble. > > > >>In example on postgres site: 'ALTER TABLE table_name ADD' >> >> > >All the comands work in the psql-shell without any error! I printed out the >commands in a file and passed this file as input to psql and again all >commands will execute as expected without any error. > > > >>Leave those underscore away or do you have really a table starting with '_' >>? >> >>" ADD CONSTRAINT X" & TextBox.Text & "_pkey PRIMARY KEY (id)" >>This looks as 'CONSTRAINT Xmyname_pkey PRIMARY' are you sure this correct? >> >>Maybe also case sensitive can be a problem. >> >> > >Postgres is case sensitive in table, column and database names, not in sql >commands. > >I found a discussion on the postgres mailing list about this problem - with >version 8.1.1 - I use 8.1.4 - but in spanish, which I don't understand. > >Because all the trouble making sql commands work in the psql-shell I am not >shure, if gambas is linked against the right libraries or uses the right >function calls. I recompiled gambas (using 1.9.31 because the documentation >is still usable) and will test it. > >Many thanks for your help. >Rolf > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Wouldn't it be better to use one and only one table for all the bank accounts, and add the account number to the identifiant of that table? Cordialement -- Patrick From rolf.frogs at ...221... Tue Jul 11 10:26:02 2006 From: rolf.frogs at ...221... (rolf) Date: Tue, 11 Jul 2006 10:26:02 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <6c208f950607100805hd66a1c1xbb9dba788678b2b5@...627...> References: <200607091958.45305.rolf.frogs@...221...> <200607101606.18104.rolf.frogs@...221...> <6c208f950607100805hd66a1c1xbb9dba788678b2b5@...627...> Message-ID: <200607111026.02491.rolf.frogs@...221...> Hallo Jose > > I found a discussion on the postgres mailing list about this problem - > > with version 8.1.1 - I use 8.1.4 - but in spanish, which I don't > > understand. > > Maybe I can help you with that ;) post the link... Thank you for your help. Here is the link: http://archives.postgresql.org/pgsql-es-ayuda/2006-06/msg00528.php Thanks again Rolf From rolf.frogs at ...221... Tue Jul 11 12:33:57 2006 From: rolf.frogs at ...221... (rolf) Date: Tue, 11 Jul 2006 12:33:57 +0200 Subject: [Gambas-user] Problem with Postgresql In-Reply-To: <44B35B5E.5040509@...1387...> References: <200607091958.45305.rolf.frogs@...221...> <200607101606.18104.rolf.frogs@...221...> <44B35B5E.5040509@...1387...> Message-ID: <200607111233.57679.rolf.frogs@...221...> Hi Patrick > >Hi Ron > > > >>>- CODE: > >>> query1 = "alter table _" & TextBox.Text & " add column id serial not > >>>null" res1 = hDB.Exec(quer<1) > >>> > >>>if a primary key should be set with a code like: > >>> query1 = "ALTER TABLE ONLY _" & TextBox.Text & > >>> " ADD CONSTRAINT X" & TextBox.Text & > >>> "_pkey PRIMARY KEY (id)" > >>> res1 = hDB.Exec(query1) > >> > >>What are those underscores? > > > >They are used, because the tablename is a number (of a bank account). If I > > use pure numbered tablenames they always must be double quoted with mouch > > more trouble. > > > >>In example on postgres site: 'ALTER TABLE table_name ADD' > > > >All the comands work in the psql-shell without any error! I printed out > > the commands in a file and passed this file as input to psql and again > > all commands will execute as expected without any error. > > > >>Leave those underscore away or do you have really a table starting with > >> '_' ? > >> > >>" ADD CONSTRAINT X" & TextBox.Text & "_pkey PRIMARY KEY (id)" > >>This looks as 'CONSTRAINT Xmyname_pkey PRIMARY' are you sure this > >> correct? > >> > >>Maybe also case sensitive can be a problem. > > > >Postgres is case sensitive in table, column and database names, not in sql > >commands. > > > >I found a discussion on the postgres mailing list about this problem - > > with version 8.1.1 - I use 8.1.4 - but in spanish, which I don't > > understand. > > > >Because all the trouble making sql commands work in the psql-shell I am > > not shure, if gambas is linked against the right libraries or uses the > > right function calls. I recompiled gambas (using 1.9.31 because the > > documentation is still usable) and will test it. > > > >Many thanks for your help. > >Rolf > > > > Wouldn't it be better to use one and only one table > for all the bank accounts, > and add the account number to the identifiant of that table? I did it this way in a previous version, but it seems more clear to do it in the new way and it is more easy to handle the data entries. The problem is not the name of the table but how to add an autoincrement field as a primary key from within gambas. I solved the problem by generating a file with the SQL statements and a shell script which send the file to the database and execute this shell skript with a "SHELL" command from within gambas. > Cordialement Thank you for your help Rolf From cjro99 at ...67... Tue Jul 11 15:09:33 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 11 Jul 2006 13:09:33 +0000 Subject: [Gambas-user] Components Message-ID: I have many questions about components: About GridView 1) There is some way to select a Row in a Grid View 2) There is some way to change the the backcolor and the forecolor of a cell in a GridView? 3) There is some way to put Titles in a GridView? 4) There is some way to now the cell or the row selected un a GridView? 5) There is some way to edit a cell in a GridView About ColumnView 1) There is some way to not show Titles? I'm use Gambas estable 1.0.15 Thanks Javier _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From carsten at ...498... Tue Jul 11 16:42:56 2006 From: carsten at ...498... (Carsten Olsen) Date: Tue, 11 Jul 2006 16:42:56 +0200 Subject: [Gambas-user] gbx2: too many project files. In-Reply-To: <200607101935.45220.ronstk@...239...> References: <44B0EEBC.1060006@...498...> <200607101935.45220.ronstk@...239...> Message-ID: <44B3B8F0.2060000@...498...> I got the error, when I start Gambas2! kind regards Carsten Olsen Ron Onstenk wrote: > On Sunday 09 July 2006 13:55, Carsten Olsen wrote: > >> I have compiles Gambas2-1.9.33 without problems, but when I try to >> startet I got this message "gbx2: too many project files." >> >> Can anybody help? >> >> Best Regards >> Carsten Olsen >> >> > > Goes it wrong on start of gambas or a project made in the past ? > > For the last case open the forms and move one of the controls a little. > Then save the form. Do it for all the forms in that project. > Then Compile all and try again to start the project. > > I had this problem also once after upgrade gambas on old project. > > Ron > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: carsten.vcf Type: text/x-vcard Size: 269 bytes Desc: not available URL: From gambas at ...1... Tue Jul 11 19:15:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Jul 2006 19:15:39 +0200 Subject: [Gambas-user] gbx2: too many project files. In-Reply-To: <44B3B8F0.2060000@...498...> References: <44B0EEBC.1060006@...498...> <200607101935.45220.ronstk@...239...> <44B3B8F0.2060000@...498...> Message-ID: <200607111915.39914.gambas@...1...> On Tuesday 11 July 2006 16:42, Carsten Olsen wrote: > I got the error, when I start Gambas2! > > kind regards > Carsten Olsen > What do you get if you type 'which gambas2' ? What is the first line of this 'gambas2' file ? -- Benoit Minisini From ronstk at ...239... Tue Jul 11 19:20:48 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 11 Jul 2006 19:20:48 +0200 Subject: [Gambas-user] Components In-Reply-To: References: Message-ID: <200607111920.49348.ronstk@...239...> On Tuesday 11 July 2006 15:09, javier romero wrote: > About GridView > > 1) There is some way to select a Row in a Grid View gridview1.Current is the current selected by click mouse. Gridview1.Item is the row selected by Move**** methods. > 2) There is some way to change the the backcolor and the forecolor of a cell in a GridView? Simple no. However once has made a class to decorate the cells of gridview/columnview I think it was Charlie or Daniel. long time ago. > 3) There is some way to put Titles in a GridView? ? what Titles you think off? If you mean header as in Tableview then No You can use the first row :) > 4) There is some way to now the cell or the row selected un a GridView? GridView.Current.Row & GridView1.Current.Column > 5) There is some way to edit a cell in a GridView > hGrid is a Gridview object GRD??? are constants used by me for the row hGrid[iRow, Column].Text = "Yes" hGrid[iRow, Column].Picture = picture.Load("img/16/checked.png") WITH hGrid col = .Columns.Count .Columns.Count = col + 1 .columns[col].width = 115 hGrid[GRDDBS, col].Text = mglobal.sDBinProc hGrid[GRDTBL, col].Text = mglobal.sTBLinProc hGrid[GRDVIS, col].Text = "Yes" hGrid[GRDVIS, col].Picture = picture.Load("img/16/checked.png") hGrid.Rows[GRDDBS].Height = hLabel.Rows[GRDDBS].Height hGrid.Rows[GRDTBL].Height = hLabel.Rows[GRDTBL].Height hGrid.Rows[GRDGRP].Height = hLabel.Rows[GRDGRP].Height END WITH Hope this give some help. Ron From leonardo at ...1237... Tue Jul 11 22:16:36 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 11 Jul 2006 22:16:36 +0200 Subject: [Gambas-user] Randomize Message-ID: <44B40724.2000304@...1237...> Is it possible to setup the random numbers generator with a seed? In other languages this is done by randomize (x) where x is the seed. Using this command, you are sure that the generator provides the same numbers every time it is set up with the same seed. This is useful for example in cryptography, where you can add more security to a public key using a seed to interpolate the public key bits with random numbers to obtain any time differents encryptions of same datas and same keys. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... z From gambas at ...1... Tue Jul 11 22:27:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Jul 2006 22:27:07 +0200 Subject: [Gambas-user] Randomize In-Reply-To: <44B40724.2000304@...1237...> References: <44B40724.2000304@...1237...> Message-ID: <200607112227.08067.gambas@...1...> On Tuesday 11 July 2006 22:16, Leonardo Miliani wrote: > Is it possible to setup the random numbers generator with a seed? > In other languages this is done by randomize (x) where x is the seed. > Using this command, you are sure that the generator provides the same > numbers every time it is set up with the same seed. > This is useful for example in cryptography, where you can add more > security to a public key using a seed to interpolate the public key bits > with random numbers to obtain any time differents encryptions of same > datas and same keys. If it is useful, I will add it. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Tue Jul 11 23:30:47 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 11 Jul 2006 23:30:47 +0200 Subject: [Gambas-user] Components In-Reply-To: <200607111920.49348.ronstk@...239...> References: <200607111920.49348.ronstk@...239...> Message-ID: <1152653447.5277.4.camel@...1496...> Am Dienstag, den 11.07.2006, 19:20 +0200 schrieb Ron Onstenk: > On Tuesday 11 July 2006 15:09, javier romero wrote: > > About GridView > > > > 1) There is some way to select a Row in a Grid View > gridview1.Current is the current selected by click mouse. > Gridview1.Item is the row selected by Move**** methods. > > > > 2) There is some way to change the the backcolor and the forecolor of a cell in a GridView? > Simple no. > However once has made a class to decorate the cells of gridview/columnview > I think it was Charlie or Daniel. long time ago. > Salut, I made the attached TableView Demo Class, Daniel gave the the saveing to XML. If ever it can help you. But I'V never ran it unter the 1.9.x series and the package dates from january 2005 Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: XTableView-0.0.12.tar.gz Type: application/x-compressed-tar Size: 30178 bytes Desc: not available URL: From rohnny at ...1248... Thu Jul 13 10:06:56 2006 From: rohnny at ...1248... (R. Stormo) Date: Thu, 13 Jul 2006 01:06:56 -0700 (PDT) Subject: [Gambas-user] Workspace Message-ID: <5303815.post@...1379...> Since 1.9.32 I have not been able to use "workspace" component. How to use this in 1.9.33 or is there an equalant for it? -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5303815 Sent from the gambas-user forum at Nabble.com. From leonardo at ...1237... Thu Jul 13 10:39:07 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 13 Jul 2006 10:39:07 +0200 Subject: [Gambas-user] Randomize In-Reply-To: <200607112227.08067.gambas@...1...> References: <44B40724.2000304@...1237...> <200607112227.08067.gambas@...1...> Message-ID: <44B606AB.1080806@...1237...> Benoit Minisini ha scritto: > On Tuesday 11 July 2006 22:16, Leonardo Miliani wrote: >> Is it possible to setup the random numbers generator with a seed? >> In other languages this is done by randomize (x) where x is the seed. >> Using this command, you are sure that the generator provides the same >> numbers every time it is set up with the same seed. >> This is useful for example in cryptography, where you can add more >> security to a public key using a seed to interpolate the public key bits >> with random numbers to obtain any time differents encryptions of same >> datas and same keys. > > If it is useful, I will add it. > > Regards, > In VB (but also in other old BASICs, i.e.: Commodore Basic, GWBASIC) randomize timer is used to setup the RNG with the actual system time (this is like the actual Gambas command Randomize, so you are sure to have a random sequence), but if you write randomize 12, for example, you'll get a specific random sequence that it will be always the same. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From rporticio at ...43... Thu Jul 13 10:50:44 2006 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 13 Jul 2006 01:50:44 -0700 (PDT) Subject: [Gambas-user] executable file doesn't kick Message-ID: <20060713085044.15213.qmail@...1263...> dear friends, i am using a red hat 9 distro with gambas 1.0.16. i made a simple math program but when i compiled it and double click the resulting executable file i doesn't work. i tried to use ./ to run it in the console but the following message was given. /usr/bin/gbx: relocation error: /usr/lib/qt-3.1/lib/libqt-mt.so.3: undefined symbol: _ZNSs4_Rep11_S_terminalE what seem to be the problem. thanks for your kind advice. ramon --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Thu Jul 13 19:59:44 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 13 Jul 2006 13:59:44 -0400 Subject: [Gambas-user] Randomize In-Reply-To: <44B606AB.1080806@...1237...> References: <44B40724.2000304@...1237...> <200607112227.08067.gambas@...1...> <44B606AB.1080806@...1237...> Message-ID: <200607131359.45453.sourceforge-raindog2@...94...> On Thu July 13 2006 04:39, Leonardo Miliani wrote: > In VB (but also in other old BASICs, i.e.: Commodore Basic, > GWBASIC) randomize timer is used to setup the RNG with the > actual system time (this is like the actual Gambas command > Randomize, so you are sure to have a random sequence), but if > you write randomize 12, for example, you'll get a specific > random sequence that it will be always the same. The "srand" function in perl does exactly the same thing, so Benoit could look there for example code if the Unix call "srand" doesn't have this behavior. Rob From rolf.frogs at ...221... Thu Jul 13 21:27:42 2006 From: rolf.frogs at ...221... (rolf) Date: Thu, 13 Jul 2006 21:27:42 +0200 Subject: [Gambas-user] Online help In-Reply-To: References: Message-ID: <200607132127.42754.rolf.frogs@...221...> Hi Timothy > > > This is the help viewer I use. But it assumes you split you help into a > > > number of files. I do not like the idea of keeping it all in one file. I checked your program and it is nice. I integrated it in my application with minimal changes (for example filenames to search). Many thanks for the nice tool rolf From rporticio at ...43... Fri Jul 14 03:46:47 2006 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 13 Jul 2006 18:46:47 -0700 (PDT) Subject: [Gambas-user] executable files doesn't kick Message-ID: <20060714014647.87254.qmail@...1298...> dear friends, i forgot to tell you that i made the executable file while being a root user. but when i run gambas not as a root user, and made the executable file everything went fine. gambas is great! ramon --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrymou at ...370... Fri Jul 14 11:23:17 2006 From: perrymou at ...370... (P. Mountstevens) Date: Fri, 14 Jul 2006 10:23:17 +0100 Subject: [Gambas-user] Randomize In-Reply-To: References: Message-ID: <44B76285.2010909@...370...> On Tuesday 11 July 2006 22:16, Leonardo Miliani wrote: > >> Is it possible to setup the random numbers generator with a seed? > >> In other languages this is done by randomize (x) where x is the seed. > >> Using this command, you are sure that the generator provides the same > >> numbers every time it is set up with the same seed. > >> This is useful for example in cryptography, where you can add more > >> security to a public key using a seed to interpolate the public key bits > >> with random numbers to obtain any time differents encryptions of same > >> datas and same keys. > Easy: a=12 '(where 12 is the number you wish to seed from) for b= 1 to a c=rnd next mynumber=rnd ___________________________________________________________ Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html From cjro99 at ...67... Fri Jul 14 15:58:12 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 14 Jul 2006 13:58:12 +0000 Subject: [Gambas-user] executable files doesn't kick Message-ID: Hi, I have the same problem, i'm use RedHat 9 distro and Gambas 1.0.15. Regards Javier ----------------------------------------------- > Date: Thu, 13 Jul 2006 18:46:47 -0700 > From: rporticio at ...43... > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] executable files doesn't kick > > dear friends, > i forgot to tell you that i made the executable file while being a root user. but when i run gambas not as a root user, and made the executable file everything went fine. > gambas is great! > ramon > ----------------------------------------------- > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From cjro99 at ...67... Fri Jul 14 16:13:56 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 14 Jul 2006 14:13:56 +0000 Subject: [Gambas-user] Components Message-ID: I dont find the "ITEM" porperty or event in GridView component, in your example "GridView.Item", i'm ask about is any way to "Mark the selected" row, maybe a cell is "Selected" clicking, but gridview dont shows this selection, changing colors or any other way, i cant shows to the user what is selected in the grid (cell or row or column), i need that. Im using Gambas 1.0.15 Regards Javier ---------------------------------------- > From: ronstk at ...239... > To: gambas-user at lists.sourceforge.net > Date: Tue, 11 Jul 2006 19:20:48 +0200 > Subject: Re: [Gambas-user] Components > > On Tuesday 11 July 2006 15:09, javier romero wrote: > > About GridView > > > > 1) There is some way to select a Row in a Grid View > gridview1.Current is the current selected by click mouse. > Gridview1.Item is the row selected by Move**** methods. > > > > 2) There is some way to change the the backcolor and the forecolor of a cell in a GridView? > Simple no. > However once has made a class to decorate the cells of gridview/columnview > I think it was Charlie or Daniel. long time ago. > > > > 3) There is some way to put Titles in a GridView? > ? what Titles you think off? > If you mean header as in Tableview then No > You can use the first row :) > > > > 4) There is some way to now the cell or the row selected un a GridView? > GridView.Current.Row & GridView1.Current.Column > > > 5) There is some way to edit a cell in a GridView > > > > hGrid is a Gridview object > GRD??? are constants used by me for the row > > hGrid[iRow, Column].Text = "Yes" > hGrid[iRow, Column].Picture = picture.Load("img/16/checked.png") > > > > WITH hGrid > col = .Columns.Count > .Columns.Count = col + 1 > .columns[col].width = 115 > hGrid[GRDDBS, col].Text = mglobal.sDBinProc > hGrid[GRDTBL, col].Text = mglobal.sTBLinProc > hGrid[GRDVIS, col].Text = "Yes" > hGrid[GRDVIS, col].Picture = picture.Load("img/16/checked.png") > > hGrid.Rows[GRDDBS].Height = hLabel.Rows[GRDDBS].Height > hGrid.Rows[GRDTBL].Height = hLabel.Rows[GRDTBL].Height > hGrid.Rows[GRDGRP].Height = hLabel.Rows[GRDGRP].Height > END WITH > > Hope this give some help. > > Ron > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From ronstk at ...239... Fri Jul 14 16:57:35 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 14 Jul 2006 16:57:35 +0200 Subject: [Gambas-user] Components In-Reply-To: References: Message-ID: <200607141657.35585.ronstk@...239...> On Friday 14 July 2006 16:13, javier romero wrote: > I dont find the "ITEM" porperty or event in GridView component, For Current and Item see: http://gambasdoc.org/help/comp/gb.qt/gridview/current http://gambasdoc.org/help/comp/gb.qt/.gridcell PROPERTY READ Current AS .GridCell The .Item property should behave the same as .Current (or is dropped Benoit ?). And yes it is not documented yet or anymore. > in your example "GridView.Item", i'm ask about is any way to "Mark the selected" row, No visible way If you click in a cell the gridview.row and gridview.column are the indexes to the cell On mousedown in .row and .column are the previous cell and on mouseup then .row and .column are the new selection indexes. A possible way is to change the .Alignment of the cell to align.right and on leaving align.left gridview.current.alignment=align.left > maybe a cell is "Selected" clicking, but gridview dont shows this selection, > changing colors or any other way, i cant shows to the user what is selected in the > grid (cell or row or column), i need that. Yes it is would be nice to have the font go automagically bold i.e. I solved it in the past by changing the text in the cell from 'Hello' to '[Hello]' as visible sign. > > Im using Gambas 1.0.15 > Regards > Javier > > > Ron From leonardo at ...1237... Fri Jul 14 17:24:17 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 14 Jul 2006 17:24:17 +0200 Subject: [Gambas-user] Randomize In-Reply-To: <44B76285.2010909@...370...> References: <44B76285.2010909@...370...> Message-ID: <44B7B721.20107@...1237...> P. Mountstevens ha scritto: > Easy: > > > a=12 '(where 12 is the number you wish to seed from) > > for b= 1 to a > c=rnd > next > > mynumber=rnd It doesn't work on Gambas 1.9.33. Every cycle I get different numbers. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From scottz at ...1514... Fri Jul 14 21:10:52 2006 From: scottz at ...1514... (scottz at ...1514...) Date: Fri, 14 Jul 2006 14:10:52 -0500 Subject: [Gambas-user] I'm on vacation! :-D Message-ID: <1152904252_27@...1515...> I'll be on an extended weekend in Las Vegas until 7/18/06. I probably wont be able to check email during that time period. Wish you were here ;-D From gambas.fr at ...626... Fri Jul 14 23:22:32 2006 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 14 Jul 2006 23:22:32 +0200 Subject: [Gambas-user] Workspace In-Reply-To: <5303815.post@...1379...> References: <5303815.post@...1379...> Message-ID: <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> It's on road ! I hope finish it for .34 or .35 Regards, Fabien 2006/7/13, R. Stormo : > > > Since 1.9.32 I have not been able to use "workspace" component. How to use > this in 1.9.33 or is there an equalant for it? > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no > -- > View this message in context: > http://www.nabble.com/Workspace-tf1935747.html#a5303815 > Sent from the gambas-user forum at Nabble.com. > or > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From raturney at ...159... Sun Jul 16 01:05:54 2006 From: raturney at ...159... (R A Turney) Date: Sat, 15 Jul 2006 18:05:54 -0500 Subject: [Gambas-user] VB6 to Gambas Global arrays Message-ID: <44B974D2.6000408@...159...> Just like one of the other users, I need to declare a global array Graph[200,6] As Float for plotting graphs. I am converting a Visual Basic program and have had no problems until this. I am using version 1.0.11 of Gambas. I don't think the methods in the "Global array" post will work for the version I am using and also I need an array of Float not Byte. Is this possible for an array of Float type and do I have to upgrade to a different version of Gambas? Thank you, -Bob From scottz at ...1514... Sun Jul 16 21:07:00 2006 From: scottz at ...1514... (scottz at ...1514...) Date: Sun, 16 Jul 2006 14:07:00 -0500 Subject: [Gambas-user] I'm on vacation! :-D Message-ID: <1153076820_75@...1515...> I'll be on an extended weekend in Las Vegas until 7/18/06. I probably wont be able to check email during that time period. Wish you were here ;-D From raturney at ...159... Mon Jul 17 04:24:47 2006 From: raturney at ...159... (R A Turney) Date: Sun, 16 Jul 2006 21:24:47 -0500 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <44B974D2.6000408@...159...> References: <44B974D2.6000408@...159...> Message-ID: <44BAF4EF.4060506@...159...> Never mind, I was mistaken. I don't need a global array, just one that is visible to a single module or class. I was using the wrong syntax in Gambas 1.0.11. I installed 1.9.33 and declared the arrays as Benoit had suggested, i.e. PUBLIC Graph AS NEW Float[200, 6] One thing I had to adjust for was the fact that the array index begins with "0" and I was converting a VB6 program that used "Option Base 1" which makes the index start with "1". A very minor adjustment. I have noticed that the Gambas program is very slow in its computation compared to VB6. I am hoping that this is because it is interpreted instead of compiled. I don't think I can make an executable in this version. Is this correct? Thanks, -Bob R A Turney wrote: > Just like one of the other users, I need to declare a global array > Graph[200,6] As Float for plotting graphs. I am converting a Visual > Basic program and have had no problems until this. I am using version > 1.0.11 of Gambas. I don't think the methods in the "Global array" post > will work for the version I am using and also I need an array of Float > not Byte. Is this possible for an array of Float type and do I have to > upgrade to a different version of Gambas? > > Thank you, > -Bob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Mon Jul 17 10:28:08 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Jul 2006 10:28:08 +0200 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <44BAF4EF.4060506@...159...> References: <44B974D2.6000408@...159...> <44BAF4EF.4060506@...159...> Message-ID: <200607171028.08924.ronstk@...239...> On Monday 17 July 2006 04:24, R A Turney wrote: > I have noticed that the Gambas program is very slow in its computation > compared to VB6. ? If you are using the old machine not usable for winXP /Vista by lack of speed and memory but still usable with linux then you are right. But what do you exactly mean with computation? The CPU executing the bytes in the result file (*.exe) or the calculation of sqr(2). For the first you are almost right, the CPU must interprete the bytes from the gambas interpreter (gbi) and that one the bytes from the 'compiled' gambas file (myprogram.gambas). For the second I'm not 100% sure but in general I can say safe there is no big difference. > I am hoping that this is because it is interpreted instead of compiled. Hummm. Gambas is also compiled. (so the hope is false) For a *.exe the CPU must also interprete the bytes in memory. Oeps. that declares why any program is always so slow :) Compile does only mean 'convert from human readable text a bunch of bytes' The bytes can be bytes that the CPU interprete or bytes that a virtual CPU interprete and that is for gambas code called gbi or gbi2. The later also known as bytecode or p-code. Beside of that VB6 is also not 100% CPU executable code (bytes) in the result file. It uses a mix of bytecode and real CPU bytes and a small interpreter in the resulting program. You have to set a option in the configuration of VB6 to effective change bytecode to CPU code. i.e. using a array of bytes to prepare a call to a dll DD FA (use Function Add(val1,val2) as integer) D2 04 (first value 1234) 2E 16 (second value 5678) or the code for the dll call with the initialise for that call 21 04D2 (mov ax 1234) E5 (push ax) 21 162E (mov ax 5678) E5 (push ax) CD 12BEFA34 (call 12BEFA34 ;the ADD routine address) It needs msvb6vm.dll for the major components as gambas uses several libraries. The main library are lib.gb.so and lib.gb.qt.so or lib.gb.gtk.so for gambas > I don't think I can make an executable in this version. Is this correct? > If you mean a 100% direct by the CPU executable/interprete byte array you are correct. But a bash script or in msdos a *.bat file are that no executables? They are totally _not compiled_ at all and still do the job you want. Greets, Ron From gambas at ...1... Mon Jul 17 10:50:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 Jul 2006 10:50:25 +0200 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <200607171028.08924.ronstk@...239...> References: <44B974D2.6000408@...159...> <44BAF4EF.4060506@...159...> <200607171028.08924.ronstk@...239...> Message-ID: <200607171050.25701.gambas@...1...> On Monday 17 July 2006 10:28, Ron Onstenk wrote: Just to clarify and fix a few points :-) > On Monday 17 July 2006 04:24, R A Turney wrote: > > I have noticed that the Gambas program is very slow in its computation > > compared to VB6. ? Gambas is slow in pure computation. But it depends on the way the program is written. Someone should really do benchmarks! > > If you are using the old machine not usable for winXP /Vista by lack > of speed and memory but still usable with linux then you are right. > But what do you exactly mean with computation? > > The CPU executing the bytes in the result file (*.exe) or the calculation > of sqr(2). > > For the first you are almost right, the CPU must interprete the bytes > from the gambas interpreter (gbi) and that one the bytes from the > 'compiled' gambas file (myprogram.gambas). The interpreter is named 'gbx' or 'gbx2'. There is no difference between a 'compiled' gambas project and a not 'compiled' one, except that the compiled version is just an archive of all project files except the source code. > > For the second I'm not 100% sure but in general I can say safe there is > no big difference. > > > I am hoping that this is because it is interpreted instead of compiled. > > Hummm. > Gambas is also compiled. (so the hope is false) > For a *.exe the CPU must also interprete the bytes in memory. > Oeps. that declares why any program is always so slow :) > > Compile does only mean 'convert from human readable text a bunch of bytes' > The bytes can be bytes that the CPU interprete or bytes that a > virtual CPU interprete and that is for gambas code called gbi or gbi2. > The later also known as bytecode or p-code. See above. > > Beside of that VB6 is also not 100% CPU executable code (bytes) in the > result file. It uses a mix of bytecode and real CPU bytes and a small > interpreter in the resulting program. > You have to set a option in the configuration of VB6 to effective change > bytecode to CPU code. > > i.e. > using a array of bytes to prepare a call to a dll > DD FA (use Function Add(val1,val2) as integer) > D2 04 (first value 1234) > 2E 16 (second value 5678) > > or the code for the dll call with the initialise for that call > 21 04D2 (mov ax 1234) > E5 (push ax) > 21 162E (mov ax 5678) > E5 (push ax) > CD 12BEFA34 (call 12BEFA34 ;the ADD routine address) > > > It needs msvb6vm.dll for the major components as gambas uses several > libraries. The main library are lib.gb.so and lib.gb.qt.so or lib.gb.gtk.so > for gambas lib.gb.so is not used, it is just a transient library needed for generating the gb.info and gb.class files. It should not be present in binary packages, and not installed. > > > I don't think I can make an executable in this version. Is this correct? > > If you mean a 100% direct by the CPU executable/interprete byte array you > are correct. But a bash script or in msdos a *.bat file are that no > executables? They are totally _not compiled_ at all and still do the job > you want. > > > > Greets, > Ron > Regards, -- Benoit Minisini From ronstk at ...239... Mon Jul 17 11:10:43 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 17 Jul 2006 11:10:43 +0200 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <200607171050.25701.gambas@...1...> References: <44B974D2.6000408@...159...> <200607171028.08924.ronstk@...239...> <200607171050.25701.gambas@...1...> Message-ID: <200607171110.43277.ronstk@...239...> On Monday 17 July 2006 10:50, Benoit Minisini wrote: > The interpreter is named 'gbx' or 'gbx2'. Sorry for the mistake gbi versus gbx > There is no difference between a 'compiled' gambas project and a not 'compiled' one, Why should we then do 'Compile all' and 'make executable'? In your overview how gambas is working you tell us also it is compiled. > except that the compiled version is just an archive of all project files except the source code. > But the project files are the source code (from user view point)? I know there is a .gambas directory in the project directory. Files in there look to me the binary files and those are the ones in the archive. Are they not the converted/compiled from human readable text to bytecode? I do understand that for gambas 'compile' does not mean make real direct CPU executable code as compiling C code or assembly but that it means 'the middle code' between 'human text' and 'CPU code'. greets from sunny holland :) Ron From gambas at ...1... Mon Jul 17 12:48:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 Jul 2006 12:48:19 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 Message-ID: <200607171248.20179.gambas@...1...> Hi, The development environment got a new look, based on the KDE Crystal icon set. I hope you will like it :-) It does not prevent anyone to make the same set of icons from Gnome :-) Other main changes are: * The support of actions, that allows you to link buttons, menus and some controls acting together. * A new instruction, SLEEP, to wait without calling the event loop. * Two interpreter crashing bugs were fixed. * Many little changes in the gb.qt component. The more important change (for you I think) in this version is the support of *actions*. An action is concretely a string property, that some controls have. At the moment, the following controls have the Action property: - Button - ToolButton - ToggleButton - CheckBox - Menu - SidePanel - Window Controls having the same action synchronize their Enabled, Visible, Value (for toggle controls) properties. SidePanel and Windows with an action behave like toggles, except that that the Value property is replaced by Visible. Menu can become toggles now, thanks to a new property named... Toggle. To make this magic reality, you must use the Action class to synchronize the previous properties. For example, 'Action["action-name"].Enabled = FALSE' must be used to disable all controls associated with the action. When a control associated with an action raises its Click event, then the Action_Activate handler is called in its window. This pseudo event handler takes the action name as argument. If this handler does not exist, or returns TRUE, then the Action class will search for a same handler in the parent window if this form is embedded, until finding the toplevel window. For example, if you have: - A toggle button associated with the action "test". - A menu entry associated with the same action, having the Toggle property set. - A form associated with the same action. Then clicking the menu, or the toggle button will show or hide the window. And closing the window will toggle the menu and the toggle button too. All that happens automagically without writing a line of code. If the name of the action begins with a dot, then this action is *local*. It means that the action is constrained to the form being the event observer of the controls associated with the action. In other words, that means that controls associated with the same local action actually belongs to different synchronisation groups if they have different event observer. The only constraint is that you must specify the event observer when using the Action class. For example, you must do: 'Action[".action", ME].Enabled = TRUE' instead of 'Action[".action"].Enabled = TRUE'. If you need real examples, look in the IDE source code that makes a lot of use of this feature. Or look in the Gambas part of the gb.qt component. The Action class is implemented there, in Gambas! If you want to make a UserControl or UserContainer, the Action class has two static methods: Register, to link or unlink a control with an action, and Raise, used when a linked control raises the event associated with the action. Note that these methods are called by the C++ part of the gb.qt component too, thanks to the GB.GetFunction() and GB.Call() methods. The gb.gtk component will have to do the same things to get action support, and a copy of the Gambas implementation of the Action class of course. I hope you will like this feature. I'm waiting for your comments, if you didn't escape from your computer for holidays, of course :-) Here is the full ChangeLog: --8<------------------------------------------------------------------------ CONFIGURATION & INSTALLATION * BUG: A symbolic link named 'gambas2' pointing at 'gambas2.gambas' is now created inside the 'bin' directory of the installation. DEVELOPMENT ENVIRONMENT * NEW: KDE Crystal icon theme is used now. * NEW: The main window was redesigned with toolbars and actions. * BUG: Some fixes in container support in the form editor. * NEW: The form editor now has a representation of the window borders and title bar. * NEW: The welcome form was redesigned. * BUG: Somes fixes in the automatic completion. * NEW: A new tab which displays the list of current breakpoints while debugging. * NEW: The option form was redesigned. * BUG: Automatic creation of property handlers now support static properties. * BUG: Opened forms become read-only when the project is running. * NEW: The icon editor was redesigned. * BUG: Old editor positions are cleared when a new project is opened. INTERPRETER * BUG: The GB.GetFunction API does not leak memory anymore when the searched function does not exist. * NEW: The '.Array' class lost its point, and is named 'Array' now. * NEW: Class.Component is a new property that returns the component a class belongs to. * BUG: Object.SetProperty and Object.GetProperty now correctly propagate errors. * NEW: Object.Call now takes its arguments as an unique array, and not as a variable list. * BUG: An error raised inside a component written in Gambas does not crash the interpreter anymore during a debugging session. * BUG: An object variable with a defined class can only accept symbols of this class, and not a symbol of an inherited class. * NEW: Randomize now takes an optional parameter to initialize the seed. COMPILER * NEW: A new instruction, SLEEP, to wait without calling the event loop. * NEW: EXEC and SHELL now support the AS syntax to specify the event name of the returned Process objects. INFORMER * BUG: The informer does not use a hardcoded path of itself anymore to implement library preloading. ARCHIVER * NEW: The archiver takes a new '-o' option to specify the path of the generated executable. GB.QT COMPONENT * BUG: The implementatio of the Design property were reworked. * NEW: The Control.Window property now returns the window the control belongs to, even if this window is embedded. BE CAREFUL! THIS MAY BREAK YOUR CODE. * NEW: Now a control can be associated with an action, thanks to the Action class. This class is implemented in the gambas part of the component. * NEW: Now the Application.ActiveWindow returns the window containing the control having the focus, even if this window is embedded, provided this embedded window has an event handler for the Activate event. Is it clear? * NEW: Disabled icons are visually visible now. * NEW: Button, ToggleButton and ToolButton now support actions. * BUG: ToolButton now have a minimum height according to its font, like the Button control had. * NEW: CheckBox supports action now. * NEW: Arrange.LeftRight was renamed as Arrange.Row, and Arrange.TopBottom was renamed as Arrange.Column. * NEW: Container now raises the Arrange event, to indicate that its contents has changed and should be arranged. * NEW: Draw.RoundRect is a new method to draw rounded rectangles. * NEW: Now DrawingArea controls ignore keyboard events by default. * NEW: DrawingArea.Focus is a new property to tell a DrawingArea to accept keyboard events. * NEW: Menu now supports actions. * NEW: Now menus automatically hide unneeded separators just before opening. * NEW: Menu.Toggle is a new property to make the menu acts like a toggle button. * NEW: Menu.Show and Menu.Hide are two new methods to respectively show and hide a menu entry. * NEW: Menu.Popup now takes two extra optional parameters to specify the screen coordinates of where the menu will appear. * NEW: Menu.Window is a new property that returns the window the menu is attached to. * BUG: Replacing a picture in the Picture cache with another one with the same key does not crash the interpreter anymore. * BUG: Changing the background color of a window now works correctly. * NEW: Window now supports action, so that it can be automatically shown or hidden. GB.QT.EXT COMPONENT * NEW: Editor.Goto now takes an optional argument that center the cursor inside the Editor control. * NEW: Procedures can be separated with a gradient instead of just a line. * BUG: Some little fixes in the Editor control. GB.FORM COMPONENT * NEW: FontChooser.ShowFixed were replaced by FontChooser.FixedOnly. * NEW: FontChooser.ShowStyle is a new property that allows to hide the style panel in the middle. * BUG: FontChooser does not refresh uselessly anymore. * NEW: Some cosmetic changes in the SidePanel container. * NEW: A new property, SidePanel.Action, for associating a SidePanel with an action. This way, the SidePanel can be automatically shown or hidden. * NEW: A ToolBar control, that acts as a container. GB.FORM.MDI COMPONENT * BUG: Some bug fixes in the Workspace control. * NEW: Clicking on the titlebar now gives the focus to the associated child window. * NEW: Activating windows should not flicker anymore. GB.SETTINGS COMPONENT * NEW: Settings.Path is a new static property that returns the default path of configuration files. --8<------------------------------------------------------------------------ Regards, -- Benoit Minisini -------------- next part -------------- An HTML attachment was scrubbed... URL: From fidojones at ...805... Mon Jul 17 16:33:24 2006 From: fidojones at ...805... (Lorenzo) Date: Mon, 17 Jul 2006 16:33:24 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <200607171248.20179.gambas@...1...> References: <200607171248.20179.gambas@...1...> Message-ID: <29780d10bc41e75bd0e4d2000d148cec@...40...> I'm not on holiday compiling errors here :D, I want to probe it, hurry hurry :D make[5]: se ingresa al directorio `/1/gambas2-1.9.34/gb.qt/src/ext' if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o garray.h: In constructor 'GArrayImpl::GArrayImpl()': garray.h:39: warning: dereferencing type-punned pointer will break strict-aliasing rules garray.h: In destructor 'GArrayImpl::~GArrayImpl()': garray.h:40: warning: dereferencing type-punned pointer will break strict-aliasing rules garray.h: In member function 'void GArrayImpl::append(const void*)': garray.h:45: warning: dereferencing type-punned pointer will break strict-aliasing rules garray.h: At global scope: garray.h:29: error: previous declaration of 'GB_INTERFACE GB' with 'C++' linkage gstring.h:32: error: conflicts with new declaration with 'C' linkage make[5]: *** [main.lo] Error 1 make[5]: se sale del directorio `/1/gambas2-1.9.34/gb.qt/src/ext' make[4]: *** [all-recursive] Error 1 make[4]: se sale del directorio `/1/gambas2-1.9.34/gb.qt/src' make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio `/1/gambas2-1.9.34/gb.qt' make[2]: *** [all] Error 2 make[2]: se sale del directorio `/1/gambas2-1.9.34/gb.qt' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/1/gambas2-1.9.34' regards Lorenzo On Mon, 17 Jul 2006 12:48:19 +0200, Benoit Minisini wrote: > Hi, > > The development environment got a new look, based on the KDE Crystal icon > set. I hope you will like it :-) > > It does not prevent anyone to make the same set of icons from Gnome :-) > > Other main changes are: > > * The support of actions, that allows you to link buttons, menus and some > controls acting together. > > * A new instruction, SLEEP, to wait without calling the event loop. > > * Two interpreter crashing bugs were fixed. > > * Many little changes in the gb.qt component. > > The more important change (for you I think) in this version is the support > of *actions*. > > An action is concretely a string property, that some controls have. > > At the moment, the following controls have the Action property: > - Button > - ToolButton > - ToggleButton > - CheckBox > - Menu > - SidePanel > - Window > > Controls having the same action synchronize their Enabled, Visible, Value > (for toggle controls) properties. > > SidePanel and Windows with an action behave like toggles, except that that > the Value property is replaced by Visible. > > Menu can become toggles now, thanks to a new property named... Toggle. > > To make this magic reality, you must use the Action class to synchronize > the previous properties. For example, 'Action["action-name"].Enabled = > FALSE' must be used to disable all controls associated with the action. > > When a control associated with an action raises its Click event, then the > Action_Activate handler is called in its window. This pseudo event handler > takes the action name as argument. > > If this handler does not exist, or returns TRUE, then the Action class > will search for a same handler in the parent window if this form is > embedded, until finding the toplevel window. > > For example, if you have: > - A toggle button associated with the action "test". > - A menu entry associated with the same action, having the Toggle property > set. > - A form associated with the same action. > > Then clicking the menu, or the toggle button will show or hide the window. > And closing the window will toggle the menu and the toggle button too. All > that happens automagically without writing a line of code. > > If the name of the action begins with a dot, then this action is *local*. > It means that the action is constrained to the form being the event > observer of the controls associated with the action. > > In other words, that means that controls associated with the same local > action actually belongs to different synchronisation groups if they have > different event observer. > > The only constraint is that you must specify the event observer when using > the Action class. > > For example, you must do: 'Action[".action", ME].Enabled = TRUE' instead > of 'Action[".action"].Enabled = TRUE'. > > If you need real examples, look in the IDE source code that makes a lot of > use of this feature. > > Or look in the Gambas part of the gb.qt component. The Action class is > implemented there, in Gambas! > > If you want to make a UserControl or UserContainer, the Action class has > two static methods: Register, to link or unlink a control with an action, > and Raise, used when a linked control raises the event associated with the > action. > > Note that these methods are called by the C++ part of the gb.qt component > too, thanks to the GB.GetFunction() and GB.Call() methods. > > The gb.gtk component will have to do the same things to get action > support, and a copy of the Gambas implementation of the Action class of > course. > > I hope you will like this feature. I'm waiting for your comments, if you > didn't escape from your computer for holidays, of course :-) > > Here is the full ChangeLog: > > --8<------------------------------------------------------------------------ > CONFIGURATION & INSTALLATION > > * BUG: A symbolic link named 'gambas2' pointing at 'gambas2.gambas' is now > created inside the 'bin' directory of the installation. > > DEVELOPMENT ENVIRONMENT > > * NEW: KDE Crystal icon theme is used now. > * NEW: The main window was redesigned with toolbars and actions. > * BUG: Some fixes in container support in the form editor. > * NEW: The form editor now has a representation of the window borders and > title bar. > * NEW: The welcome form was redesigned. > * BUG: Somes fixes in the automatic completion. > * NEW: A new tab which displays the list of current breakpoints while > debugging. > * NEW: The option form was redesigned. > * BUG: Automatic creation of property handlers now support static > properties. > * BUG: Opened forms become read-only when the project is running. > * NEW: The icon editor was redesigned. > * BUG: Old editor positions are cleared when a new project is opened. > > INTERPRETER > > * BUG: The GB.GetFunction API does not leak memory anymore when the > searched function does not exist. > * NEW: The '.Array' class lost its point, and is named 'Array' now. > * NEW: Class.Component is a new property that returns the component a > class > belongs to. > * BUG: Object.SetProperty and Object.GetProperty now correctly propagate > errors. > * NEW: Object.Call now takes its arguments as an unique array, and not as > a > variable list. > * BUG: An error raised inside a component written in Gambas does not crash > the interpreter anymore during a debugging session. > * BUG: An object variable with a defined class can only accept symbols of > this class, and not a symbol of an inherited class. > * NEW: Randomize now takes an optional parameter to initialize the seed. > > COMPILER > > * NEW: A new instruction, SLEEP, to wait without calling the event loop. > * NEW: EXEC and SHELL now support the AS syntax to specify the event name > of the returned Process objects. > > INFORMER > > * BUG: The informer does not use a hardcoded path of itself anymore to > implement library preloading. > > ARCHIVER > > * NEW: The archiver takes a new '-o' option to specify the path of the > generated executable. > > GB.QT COMPONENT > > * BUG: The implementatio of the Design property were reworked. > * NEW: The Control.Window property now returns the window the control > belongs to, even if this window is embedded. BE CAREFUL! THIS MAY > BREAK YOUR CODE. > * NEW: Now a control can be associated with an action, thanks to the > Action > class. This class is implemented in the gambas part of the component. > * NEW: Now the Application.ActiveWindow returns the window containing the > control having the focus, even if this window is embedded, provided this > embedded window has an event handler for the Activate event. Is it > clear? > * NEW: Disabled icons are visually visible now. > * NEW: Button, ToggleButton and ToolButton now support actions. > * BUG: ToolButton now have a minimum height according to its font, like > the > Button control had. > * NEW: CheckBox supports action now. > * NEW: Arrange.LeftRight was renamed as Arrange.Row, and Arrange.TopBottom > was renamed as Arrange.Column. > * NEW: Container now raises the Arrange event, to indicate that its > contents > has changed and should be arranged. > * NEW: Draw.RoundRect is a new method to draw rounded rectangles. > * NEW: Now DrawingArea controls ignore keyboard events by default. > * NEW: DrawingArea.Focus is a new property to tell a DrawingArea to accept > keyboard events. > * NEW: Menu now supports actions. > * NEW: Now menus automatically hide unneeded separators just before > opening. > * NEW: Menu.Toggle is a new property to make the menu acts like a toggle > button. > * NEW: Menu.Show and Menu.Hide are two new methods to respectively show > and hide a menu entry. > * NEW: Menu.Popup now takes two extra optional parameters to specify the > screen coordinates of where the menu will appear. > * NEW: Menu.Window is a new property that returns the window the menu is > attached to. > * BUG: Replacing a picture in the Picture cache with another one with the > same key does not crash the interpreter anymore. > * BUG: Changing the background color of a window now works correctly. > * NEW: Window now supports action, so that it can be automatically shown > or hidden. > > GB.QT.EXT COMPONENT > > * NEW: Editor.Goto now takes an optional argument that center the cursor > inside the Editor control. > * NEW: Procedures can be separated with a gradient instead of just a line. > * BUG: Some little fixes in the Editor control. > > GB.FORM COMPONENT > > * NEW: FontChooser.ShowFixed were replaced by FontChooser.FixedOnly. > * NEW: FontChooser.ShowStyle is a new property that allows to hide the > style panel in the middle. > * BUG: FontChooser does not refresh uselessly anymore. > * NEW: Some cosmetic changes in the SidePanel container. > * NEW: A new property, SidePanel.Action, for associating a SidePanel with > an action. This way, the SidePanel can be automatically shown or hidden. > * NEW: A ToolBar control, that acts as a container. > > GB.FORM.MDI COMPONENT > > * BUG: Some bug fixes in the Workspace control. > * NEW: Clicking on the titlebar now gives the focus to the associated > child > window. > * NEW: Activating windows should not flicker anymore. > > GB.SETTINGS COMPONENT > > * NEW: Settings.Path is a new static property that returns the default > path of configuration files. > > --8<------------------------------------------------------------------------ > > Regards, > > From gambas at ...1... Mon Jul 17 16:42:05 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 Jul 2006 16:42:05 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <29780d10bc41e75bd0e4d2000d148cec@...40...> References: <200607171248.20179.gambas@...1...> <29780d10bc41e75bd0e4d2000d148cec@...40...> Message-ID: <200607171642.06446.gambas@...1...> On Monday 17 July 2006 16:33, Lorenzo wrote: > I'm not on holiday compiling errors here :D, I want to probe it, hurry > hurry :D > > > > make[5]: se ingresa al directorio `/1/gambas2-1.9.34/gb.qt/src/ext' > > if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -pipe -Wall -fno-exceptions > -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT > main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ > > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > > g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -pipe > -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp > -fPIC -DPIC -o .libs/main.o > > garray.h: In constructor 'GArrayImpl::GArrayImpl()': > > garray.h:39: warning: dereferencing type-punned pointer will break > strict-aliasing rules > > garray.h: In destructor 'GArrayImpl::~GArrayImpl()': > > garray.h:40: warning: dereferencing type-punned pointer will break > strict-aliasing rules > > garray.h: In member function 'void GArrayImpl::append(const void*)': > > garray.h:45: warning: dereferencing type-punned pointer will break > strict-aliasing rules > > garray.h: At global scope: > > garray.h:29: error: previous declaration of 'GB_INTERFACE GB' with 'C++' > linkage ==> Add '"C"' between GB_INTERFACE and GB. I.e. rewrite the declaration: GB_INTERFACE "C" GB; You may have to do that in other places. This is due to the new gcc that is more strict. Regards, -- Benoit Minisini From fidojones at ...805... Mon Jul 17 17:12:37 2006 From: fidojones at ...805... (Lorenzo) Date: Mon, 17 Jul 2006 17:12:37 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <200607171642.06446.gambas@...1...> References: <200607171642.06446.gambas@...1...> Message-ID: Ok it works now but the exactly change I did was: in gambas2-1.9.34/gb.qt/src/ext/garray.h extern "C" GB_INTERFACE GB; gambas2-1.9.34/gb.qt/src/ext/main.h extern "C" GB_INTERFACE GB; extern "C" QT_INTERFACE QT; it similar what you say " GB_INTERFACE "C" GB; " Regards Lorenzo On Mon, 17 Jul 2006 16:42:05 +0200, Benoit Minisini wrote: > On Monday 17 July 2006 16:33, Lorenzo wrote: >> I'm not on holiday compiling errors here :D, I want to probe it, hurry >> hurry :D >> >> >> >> make[5]: se ingresa al directorio `/1/gambas2-1.9.34/gb.qt/src/ext' >> >> if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > -I. >> -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT -pipe -Wall > -fno-exceptions >> -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer > -MT >> main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ >> >> then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f >> ".deps/main.Tpo"; exit 1; fi >> >> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/qt3/ -D_REENTRANT > -pipe >> -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os >> -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.cpp >> -fPIC -DPIC -o .libs/main.o >> >> garray.h: In constructor 'GArrayImpl::GArrayImpl()': >> >> garray.h:39: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> >> garray.h: In destructor 'GArrayImpl::~GArrayImpl()': >> >> garray.h:40: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> >> garray.h: In member function 'void GArrayImpl::append(const void*)': >> >> garray.h:45: warning: dereferencing type-punned pointer will break >> strict-aliasing rules >> >> garray.h: At global scope: >> >> garray.h:29: error: previous declaration of 'GB_INTERFACE GB' with 'C++' >> linkage > > ==> Add '"C"' between GB_INTERFACE and GB. I.e. rewrite the declaration: > > GB_INTERFACE "C" GB; > > You may have to do that in other places. This is due to the new gcc that > is > more strict. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From raturney at ...159... Mon Jul 17 19:13:18 2006 From: raturney at ...159... (R A Turney) Date: Mon, 17 Jul 2006 12:13:18 -0500 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <200607171028.08924.ronstk@...239...> References: <44B974D2.6000408@...159...> <44BAF4EF.4060506@...159...> <200607171028.08924.ronstk@...239...> Message-ID: <44BBC52E.7080207@...159...> Ron Onstenk wrote: > On Monday 17 July 2006 04:24, R A Turney wrote: >> I have noticed that the Gambas program is very slow in its computation >> compared to VB6. > > If you are using the old machine not usable for winXP /Vista by lack > of speed and memory but still usable with linux then you are right. > But what do you exactly mean with computation? > I am converting an engineering application that I wrote in VB6. It calculates the von Mises operating envelope for a cylindrical pressure vessel (just mentioned that because some might be familiar with this). This involves an iterative calculation, calling many subroutines per iterative cycle. As a result of this calcultion a graph is plotted that is shaped like an ellipse that is tilted slightly to the right. The original Win XP VB6 program does the iterative calculation and plots the graph almost instantaneously (less than a second) on an Intel Xeon 1.8 Ghz. On my "converted to Gambas" version running on my home computer, AMD Athlon XP 2000+, and SuSE 9.3, it takes roughly ten seconds. That's why I assumed it was interpreted code. I am hoping that after my direct conversion that I can find ways to optimize this code to improve the performance. > The CPU executing the bytes in the result file (*.exe) or the calculation of sqr(2). > > For the first you are almost right, the CPU must interprete the bytes > from the gambas interpreter (gbi) and that one the bytes from the 'compiled' > gambas file (myprogram.gambas). > > For the second I'm not 100% sure but in general I can say safe there is > no big difference. > >> I am hoping that this is because it is interpreted instead of compiled. > > Hummm. > Gambas is also compiled. (so the hope is false) > For a *.exe the CPU must also interprete the bytes in memory. > Oeps. that declares why any program is always so slow :) > > Compile does only mean 'convert from human readable text a bunch of bytes' > The bytes can be bytes that the CPU interprete or bytes that a > virtual CPU interprete and that is for gambas code called gbi or gbi2. > The later also known as bytecode or p-code. > > Beside of that VB6 is also not 100% CPU executable code (bytes) in the result file. > It uses a mix of bytecode and real CPU bytes and a small interpreter in the > resulting program. > You have to set a option in the configuration of VB6 to effective change bytecode to CPU code. > > i.e. > using a array of bytes to prepare a call to a dll > DD FA (use Function Add(val1,val2) as integer) > D2 04 (first value 1234) > 2E 16 (second value 5678) > > or the code for the dll call with the initialise for that call > 21 04D2 (mov ax 1234) > E5 (push ax) > 21 162E (mov ax 5678) > E5 (push ax) > CD 12BEFA34 (call 12BEFA34 ;the ADD routine address) > > > It needs msvb6vm.dll for the major components as gambas uses several libraries. > The main library are lib.gb.so and lib.gb.qt.so or lib.gb.gtk.so for gambas > >> I don't think I can make an executable in this version. Is this correct? >> > If you mean a 100% direct by the CPU executable/interprete byte array you are correct. > But a bash script or in msdos a *.bat file are that no executables? > They are totally _not compiled_ at all and still do the job you want. The older version I was using 1.0.11 could create an executable that showed up in Konqueor as a Gear. You could double click it to execute. > > > > Greets, > Ron > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Mon Jul 17 19:45:26 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 17 Jul 2006 13:45:26 -0400 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <44BBC52E.7080207@...159...> References: <44B974D2.6000408@...159...> <200607171028.08924.ronstk@...239...> <44BBC52E.7080207@...159...> Message-ID: <200607171345.26294.sourceforge-raindog2@...94...> On Mon July 17 2006 13:13, R A Turney wrote: > an Intel Xeon 1.8 Ghz. On my "converted to Gambas" version > running on my home computer, AMD Athlon XP 2000+, and SuSE > 9.3, it takes roughly ten seconds. That's why I assumed it > was interpreted code. I am hoping that after my direct Don't be misled.... while Gambas may have a compiler, it's still an interpreted language. The Gambas compiler creates its own flavor of pseudo-code, not actual machine code, and the archiver just takes those p-code object files and jams them together into an "executable" that really runs as a script (head -1 myproject.gambas should give you "#!/usr/bin/gbx2" or something like that, instead of a bunch of binary ELF gibberish as you'd find in a Linux machine code program.) For most of what Gambas is meant to do, this is fine, but yeah, it might be at a disadvantage against VB for straight-up math. (I have VB running under VMware on one of my workstations; maybe I'll set up a Linux VMware session to benchmark them fairly.) Maybe it would be possible to write a Gambas component to let you write strictly mathematical expressions and execute them using libm or something. I wouldn't know if that would actually work or how to do it, though. I hope that someday someone will either write a Gambas bytecode to machine code crosscompiler, or add the ability to generate machine code in the Gambas compiler. This is way beyond my ability and more than most people want or need from Gambas, so I'm not holding my breath. Rob From leonardo at ...1237... Mon Jul 17 23:12:40 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 17 Jul 2006 23:12:40 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <200607171248.20179.gambas@...1...> References: <200607171248.20179.gambas@...1...> Message-ID: <44BBFD48.5000400@...1237...> Benoit Minisini ha scritto: > * NEW: Randomize now takes an optional parameter to initialize the seed. I've tried it, but I cannot get working... If, for example, I write randomize(2) for i=1 to 3 a[i]=rnd next then I only have a sequence of zeroes.. If I just write: randomize it works as always. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From raturney at ...159... Tue Jul 18 04:41:53 2006 From: raturney at ...159... (R A Turney) Date: Mon, 17 Jul 2006 21:41:53 -0500 Subject: [Gambas-user] VB6 to Gambas Global arrays In-Reply-To: <200607171345.26294.sourceforge-raindog2@...94...> References: <44B974D2.6000408@...159...> <200607171028.08924.ronstk@...239...> <44BBC52E.7080207@...159...> <200607171345.26294.sourceforge-raindog2@...94...> Message-ID: <44BC4A71.4070600@...159...> Thanks for the very informative replies to my questions. Rob Kudla wrote: > On Mon July 17 2006 13:13, R A Turney wrote: >> an Intel Xeon 1.8 Ghz. On my "converted to Gambas" version >> running on my home computer, AMD Athlon XP 2000+, and SuSE >> 9.3, it takes roughly ten seconds. That's why I assumed it >> was interpreted code. I am hoping that after my direct > > Don't be misled.... while Gambas may have a compiler, it's still > an interpreted language. The Gambas compiler creates its own > flavor of pseudo-code, not actual machine code, and the archiver > just takes those p-code object files and jams them together into > an "executable" that really runs as a script (head -1 > myproject.gambas should give you "#!/usr/bin/gbx2" or something > like that, instead of a bunch of binary ELF gibberish as you'd > find in a Linux machine code program.) > > For most of what Gambas is meant to do, this is fine, but yeah, > it might be at a disadvantage against VB for straight-up math. > (I have VB running under VMware on one of my workstations; maybe > I'll set up a Linux VMware session to benchmark them fairly.) I'll do the same with some other calculations, and run them on the same hardware. The VB6 application that I was talking about should be considered extremely calculation-bound because of the iterative process. When I first wrote it several years ago, I monitored the iterations and found it required an average of 20 to 50 iterations to converge per data point. THere are 200 data points. I think that this code can be improved to reduce the number of iterations required to converge. I never bothered with it in VB6 since it took less than a second to solve. -Bob > > Maybe it would be possible to write a Gambas component to let you > write strictly mathematical expressions and execute them using > libm or something. I wouldn't know if that would actually work > or how to do it, though. > > I hope that someday someone will either write a Gambas bytecode > to machine code crosscompiler, or add the ability to generate > machine code in the Gambas compiler. This is way beyond my > ability and more than most people want or need from Gambas, so > I'm not holding my breath. > > Rob > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 18 11:59:45 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 Jul 2006 11:59:45 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <44BBFD48.5000400@...1237...> References: <200607171248.20179.gambas@...1...> <44BBFD48.5000400@...1237...> Message-ID: <200607181159.46039.gambas@...1...> On Monday 17 July 2006 23:12, Leonardo Miliani wrote: > Benoit Minisini ha scritto: > > * NEW: Randomize now takes an optional parameter to initialize the seed. > > I've tried it, but I cannot get working... > If, for example, I write > > randomize(2) > for i=1 to 3 > a[i]=rnd > next > > then I only have a sequence of zeroes.. > If I just write: > > randomize > > it works as always. I should have tested it before! Here is a patch... -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_math.c Type: text/x-csrc Size: 3633 bytes Desc: not available URL: From scottz at ...1514... Tue Jul 18 21:07:31 2006 From: scottz at ...1514... (scottz at ...1514...) Date: Tue, 18 Jul 2006 14:07:31 -0500 Subject: [Gambas-user] I'm on vacation! :-D Message-ID: <1153249651_137@...1515...> I'll be on an extended weekend in Las Vegas until 7/18/06. I probably wont be able to check email during that time period. Wish you were here ;-D From ronstk at ...239... Tue Jul 18 21:28:02 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 18 Jul 2006 21:28:02 +0200 Subject: [Gambas-user] I'm on vacation! :-D In-Reply-To: <1153249651_137@...1515...> References: <1153249651_137@...1515...> Message-ID: <200607182128.02882.ronstk@...239...> On Tuesday 18 July 2006 21:07, scottz at ...1514... wrote: > I'll be on an extended weekend in Las Vegas until 7/18/06. > I probably wont be able to check email during that time period. > > > Good heavens. He is able to go at least 3 times to Las Vegas. Holliday or did you write a gambas program to collect all the money from the casinos? Anyway I know I can rob your house safe :) The nasty burglar Rrrrrrrroonnnnnnnnn :) From leonardo at ...1237... Tue Jul 18 22:26:14 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 18 Jul 2006 22:26:14 +0200 Subject: [Gambas-user] Release of gambas 1.9.34 In-Reply-To: <200607181159.46039.gambas@...1...> References: <200607171248.20179.gambas@...1...> <44BBFD48.5000400@...1237...> <200607181159.46039.gambas@...1...> Message-ID: <44BD43E6.5080308@...1237...> Benoit Minisini ha scritto: > > I should have tested it before! Here is a patch... Thanks, Benoit! Now it works properly :-) -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From pcpaul2004 at ...247... Wed Jul 19 03:51:55 2006 From: pcpaul2004 at ...247... (Paul) Date: Wed, 19 Jul 2006 02:51:55 +0100 Subject: [Gambas-user] WebBrowser component Message-ID: <200607190251.55750.pcpaul2004@...247...> Quick question - is there, or will there be, any way of getting to the document object (assuming it has one) of the WebBrowser component? I'd like to be able to directly input HTML/text into it (similar to the Text property for a TextArea) for display rather than just have it display a webpage, but I've not found anyway of doing so as yet. From csorda at ...69... Wed Jul 19 12:38:10 2006 From: csorda at ...69... (csorda@libero.it) Date: Wed, 19 Jul 2006 12:38:10 +0200 Subject: [Gambas-user] (no subject) Message-ID: Hi everyone, what can i do to set echo off in serial params before open a serial port? Thanks a lot. Best regards. Carlo Sorda. ________________________________________________________________ Mutui a tassi scontati da 30 banche. Richiedi online e risparmia. Servizio gratuito. http://click.libero.it/mutuionline From csorda at ...69... Wed Jul 19 15:36:01 2006 From: csorda at ...69... (csorda@libero.it) Date: Wed, 19 Jul 2006 15:36:01 +0200 Subject: [Gambas-user] Serial port config problem. Message-ID: Hi everyone, what can i do to set echo off in serial params before open a serial port? When I use minicom to comunicate with my embedded HW on /dev/ttyS1 the comunication is ok. If I get the ttyS1 setting with stty -F /dev/ttyS1 the params are correct. When I use gambas2 to open the serial port with the some minicom params, and I get with stty... the setting are different. Why?. I modified the tools.c in gb.net/src in OpenSerialPort(...) to setting my parameters, but the result is the some. Thanks a lot. Best regards. Carlo Sorda. ________________________________________________________________ Mutui a tassi scontati da 30 banche. Richiedi online e risparmia. Servizio gratuito. http://click.libero.it/mutuionline From nando_f at ...1382... Wed Jul 19 20:29:59 2006 From: nando_f at ...1382... (nando) Date: Wed, 19 Jul 2006 14:29:59 -0400 Subject: [Gambas-user] Serial port config problem. In-Reply-To: References: Message-ID: <20060719182630.M75306@...1382...> 'Echo On' simply is every char that is received is automatically transmitted. I use the serial port control. It doesn't do that. The code would have to do it. Maybe you don't have the minicom or stty config file in the folder you invoke minicom or stty, so it uses default values. ---------- Original Message ----------- From: "csorda at ...69..." To: "gambas-user" Cc: gambas-devel Sent: Wed, 19 Jul 2006 15:36:01 +0200 Subject: [Gambas-user] Serial port config problem. > Hi everyone, > what can i do to set echo off in serial params before open a serial port? > When I use minicom to comunicate with my embedded HW on /dev/ttyS1 the > comunication is ok. If I get the ttyS1 setting with stty -F /dev/ttyS1 the > params are correct. When I use gambas2 to open the serial port with the some > minicom params, and I get with stty... the setting are different. Why?. I > modified the tools.c in gb.net/src in OpenSerialPort(...) to setting my > parameters, but the result is the some. Thanks a lot. Best regards. Carlo Sorda. > > ________________________________________________________________ > Mutui a tassi scontati da 30 banche. Richiedi online e risparmia. > Servizio gratuito. > http://click.libero.it/mutuionline > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sbungay at ...981... Thu Jul 20 04:34:37 2006 From: sbungay at ...981... (sbungay) Date: Wed, 19 Jul 2006 22:34:37 -0400 Subject: [Gambas-user] Function doing unexpected things... Message-ID: <44BEEBBD.20803@...981...> How to explain this without writing tons of code... hmmmmm.. here goes. I have a class which contains 3 public variables of type float. The class gets instantiated. One of the items within the class is named "subtotal" and it's value is derived by summing up the items in one column of a grid. To do this I wanted to use a function which returned type Float. So (keeping code here to a minimum) the whole mess looks kind of like this... ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) Private Function ComputeSubTotal (SourceGrid AS GridView, Col as Integer) AS Float Dim SubTotal AS Float . . . Logic to sum the column into "SubTotal" goes here . . . Return SubTotal End Gives me the error "Expected Float, got Function" I expected the assignment to take the return value of the function not the function itself... is this a bug or am I doing something wrong? I can work around it using a SUB but IMHO it is more elegant to use a function. P.S. Haven't used GAMBAS for over a year, just downloaded the latest version and compiled it... it's looking very good Benoit. I like the new editor. From ronstk at ...239... Thu Jul 20 07:41:39 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 07:41:39 +0200 Subject: [Gambas-user] Print probleem with pictures/text Message-ID: <200607200741.39723.ronstk@...239...> I use A4 paper On that sheet should be 2 sections. Every section consists of a picture and some labels with a textbox as overlay on the picture The first step was using a Me.Grab() on the the form and was printed OK. Then I add the second section. I had of course to change the height of the form. Using the .Grab() shows me garbage on the bottom. The bottom of the form was below the taskbar. Then I did use a stand alone Image try to put from both picturebox a .grab() in the Image. The second replace the first one. Using Picture, Panel, Scrollview and Drawingarea did not solve the replace. from the print project ' Name: ModulePrinting ' Author: Timothy Marshal-Nichols PUBLIC SUB PrintImage(img AS Image, OPTIONAL FitToPage AS Boolean) DIM imageToPrint AS Image DIM imageWidth AS Integer DIM imageHeight AS Integer DIM scaleIsotropic AS Float ' Display printer dialog IF Printer.Setup() THEN RETURN INC Application.Busy ' Get image size for the printer resolution imageWidth = (img.Width * Printer.Resolution) / Desktop.Resolution imageHeight = (img.Height * Printer.Resolution) / Desktop.Resolution ' Adjust image size if it does not fit on the printer page ' Also if the fit to page option is set fill the page with the image IF FitToPage OR imageWidth > Printer.Width OR imageHeight > Printer.Height THEN ' Scale Isotropic, keep aspect ratio of the image scaleIsotropic = Min(Printer.Width / imageWidth, Printer.Height / imageHeight) imageWidth *= scaleIsotropic imageHeight *= scaleIsotropic END IF ' Scale image imageToPrint = img.Stretch(imageWidth, imageHeight, TRUE) ' Draw image centred on printer page Draw.Begin(Printer) Draw.Image(imageToPrint, (Printer.Width - imageWidth) / 2, (Printer.Height - imageHeight) / 2) Draw.End DEC Application.Busy END This was usable to print my first trial with 1/2 A4 sheet PUBLIC SUB PrintImage(img AS Image,img2 AS Image, OPTIONAL FitToPage AS Boolean) DIM imageToPrint AS Image DIM imageToPrint2 AS Image ...... 'STATIC SUB Image ( Image AS Image, X AS Integer, Y AS Integer [ , SrcX AS Integer, SrcY AS Integer, SrcWidth AS Integer, SrcHeight AS Integer ] ) Draw.Begin(Printer) ' image x y srcx srcy srcw srch Draw.Image(imageToPrint, (Printer.Width - imageWidth) / 2, 0, 0, 0, imageWidth, 528) Draw.Image(imageToPrint2, (Printer.Width - imageWidth) / 2, 528, 0, 0, imageWidth, 528) Draw.End Same result. not working or not correct. Basic I need to print two sections as described above. I do have a Form with the size of 1/2 A4. The place of the labels and textbox are adjustable to fit the image below. Next trial: Printing text using Draw.Text STATIC SUB Text ( Text AS String, X AS Integer, Y AS Integer [ , Width AS Integer, Height AS Integer, Alignment AS Integer ] ) If you specified the optional parameters, then the text is constrained to the given rectangle, and aligned according to the Alignment parameter. The original text in the section is around 6 lines and on the left half of the section. It is not in a boxed way but 1 long line. I did try also to use the draw.clip .DrawClip This virtual class is used for defining the clipping area of a drawing. The drawing methods never draw outside of the clipping area. STATIC SUB .DrawClip ( X AS Integer, Y AS Integer, Width AS Integer, Height AS Integer ) draw.clip(100, 100, 100, 100) as trial example. No success. Printing one line full width. The screen is 96 dpi and the printer is, with gambas printer.resolution, 600 dpi. (The print test say 300 in cups, HP Laserjet 4si) Using for the positions with Draw the pixel is multiply by (printer.resolution/desktop.resolution) The tests I did and when there is something printed where on the right positions. But also not allways the print did work on Draw.End It looks to me the case when Draw positions are out of page values. (Printing beside the paper sheet. In console (xterm) no report of error to see. What me is irritating is that i'm not able to Draw two pictures on one sheet. Direct printing of the texts in parts of the section/sheet are not clipped/wrapped in the dimensions I wish, and that should be regarding Draw.Clip explanation. Why Pictures? Well I need 4 upper sections with 8 lower sections and they contain logo and object diagrams. Bit stupid to preprint 32 different sheets. Beside the object diagrams does not allow those also preprinted. The labels and textbox are on different places for the objects. They are used to be able to place them graphically and the textbox for the values need for that print. The client that will use it is a ordinary user and may/can not change program. The press a 'Safe Layout' and/or 'Print This' button. Is there someone that can help me to print those 2 pictures and place the text over the picture in a boxed way I'm desperate crying for help after 2 weeks trial/error 6hours/day in a not so very friendly environment for programming (and cant change it :( ). Ron From ronstk at ...239... Thu Jul 20 08:08:01 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 08:08:01 +0200 Subject: [Gambas-user] Function doing unexpected things... In-Reply-To: <44BEEBBD.20803@...981...> References: <44BEEBBD.20803@...981...> Message-ID: <200607200808.01486.ronstk@...239...> On Thursday 20 July 2006 04:34, sbungay wrote: > ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) > I think here is you problem. In the class you must have a declaration as Public SubTotal as Float In that class you are calculate the value for it. SubTotal = ComputeSubTotal(GridName,GridName.Column) should be then sufficient. Without 'ClassName' I hoop this help. Ron From sirfabien at ...626... Thu Jul 20 10:32:32 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Thu, 20 Jul 2006 10:32:32 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607200741.39723.ronstk@...239...> References: <200607200741.39723.ronstk@...239...> Message-ID: <200607201032.33071.sirfabien@...626...> Le Jeudi 20 Juillet 2006 07:41, Ron Onstenk a ?crit?: in fact i want to help you... but i don't understand what you say .... :/ Can you send me your code sources ? i will see what i can doo ! Fabien > I use A4 paper > On that sheet should be 2 sections. > Every section consists of a picture and some labels with a > textbox as overlay on the picturet i > The first step was using a Me.Grab(ou... buact i want to help y) on the the form and was printed OK. > Then I add the second section. > I had of course to change the height of the form. > Using the .Grab() shows me garbage on the bottom. > The bottom of the form was below the taskbar. > > Then I did use a stand alone Image > try to put from both picturebox a .grab() in the Image. > The second replace the first one. > Using Picture, Panel, Scrollview and Drawingarea did not solve the replace. > > > from the print project > ' Name: ModulePrinting > ' Author: Timothy Marshal-Nichols > > > PUBLIC SUB PrintImage(img AS Image, OPTIONAL FitToPage AS Boolean) > DIM imageToPrint AS Image > DIM imageWidth AS Integer > DIM imageHeight AS Integer > DIM scaleIsotropic AS Float > ' Display printer dialog > IF Printer.Setup() THEN RETURN > INC Application.Busy > ' Get image size for the printer resolution > imageWidth = (img.Width * Printer.Resolution) / Desktop.Resolution > imageHeight = (img.Height * Printer.Resolution) / Desktop.Resolution > ' Adjust image size if it does not fit on the printer page > ' Also if the fit to page option is set fill the page with the image > IF FitToPage OR imageWidth > Printer.Width OR imageHeight > > Printer.Height THEN ' Scale Isotropic, keep aspect ratio of the image > scaleIsotropic = Min(Printer.Width / imageWidth, Printer.Height / > imageHeight) imageWidth *= scaleIsotropic > imageHeight *= scaleIsotropic > END IF > ' Scale image > imageToPrint = img.Stretch(imageWidth, imageHeight, TRUE) > ' Draw image centred on printer page > Draw.Begin(Printer) > Draw.Image(imageToPrint, (Printer.Width - imageWidth) / 2, > (Printer.Height - imageHeight) / 2) Draw.End > DEC Application.Busy > END > > > This was usable to print my first trial with 1/2 A4 sheet > > PUBLIC SUB PrintImage(img AS Image,img2 AS Image, OPTIONAL FitToPage AS > Boolean) DIM imageToPrint AS Image > DIM imageToPrint2 AS Image > > ...... > 'STATIC SUB Image ( Image AS Image, X AS Integer, Y AS Integer > [ , SrcX AS Integer, SrcY AS Integer, SrcWidth AS Integer, SrcHeight > AS Integer ] ) > > > Draw.Begin(Printer) > ' image x y srcx srcy > srcw srch Draw.Image(imageToPrint, (Printer.Width - imageWidth) / > 2, 0, 0, 0, imageWidth, 528) Draw.Image(imageToPrint2, (Printer.Width > - imageWidth) / 2, 528, 0, 0, imageWidth, 528) Draw.End > > > Same result. not working or not correct. > > Basic I need to print two sections as described above. > I do have a Form with the size of 1/2 A4. > The place of the labels and textbox are adjustable to fit the image below. > > Next trial: > Printing text using Draw.Text > > STATIC SUB Text ( Text AS String, X AS Integer, Y AS Integer > [ , Width AS Integer, Height AS Integer, Alignment AS Integer ] ) > > If you specified the optional parameters, then the text is constrained to > the given rectangle, and aligned according to the Alignment parameter. > > The original text in the section is around 6 lines and on the left half of > the section. It is not in a boxed way but 1 long line. > > I did try also to use the draw.clip > > .DrawClip > This virtual class is used for defining the clipping area of a drawing. > The drawing methods never draw outside of the clipping area. > > STATIC SUB .DrawClip ( X AS Integer, Y AS Integer, Width AS Integer, > Height AS Integer ) > > draw.clip(100, 100, 100, 100) as trial example. > No success. Printing one line full width. > > The screen is 96 dpi and the printer is, with gambas printer.resolution, > 600 dpi. (The print test say 300 in cups, HP Laserjet 4si) > > Using for the positions with Draw the pixel is multiply by > (printer.resolution/desktop.resolution) The tests I did and when there is > something printed where on the right positions. > > > But also not allways the print did work on Draw.End > It looks to me the case when Draw positions are out of page values. > (Printing beside the paper sheet. > In console (xterm) no report of error to see. > > What me is irritating is that i'm not able to Draw two pictures on one > sheet. Direct printing of the texts in parts of the section/sheet are not > clipped/wrapped in the dimensions I wish, and that should be regarding > Draw.Clip explanation. > > Why Pictures? Well I need 4 upper sections with 8 lower sections and they > contain logo and object diagrams. > Bit stupid to preprint 32 different sheets. > Beside the object diagrams does not allow those also preprinted. > The labels and textbox are on different places for the objects. > > They are used to be able to place them graphically and the textbox for the > values need for that print. > The client that will use it is a ordinary user and may/can not change > program. The press a 'Safe Layout' and/or 'Print This' button. > > Is there someone that can help me to print those 2 pictures and place the > text over the picture in a boxed way > > I'm desperate crying for help after 2 weeks trial/error 6hours/day in a > not so very friendly environment for programming (and cant change it :( ). > > Ron > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From timothy.marshal-nichols at ...247... Thu Jul 20 10:36:30 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 20 Jul 2006 09:36:30 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607200741.39723.ronstk@...239...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Ron > Onstenk > Sent: Thursday, 20 July 2006 06:42 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Print probleem with pictures/text > > > I use A4 paper > On that sheet should be 2 sections. > Every section consists of a picture and some labels with a > textbox as overlay on the picture > The first step was using a Me.Grab() on the the form and was printed OK. > Then I add the second section. > I had of course to change the height of the form. > Using the .Grab() shows me garbage on the bottom. > The bottom of the form was below the taskbar. > > Then I did use a stand alone Image > try to put from both picturebox a .grab() in the Image. > The second replace the first one. > Using Picture, Panel, Scrollview and Drawingarea did not solve > the replace. > > > from the print project > ' Name: ModulePrinting > ' Author: Timothy Marshal-Nichols > > > PUBLIC SUB PrintImage(img AS Image, OPTIONAL FitToPage AS Boolean) > DIM imageToPrint AS Image > DIM imageWidth AS Integer > DIM imageHeight AS Integer > DIM scaleIsotropic AS Float > ' Display printer dialog > IF Printer.Setup() THEN RETURN > INC Application.Busy > ' Get image size for the printer resolution > imageWidth = (img.Width * Printer.Resolution) / Desktop.Resolution > imageHeight = (img.Height * Printer.Resolution) / Desktop.Resolution > ' Adjust image size if it does not fit on the printer page > ' Also if the fit to page option is set fill the page with the image > IF FitToPage OR imageWidth > Printer.Width OR imageHeight > > Printer.Height THEN > ' Scale Isotropic, keep aspect ratio of the image > scaleIsotropic = Min(Printer.Width / imageWidth, > Printer.Height / imageHeight) > imageWidth *= scaleIsotropic > imageHeight *= scaleIsotropic > END IF > ' Scale image > imageToPrint = img.Stretch(imageWidth, imageHeight, TRUE) > ' Draw image centred on printer page > Draw.Begin(Printer) > Draw.Image(imageToPrint, (Printer.Width - imageWidth) / 2, > (Printer.Height - imageHeight) / 2) > Draw.End > DEC Application.Busy > END > > > This was usable to print my first trial with 1/2 A4 sheet > > PUBLIC SUB PrintImage(img AS Image,img2 AS Image, OPTIONAL > FitToPage AS Boolean) > DIM imageToPrint AS Image > DIM imageToPrint2 AS Image > > ...... > 'STATIC SUB Image ( Image AS Image, X AS Integer, Y AS Integer > [ , SrcX AS Integer, SrcY AS Integer, SrcWidth AS Integer, > SrcHeight AS Integer ] ) > > > Draw.Begin(Printer) > ' image x y > srcx srcy srcw srch > Draw.Image(imageToPrint, (Printer.Width - imageWidth) / 2, 0, > 0, 0, imageWidth, 528) > Draw.Image(imageToPrint2, (Printer.Width - imageWidth) / 2, > 528, 0, 0, imageWidth, 528) > Draw.End > > > Same result. not working or not correct. > > Basic I need to print two sections as described above. > I do have a Form with the size of 1/2 A4. > The place of the labels and textbox are adjustable to fit the image below. > > Next trial: > Printing text using Draw.Text > > STATIC SUB Text ( Text AS String, X AS Integer, Y AS Integer > [ , Width AS Integer, Height AS Integer, Alignment AS Integer ] ) > > If you specified the optional parameters, then the text is constrained to > the given rectangle, and aligned according to the Alignment parameter. > > The original text in the section is around 6 lines and on the > left half of the section. > It is not in a boxed way but 1 long line. > > I did try also to use the draw.clip > > .DrawClip > This virtual class is used for defining the clipping area of a drawing. > The drawing methods never draw outside of the clipping area. > > STATIC SUB .DrawClip ( X AS Integer, Y AS Integer, Width AS > Integer, Height AS Integer ) > > draw.clip(100, 100, 100, 100) as trial example. > No success. Printing one line full width. > > The screen is 96 dpi and the printer is, with gambas > printer.resolution, 600 dpi. > (The print test say 300 in cups, HP Laserjet 4si) > > Using for the positions with Draw the pixel is multiply by > (printer.resolution/desktop.resolution) > The tests I did and when there is something printed where on the > right positions. > > > But also not allways the print did work on Draw.End > It looks to me the case when Draw positions are out of page values. > (Printing beside the paper sheet. > In console (xterm) no report of error to see. > > What me is irritating is that i'm not able to Draw two pictures > on one sheet. > Direct printing of the texts in parts of the section/sheet are > not clipped/wrapped > in the dimensions I wish, and that should be regarding Draw.Clip > explanation. > > Why Pictures? Well I need 4 upper sections with 8 lower sections and they > contain logo and object diagrams. > Bit stupid to preprint 32 different sheets. > Beside the object diagrams does not allow those also preprinted. > The labels and textbox are on different places for the objects. > > They are used to be able to place them graphically and the > textbox for the > values need for that print. > The client that will use it is a ordinary user and may/can not > change program. > The press a 'Safe Layout' and/or 'Print This' button. > > Is there someone that can help me to print those 2 pictures and > place the text > over the picture in a boxed way > > I'm desperate crying for help after 2 weeks trial/error 6hours/day in a > not so very friendly environment for programming (and cant change > it :( ). > > Ron > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user The attached project should print out two images on a page. One in the top half, and the other - surprise, surprise - in the bottom. Above each image should be some text (from a text area) centred in a rectangle. I hope this goes some way in demonstrating what you need to do in your project. (I could not completely work out what you wanted from your email) One thing I should apologise for. This project has been done on a slightly out of data version of the development version of Gambas and is a bit quick and dirty. (I am in the middle of updating the Linux distribution I am using. And I have not reinstalled everything.) I hope this does not cause any problems, but I thought I had better warn just in case you have any problems with the project. Thanks 8-{)} Timothy Marshal-Nichols -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintTwoImages.tar Type: application/x-tar Size: 20480 bytes Desc: not available URL: From gambas at ...1... Thu Jul 20 12:53:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Jul 2006 12:53:27 +0200 Subject: [Gambas-user] Function doing unexpected things... In-Reply-To: <44BEEBBD.20803@...981...> References: <44BEEBBD.20803@...981...> Message-ID: <200607201253.27391.gambas@...1...> On Thursday 20 July 2006 04:34, sbungay wrote: > How to explain this without writing tons of code... hmmmmm.. here goes. > I have a class which contains 3 public variables of type float. > The class gets instantiated. > One of the items within the class is named "subtotal" and it's value > is derived by summing up the items in one column of a grid. To do this I > wanted to use a function which returned type Float. So (keeping code > here to a minimum) the whole mess looks kind of like this... > > ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) > > Private Function ComputeSubTotal (SourceGrid AS GridView, Col as > Integer) AS Float > Dim SubTotal AS Float > . > . > . > Logic to sum the column into "SubTotal" goes here > . > . > . > Return SubTotal > End > > Gives me the error > > "Expected Float, got Function" > > I expected the assignment to take the return value of the function > not the function itself... is this a bug or am I doing something wrong? > I can work around it using a SUB but IMHO it is more elegant to use a > function. > > P.S. > Haven't used GAMBAS for over a year, just downloaded the latest > version and compiled it... it's looking very good Benoit. I like the new > editor. > It seems to be a bug. I need the version of Gambas you use, and the complete source code of the module/class where the function is located. Regards, -- Benoit Minisini From timothy.marshal-nichols at ...247... Thu Jul 20 14:44:51 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 20 Jul 2006 13:44:51 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: Message-ID: > > The attached project should print out two images on a page. One in the top > half, and the other - surprise, surprise - in the bottom. Above each image > should be some text (from a text area) centred in a rectangle. I hope this > goes some way in demonstrating what you need to do in your > project. (I could > not completely work out what you wanted from your email) > > One thing I should apologise for. This project has been done on a slightly > out of data version of the development version of Gambas and is a > bit quick > and dirty. (I am in the middle of updating the Linux distribution I am > using. And I have not reinstalled everything.) I hope this does not cause > any problems, but I thought I had better warn just in case you have any > problems with the project. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > In fact there is a bug in the code I attached to the previous email. It positioned the upper image incorrectly. This is a revised version of the PrintImage procedure. I suppose this illustrates the kind of problems the originator of this topic is having. ------------------ PRIVATE SUB PrintImage(imgTop AS Image, topText AS String, imageBottom AS Image, bottomText AS String) DIM imageTopToPrint AS Image DIM imageBottomToPrint AS Image DIM imageWidth AS Integer DIM imageHeight AS Integer DIM scaleIsotropic AS Float ' Display printer dialog IF Printer.Setup() THEN RETURN INC Application.Busy ' ' Get top image size for the printer resolution imageWidth = (imgTop.Width * Printer.Resolution) / Desktop.Resolution imageHeight = (imgTop.Height * Printer.Resolution) / Desktop.Resolution ' Adjust image size if it does not fit on the printer page IF imageWidth > Printer.Width OR imageHeight > (Printer.Height / 2) THEN ' Scale Isotropic, keep aspect ratio of the image scaleIsotropic = Min(Printer.Width / imageWidth, (Printer.Height / 2) / imageHeight) imageWidth *= scaleIsotropic imageHeight *= scaleIsotropic END IF ' Scale top image imageTopToPrint = imgTop.Stretch(imageWidth, imageHeight, TRUE) ' ' Get bottom image size for the printer resolution imageWidth = (imageBottom.Width * Printer.Resolution) / Desktop.Resolution imageHeight = (imageBottom.Height * Printer.Resolution) / Desktop.Resolution ' Adjust image size if it does not fit on the printer page IF imageWidth > Printer.Width OR imageHeight > (Printer.Height / 2) THEN ' Scale Isotropic, keep aspect ratio of the image scaleIsotropic = Min(Printer.Width / imageWidth, (Printer.Height / 2) / imageHeight) imageWidth *= scaleIsotropic imageHeight *= scaleIsotropic END IF ' Scale bottom image imageBottomToPrint = imageBottom.Stretch(imageWidth, imageHeight, TRUE) ' ' Draw printer page Draw.Begin(Printer) ' Top text Draw.Text(topText, 100, 100, Printer.Width - 200, Draw.TextHeight(topText), Align.Center) Draw.Rect(100, 100, Printer.Width - 200, Draw.TextHeight(topText)) ' Print top image Draw.Image(imageTopToPrint, (Printer.Width - imageTopToPrint.Width) / 2, ((Printer.Height / 2) - imageTopToPrint.Height) / 2) ' Bottom text Draw.Text(bottomText, 100, (Printer.Height / 2) + 100, Printer.Width - 200, Draw.TextHeight(bottomText), Align.Center) Draw.Rect(100, (Printer.Height / 2) + 100, Printer.Width - 200, Draw.TextHeight(bottomText)) ' Print bottom image Draw.Image(imageBottomToPrint, (Printer.Width - imageBottomToPrint.Width) / 2, (Printer.Height / 2) + ((Printer.Height / 2) - imageBottomToPrint.Height) / 2) Draw.End DEC Application.Busy END ------------------ Thanks 8-{)} Timothy Marshal-Nichols From BertOudshoorn at ...1472... Thu Jul 20 15:21:07 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Thu, 20 Jul 2006 09:21:07 EDT Subject: [Gambas-user] Serial port config problem Message-ID: <549.3a07b09.31f0dd43@...1472...> Minicom invokes a specified init string, which contans default an (AT)E1. Gambas soes not, you have to do it by yourself. By giving an ATE0, there is no "echo": What is typed, goes to the modem, but is not shown in the TextArea (gambas example). Take care with ATZn: Restores the settings from volatile memory... Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefanopalmeri at ...152... Thu Jul 20 16:15:33 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Thu, 20 Jul 2006 16:15:33 +0200 Subject: [Gambas-user] little boring bug Message-ID: <200607201615.33366.stefanopalmeri@...152...> Hi, all. Hi, Benoit. @ Ron Onstenk: please read it till the end... I downloaded and compiled 1.9.34, but some links in the embedded main help page are still broken. Here's the output from console when I click on that links: FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/lang/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/comp/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/error/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/def/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/doc/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/howto/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/lang/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/overview/?en FExplorer.GotoLink.281: /usr/local/share/gambas2/help/help/api/name/?en These are the broken links: Section LANGUAGE * Language Index * Components * Error Messages * Lexicon Section DOCUMENTS * Here a list of documents... * How To Section DEVELOPERS All are broken. I've reported this bug for .32 .33 and .34. It seems that I'm the only stupid in the list that uses the help :-( , because no other is reporting the bug. So, I promise this is the last bug report about the help page. @ Ron Onstenk: I remember you confirmed the help page bug in 1.9.32. What about for 1.9.34 on your system? Thanks. Regards, Stefano Palmeri From leonardo at ...1237... Thu Jul 20 17:11:18 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 20 Jul 2006 17:11:18 +0200 Subject: [Gambas-user] Unsigned int Message-ID: <44BF9D16.30005@...1237...> Hi Benoit, do you think to inplement the "unsigned int" data type in Gambas, as is in C language? It could be useful in a lot of cases, i.e. when working on real 32 bit words is needed. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From BertOudshoorn at ...1472... Thu Jul 20 17:35:57 2006 From: BertOudshoorn at ...1472... (BertOudshoorn at ...1472...) Date: Thu, 20 Jul 2006 11:35:57 EDT Subject: [Gambas-user] SerialPort and Xmodem (rzsz) Message-ID: <425.4cd7d700.31f0fcdd@...1472...> Has somebody experiences with the SerialPort and rzsz. I dial-in and use a conversation via the SerialPort, wich ends with "start now Xmodem". I tried an Exec/Shell statement "rx -X thefile": It seems to start a "separate" shell-konsole, but there is no start trigger (relation). An other process ? It works with Minicom, and I can probably make a (minicom) script, but pure in/via Gambas would be nicer. In windows, I used a VBX/OCX, with an "integrated" method of the object. Thanks, Bert Oudshoorn -------------- next part -------------- An HTML attachment was scrubbed... URL: From nando_f at ...1382... Thu Jul 20 19:01:16 2006 From: nando_f at ...1382... (nando) Date: Thu, 20 Jul 2006 13:01:16 -0400 Subject: [Gambas-user] Function doing unexpected things... In-Reply-To: <44BEEBBD.20803@...981...> References: <44BEEBBD.20803@...981...> Message-ID: <20060720170056.M3295@...1382...> Is 'ClassName.SubTotal' a float ?? ---------- Original Message ----------- From: sbungay To: gambas-user at lists.sourceforge.net Sent: Wed, 19 Jul 2006 22:34:37 -0400 Subject: [Gambas-user] Function doing unexpected things... > How to explain this without writing tons of code... hmmmmm.. here goes. > I have a class which contains 3 public variables of type float. > The class gets instantiated. > One of the items within the class is named "subtotal" and it's value > is derived by summing up the items in one column of a grid. To do this I > wanted to use a function which returned type Float. So (keeping code > here to a minimum) the whole mess looks kind of like this... > > ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) > > Private Function ComputeSubTotal (SourceGrid AS GridView, Col as > Integer) AS Float > Dim SubTotal AS Float > . > . > . > Logic to sum the column into "SubTotal" goes here > . > . > . > Return SubTotal > End > > Gives me the error > > "Expected Float, got Function" > > I expected the assignment to take the return value of the function > not the function itself... is this a bug or am I doing something wrong? > I can work around it using a SUB but IMHO it is more elegant to use a > function. > > P.S. > Haven't used GAMBAS for over a year, just downloaded the latest > version and compiled it... it's looking very good Benoit. I like the new > editor. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sirfabien at ...626... Thu Jul 20 19:31:20 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Thu, 20 Jul 2006 19:31:20 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <44BF9D16.30005@...1237...> References: <44BF9D16.30005@...1237...> Message-ID: <200607201931.20558.sirfabien@...626...> Le Jeudi 20 Juillet 2006 17:11, Leonardo Miliani a ?crit?: > Hi Benoit, > do you think to inplement the "unsigned int" data type in Gambas, as is > in C language? > It could be useful in a lot of cases, i.e. when working on real 32 bit > words is needed. it remember me a query to Benoit :-)... Dear Benoit, Is it possible to have something like in c to load binary structure ? For exemple the TYPE model... and some keys to restrict the variable size like in vb TYPE montype mystring as string * 32 mySTaticarray[12] as integer END TYPE dim $montype as montype fic = open monfichier for read Read #fic, $montype, len(montype) close fic remember that a type can contain other type or array of type... In fact it miss me for loading 3D object files. i've trying to do that without but... it's really difficult as i need to query for each type. if you have an idea of how to manage structures... without passing by classes... please make it ! it's usefull in many place. Regards, Fabien From fidojones at ...805... Thu Jul 20 20:11:46 2006 From: fidojones at ...805... (Lorenzo) Date: Thu, 20 Jul 2006 20:11:46 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <200607201931.20558.sirfabien@...626...> References: <200607201931.20558.sirfabien@...626...> Message-ID: <9b3195ac3b12506b21ff14127e93333f@...40...> I think it's very useful, I used it to read binary files in VB and in Delphi I used it too, for example how to read graphics files, without it? (Fabiend, are you doing MDI? it will be similar as old version, with movable windows? ) VB Type fTypeContabilidad Fecha As String * 6 dfConcepto As String * 20 dfDetalle As String * 40 dfSigno As Integer dfImporte As Single End Type Delphi Type TFCuentas=Record dfFecha:array[0..5] of Char; dfConcepto:array[0..19] of Char; dfDetalle:array[0..39] of Char; dfSigno:SmallInt; dfImporte:Single; end; One vote for me, I wish list in Gambas web pleaseeeee :D Regards Lorenzo On Thu, 20 Jul 2006 19:31:20 +0200, Fabien Bodard wrote: > Le Jeudi 20 Juillet 2006 17:11, Leonardo Miliani a ?crit : >> Hi Benoit, >> do you think to inplement the "unsigned int" data type in Gambas, as is >> in C language? >> It could be useful in a lot of cases, i.e. when working on real 32 bit >> words is needed. > > > it remember me a query to Benoit :-)... > > > Dear Benoit, > Is it possible to have something like in c to load binary structure ? > > For exemple the TYPE model... and some keys to restrict the variable size > > like in vb > TYPE montype > mystring as string * 32 > mySTaticarray[12] as integer > END TYPE > > dim $montype as montype > > fic = open monfichier for read > > Read #fic, $montype, len(montype) > close fic > > remember that a type can contain other type or array of type... In fact it > > miss me for loading 3D object files. i've trying to do that without but... > > it's really difficult as i need to query for each type. > > if you have an idea of how to manage structures... without passing by > classes... please make it ! it's usefull in many place. > > Regards, > Fabien > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Thu Jul 20 20:49:11 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 20:49:11 +0200 Subject: [Gambas-user] little boring bug In-Reply-To: <200607201615.33366.stefanopalmeri@...152...> References: <200607201615.33366.stefanopalmeri@...152...> Message-ID: <200607202049.11475.ronstk@...239...> On Thursday 20 July 2006 16:15, Stefano Palmeri wrote: > @ Ron Onstenk: > I remember you confirmed the help page bug > in 1.9.32. What about for 1.9.34 on your system? Thanks. > I can only tell in .33 I have seen it to. :( The latest .34 is in the download/developer/ map but I'm ATM not interested to complie and install it. I did dump the PC this afternone in the trash can at work place due the print problems and some other components and go home. I lost so much time to try and invent how to use gambas after a good start to fill in the runtime details in the project that I'm now finished to continue with it. I have pull the old CD with the MS Access version out the cabinet. Need to setup the 3 background flow control servers and remove linux/gambas from all the workstations. For the report of the help problem. Every one must have it but as you assume the do not use the help or there are no users left using gambas. > So, I promise this is the last bug report about the help page. I understand it anyway. For the first case I can't imagine they know all without it. Yes the auto complete can help during typing, the toolbox to provide the controls but for DB, Printer, Dialog and more you need at least once use the help (i do). I'm afraid the second is starting. In the pre version 1 time there has been a very active usage of this mail list. The good old (young!) Benoit was replying on almost every report and question. He has less time ATM as he mentioned shortly. I'm missing Rob Kudla, Charlie, Nigel, Olivier, Brent and more that where frequently on the list but now by accident. In the mean time there are some forums dedicated to gambas started but on most I see questions with out answer. That will not be in favour of gambas. Benoit uses simple the sourceforge list as the only communication channel. So if the people do not get a answer on there favourite forum they should post it here but they don't. And the users should be realistic that Benoit (French,English speaking) can't visit all the forums with local language spoken/written questions/reports. This way it will lead to end of support on gambas because the people will, must and do it in there native language. Sorry guys. Not totally wrong but good neither. But working with computers as programmer is international and English is the base language of it, for communication and programming. Yes, I program in English, grammar is bad, I know :) and I do not know the exact translation in Dutch but in time I have learned what those English words mean in practice and I can use them/it. A dictionary can also help and I do have it by hand. Oeps Again a long 'epistel' from me, Ron From ronstk at ...239... Thu Jul 20 21:15:01 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 21:15:01 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <200607201931.20558.sirfabien@...626...> References: <44BF9D16.30005@...1237...> <200607201931.20558.sirfabien@...626...> Message-ID: <200607202115.01253.ronstk@...239...> On Thursday 20 July 2006 19:31, Fabien Bodard wrote: > Le Jeudi 20 Juillet 2006 17:11, Leonardo Miliani a ?crit?: > > Hi Benoit, > > do you think to inplement the "unsigned int" data type in Gambas, as is > > in C language? > > It could be useful in a lot of cases, i.e. when working on real 32 bit > > words is needed. > > > it remember me a query to Benoit :-)... > > > Dear Benoit, > Is it possible to have something like in c to load binary structure ? > > For exemple the TYPE model... and some keys to restrict the variable size > like in vb > TYPE montype > mystring as string * 32 > mySTaticarray[12] as integer > END TYPE > > dim $montype as montype > > fic = open monfichier for read > > Read #fic, $montype, len(montype) > close fic > > remember that a type can contain other type or array of type... In fact it > miss me for loading 3D object files. i've trying to do that without but... > it's really difficult as i need to query for each type. > > if you have an idea of how to manage structures... without passing by > classes... please make it ! it's usefull in many place. > > Regards, > Fabien > The intention of Benoit is that UDT (User Data Types) should be declared as a class file. montype.class: Public mystring as string[32] public mySTaticarray[12] as integer public sub _new() 'the initialize of the data type if need end Pro: I think it is more flexible and better usable as object versus VB Again: If there are more UDT's will be used with external library calls you can get a mass of small (relative useless) files. I remember modules in VB to be able to use the windows API for some components with 10 or more (seen once over 30) of those UDT's Calling linux libraries is now possible with gambas and a interface module to access that library can/will have same mass of UDT's To make a visual compact program with less files I support the request to have a something like TYPE in gambas too. I'm dreaming this way a hiearchie of the UDT is possible instead of spread the files between all the other in alfa sorted way. UDT.class public TYPE montype mystring as string[32] mySTaticarray[12] as integer end type public TYPE tutype mystring as string[32] mySTaticarray[12] as integer end type public TYPE multitutype mymulti as tutype[32] mynonmulti as integer end type public sub _new() 'the initialize of the data type(s) if need end usage: dim myUDT as UDT myUDT.montype.mystring="hello world" myUDT.tutype.mystring="Good morning all" myUDT.multitutype.mymulti[0]=myUDT.tutype myUDT.multitutype.mynonmulti=1234 do you like that Fabien :) Poor Benoit :) From ronstk at ...239... Thu Jul 20 21:36:49 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 21:36:49 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607202136.49551.ronstk@...239...> On Thursday 20 July 2006 10:36, Timothy Marshal-Nichols wrote: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Ron > > Onstenk > > Sent: Thursday, 20 July 2006 06:42 > > To: gambas-user at lists.sourceforge.net > > Subject: [Gambas-user] Print probleem with pictures/text > > ---8<---- Thanks Timothy, You made again a excellent example. I have the program not at home and monday is the first day I'm on workplace back. I will try with ssh to look in the main server for the backup but I must confess it is a too old one. :( Any way I can make a simular here at home and will try it. Special why I can't get two pictures and you can with this one. On first view I do not see the different ATM. Two questions. The step where the scale is done should not be need. The images should already at correct size. ImageToPrint=img(imgTop,.......) is next allowed? (just to be sure) ImageToPrint=ImgTop or must it be ImageToPrint=ImgTop.Copy() This are the things ( .Copy() ) confusing me :( Second In the example you handle a label/textbox style. I need also a way for text with multi lines (textArea style) The Draw.Clip(x,y,w,h) should help to do that but I cant get it working. Do you think it is a bug or I'm doing something wrong? Don't hurry, you have to do more. For me it would be nice to know something more before monday. In the mean time I will play with your example and hope to find something working (to morrow, friday) ATM i'm a bit sick of all the problems :( many, many TIA Ron > Thanks > > 8-{)} Timothy Marshal-Nichols > > > From ronstk at ...239... Thu Jul 20 21:50:43 2006 From: ronstk at ...239... (Ron Onstenk) Date: Thu, 20 Jul 2006 21:50:43 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607201032.33071.sirfabien@...626...> References: <200607200741.39723.ronstk@...239...> <200607201032.33071.sirfabien@...626...> Message-ID: <200607202150.43900.ronstk@...239...> On Thursday 20 July 2006 10:32, Fabien Bodard wrote: > Le Jeudi 20 Juillet 2006 07:41, Ron Onstenk a ?crit?: > in fact i want to help you... but i don't understand what you say .... :/ > > Can you send me your code sources ? > i will see what i can doo ! > > Fabien > Thanks Fabien for the reaction. I did extract the specific part out the project. It worked stand alone but is a bigg mess of all the trials printstring[1..7] :) After some redesign of the forms with cut and paste I had no more names left as panel1 and panel2 but on the form the last I made it was a drawingarea Shame to me ;( Then I open a fisc://ronathome/ to transfer it to home. I do not have personal email at the workplace so the best way was a transfer with fish:// and use NX to create the mail. Boing, bang, crash ??? with linux !!! No, I think the USB port/chip/hub had a bad day :) Having a USB Keyboard/mouse, then you know. I got also from Timothy an excellent example and I bet on it ATM. Thanks Ron From sbungay at ...981... Thu Jul 20 22:06:40 2006 From: sbungay at ...981... (sbungay) Date: Thu, 20 Jul 2006 16:06:40 -0400 Subject: [Gambas-user] Function doing unexpected things... In-Reply-To: <20060720170056.M3295@...1382...> References: <44BEEBBD.20803@...981...> <20060720170056.M3295@...1382...> Message-ID: <44BFE250.6010801@...981...> Yes. nando wrote: > Is 'ClassName.SubTotal' a float ?? > > > ---------- Original Message ----------- > From: sbungay > To: gambas-user at lists.sourceforge.net > Sent: Wed, 19 Jul 2006 22:34:37 -0400 > Subject: [Gambas-user] Function doing unexpected things... > > >>How to explain this without writing tons of code... hmmmmm.. here goes. >> I have a class which contains 3 public variables of type float. >> The class gets instantiated. >> One of the items within the class is named "subtotal" and it's value >>is derived by summing up the items in one column of a grid. To do this I >>wanted to use a function which returned type Float. So (keeping code >>here to a minimum) the whole mess looks kind of like this... >> >>ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) >> >>Private Function ComputeSubTotal (SourceGrid AS GridView, Col as >>Integer) AS Float >>Dim SubTotal AS Float >>. >>. >>. >>Logic to sum the column into "SubTotal" goes here >>. >>. >>. >>Return SubTotal >>End >> >> Gives me the error >> >>"Expected Float, got Function" >> >> I expected the assignment to take the return value of the function >>not the function itself... is this a bug or am I doing something wrong? >>I can work around it using a SUB but IMHO it is more elegant to use a >>function. >> >>P.S. >> Haven't used GAMBAS for over a year, just downloaded the latest >>version and compiled it... it's looking very good Benoit. I like the new >>editor. >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>opinions on IT & business topics through brief surveys -- and earn cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Thu Jul 20 22:09:08 2006 From: sbungay at ...981... (sbungay) Date: Thu, 20 Jul 2006 16:09:08 -0400 Subject: [Gambas-user] Function doing unexpected things... In-Reply-To: <200607201253.27391.gambas@...1...> References: <44BEEBBD.20803@...981...> <200607201253.27391.gambas@...1...> Message-ID: <44BFE2E4.4070907@...981...> Going to take me a few minutes... it's on another machine... I can tell you that it is V1.9.34... source code to follow.... Benoit Minisini wrote: > On Thursday 20 July 2006 04:34, sbungay wrote: > >> How to explain this without writing tons of code... hmmmmm.. here goes. >> I have a class which contains 3 public variables of type float. >> The class gets instantiated. >> One of the items within the class is named "subtotal" and it's value >>is derived by summing up the items in one column of a grid. To do this I >>wanted to use a function which returned type Float. So (keeping code >>here to a minimum) the whole mess looks kind of like this... >> >>ClassName.SubTotal = ComputeSubTotal(GridName,GridName.Column) >> >>Private Function ComputeSubTotal (SourceGrid AS GridView, Col as >>Integer) AS Float >>Dim SubTotal AS Float >>. >>. >>. >>Logic to sum the column into "SubTotal" goes here >>. >>. >>. >>Return SubTotal >>End >> >> Gives me the error >> >>"Expected Float, got Function" >> >> I expected the assignment to take the return value of the function >>not the function itself... is this a bug or am I doing something wrong? >>I can work around it using a SUB but IMHO it is more elegant to use a >>function. >> >>P.S. >> Haven't used GAMBAS for over a year, just downloaded the latest >>version and compiled it... it's looking very good Benoit. I like the new >>editor. >> > > > It seems to be a bug. I need the version of Gambas you use, and the complete > source code of the module/class where the function is located. > > Regards, > From stefanopalmeri at ...152... Fri Jul 21 01:23:54 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 21 Jul 2006 01:23:54 +0200 Subject: [Gambas-user] about listbox mode multi Message-ID: <200607210123.54376.stefanopalmeri@...152...> Hi all. Hi, Benoit. I noticed a strange behaviour of Listbox control when its mode is "multi". It seems that when I use the select event, I get the item text selected before the actual current selected. To be much clear, I've attached a little example. Try to run it and select multiple lines of text, while viewing the text labels... No problem when the mode is "single". Gambas version is 1.9.34. Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: example-listbox-0.0.1.tar.gz Type: application/x-tgz Size: 742 bytes Desc: not available URL: From stefanopalmeri at ...152... Fri Jul 21 01:34:45 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 21 Jul 2006 01:34:45 +0200 Subject: [Gambas-user] little boring bug In-Reply-To: <200607202049.11475.ronstk@...239...> References: <200607201615.33366.stefanopalmeri@...152...> <200607202049.11475.ronstk@...239...> Message-ID: <200607210134.45775.stefanopalmeri@...152...> Alle 20:49, gioved? 20 luglio 2006, Ron Onstenk ha scritto: > On Thursday 20 July 2006 16:15, Stefano Palmeri wrote: > > @ Ron Onstenk: > > I remember you confirmed the help page bug > > in 1.9.32. What about for 1.9.34 on your system? Thanks. > > > > I can only tell in .33 I have seen it to. :( > The latest .34 is in the download/developer/ map but I'm > ATM not interested to complie and install it. > OK. Thanks for answer... At the moment I linked the main page file "help?en" to my desktop and I browse the help pages with Firefox offline and no problems. It seems that konqueror has some trouble in opening "help?en" ...maybe the question point... Thanks, Stefano Palmeri From rporticio at ...43... Fri Jul 21 04:45:41 2006 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 20 Jul 2006 19:45:41 -0700 (PDT) Subject: [Gambas-user] cannot find driver for postgresql Message-ID: <20060721024541.19800.qmail@...1034...> dea friends: i'm using redhat 9 distro and gambas 1.0.16. i tried the database example and got the error: cannot find driver for postgresql. redhat9 has postgresql-7.3.2-3 inside which is running well. in fact i laready made a database in it through the console. i also set the tcip to true in the posgresql.conf and modified the pg_hba.conf. what must be the problem on this. thanks for any help ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From neusse at ...626... Fri Jul 21 05:49:25 2006 From: neusse at ...626... (George Neusse) Date: Thu, 20 Jul 2006 20:49:25 -0700 Subject: [Gambas-user] SQL SELECT DISTINCT Message-ID: Hello, I have been playing around with Gambas for a few versions. I think it is a great tool. But..... I am having some trouble with the DB object. I want to query a table for a field. but i want that "DISTINCT" elements returned. What I see in the docs only seems to want to deal with a "WHERE" caluse. There are things that can be done in the "SELECT" that cant be done in the "WHERE", How do I submit a strait SQL statement and get the returned result set. It seems this would also be needed for stored procedures. Am I missing something here? Thanks, George Neusse Keep up the GREAT work with GAMBAS! -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.marshal-nichols at ...247... Fri Jul 21 08:22:02 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Fri, 21 Jul 2006 07:22:02 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607202136.49551.ronstk@...239...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Ron > Onstenk > Sent: Thursday, 20 July 2006 20:37 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > On Thursday 20 July 2006 10:36, Timothy Marshal-Nichols wrote: > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net > > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Ron > > > Onstenk > > > Sent: Thursday, 20 July 2006 06:42 > > > To: gambas-user at lists.sourceforge.net > > > Subject: [Gambas-user] Print probleem with pictures/text > > > > > ---8<---- > Thanks Timothy, > > You made again a excellent example. > > I have the program not at home and monday is the first day I'm on > workplace back. > I will try with ssh to look in the main server for the backup but I must > confess it is a too old one. :( > > Any way I can make a simular here at home and will try it. > Special why I can't get two pictures and you can with this one. > *** Timothy: Without seeing your work it is hard to say. Possible answers are: (1) You are drawing over your image with something. (2) You have more than one Draw.Begin(). *** > On first view I do not see the different ATM. > > Two questions. > > The step where the scale is done should not be need. > The images should already at correct size. > ImageToPrint=img(imgTop,.......) > > is next allowed? (just to be sure) > ImageToPrint=ImgTop > or must it be > ImageToPrint=ImgTop.Copy() > This are the things ( .Copy() ) confusing me :( *** Timothy: No problem. I just wanted the example to be a little more general. After all part of the UNIX Philosophy is 'solve the general problem and then apply it to your specific needs'. This idea goes back to the first pioneers of UNIX. It is still a good one. *** > > Second > In the example you handle a label/textbox style. > I need also a way for text with multi lines (textArea style) *** Timothy: The text is taken from a TextArea and should be multi line in the print out. The Align options like Center do work. What I think you want is a 'WordWrap' option. This is not supported by the Draw.Text() method. But it should be possible to use Draw.TextWidth(txt) to create a usable version of WordWrap. Evan if it is not perfect. *** > The Draw.Clip(x,y,w,h) should help to do that but I cant get it working. > Do you think it is a bug or I'm doing something wrong? *** Timothy: Clip works for me. But I do not think you need it. > > Don't hurry, you have to do more. > For me it would be nice to know something more before monday. > > In the mean time I will play with your example and hope to find *** Timothy: MAKE SURE YOU ADD IN THE BUG FIX FROM MY PREVIOUS EMAIL. > something working (to morrow, friday) > ATM i'm a bit sick of all the problems :( > > many, many TIA > > Ron > > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Thanks 8-{)} Timothy Marshal-Nichols From sirfabien at ...626... Fri Jul 21 18:18:49 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Fri, 21 Jul 2006 18:18:49 +0200 Subject: [Gambas-user] Fwd: Pb avec wanadoo! Message-ID: <200607211818.49241.sirfabien@...626...> This is a message from Benoit: Hi Fabien (it's me ;-) ) The wanadoo server is back-listed on spamcop.net, so i can't send email on none mailing-list for this time... if you can a little mail to advertice people for me, it will be sympatic ! (it's done !) thank by advance, -- Benoit Minisini ---------- Message transmis ---------- Subject: Pb avec wanadoo! Date: Jeudi 20 Juillet 2006 22:09 From: Benoit Minisini To: Fabien Bodard Salut Fabien, Le serveur de wanadoo est black-list? sur spamcop.net, ce qui fait que je ne peux plus envoyer de mails sur aucune mailing-list pour l'instant... Si tu peux envoyer un petit mail pour pr?venir les gens ? ma place, ce serait sympa! Merci d'avance. -- Benoit Minisini ------------------------------------------------------- From sirfabien at ...626... Fri Jul 21 18:34:03 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Fri, 21 Jul 2006 18:34:03 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <200607202115.01253.ronstk@...239...> References: <44BF9D16.30005@...1237...> <200607201931.20558.sirfabien@...626...> <200607202115.01253.ronstk@...239...> Message-ID: <200607211834.03405.sirfabien@...626...> Le Jeudi 20 Juillet 2006 21:15, Ron Onstenk a ?crit?: > On Thursday 20 July 2006 19:31, Fabien Bodard wrote: > > Le Jeudi 20 Juillet 2006 17:11, Leonardo Miliani a ?crit?: > > > Hi Benoit, > > > do you think to inplement the "unsigned int" data type in Gambas, as is > > > in C language? > > > It could be useful in a lot of cases, i.e. when working on real 32 bit > > > words is needed. > > > > it remember me a query to Benoit :-)... > > > > > > Dear Benoit, > > Is it possible to have something like in c to load binary structure ? > > > > For exemple the TYPE model... and some keys to restrict the variable > > size like in vb > > TYPE montype > > mystring as string * 32 > > mySTaticarray[12] as integer > > END TYPE > > > > dim $montype as montype > > > > fic = open monfichier for read > > > > Read #fic, $montype, len(montype) > > close fic > > > > remember that a type can contain other type or array of type... In fact > > it miss me for loading 3D object files. i've trying to do that without > > but... it's really difficult as i need to query for each type. > > > > if you have an idea of how to manage structures... without passing by > > classes... please make it ! it's usefull in many place. > > > > Regards, > > Fabien > > The intention of Benoit is that UDT (User Data Types) should be declared > as a class file. > > montype.class: > > Public mystring as string[32] > public mySTaticarray[12] as integer > > public sub _new() > 'the initialize of the data type if need > end > > Pro: I think it is more flexible and better usable as object versus VB > Again: If there are more UDT's will be used with external library calls > you can get a mass of small (relative useless) files. > I remember modules in VB to be able to use the windows API for some > components with 10 or more (seen once over 30) of those UDT's > Calling linux libraries is now possible with gambas and a interface module > to access that library can/will have same mass of UDT's > > To make a visual compact program with less files I support the request > to have a something like TYPE in gambas too. > > > > I'm dreaming > this way a hiearchie of the UDT is possible instead of > spread the files between all the other in alfa sorted way. > > > UDT.class > > public TYPE multitutype > mymulti as tutype[32] > mynonmulti as integer > end type > > public sub _new() > 'the initialize of the data type(s) if need > end > > > usage: > dim myUDT as UDT > myUDT.montype.mystring="hello world" > myUDT.tutype.mystring="Good morning all" > > myUDT.multitutype.mymulti[0]=myUDT.tutype > myUDT.multitutype.mynonmulti=1234 > > do you like that Fabien :) no ! public TYPE tutype mystring as string[32] mySTaticarray[12] as integer end type public TYPE montype mystring as string[32] mySTaticarray[12] as integer mytutipe[3] as tutype end type dim myudt as UDT.Montype mydut.mystring="hello" myudt.mystringarray[0]="coucou" myudt.mytutipe.mystring = "word" or TYPE StringData Name as string * 10 FirstName as string *10 END TYPE dim myString data as stringdata Read #file, MystringData, TypeLen(MyStingData) 'who is = to 20 in the file : 'Bodard Fabien ' now i can draw a function in gambas like : FileRead(File as stream, type as type, n) (chhht!! it's fread in c in fact) but i like the idea to have the capability to load ad save binary data in one time like in C. > > Poor Benoit :) > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From benoit.minisini at ...626... Fri Jul 21 23:52:18 2006 From: benoit.minisini at ...626... (Benoit Minisini) Date: Fri, 21 Jul 2006 23:52:18 +0200 Subject: [Gambas-user] WebBrowser component In-Reply-To: <200607190251.55750.pcpaul2004@...247...> References: <200607190251.55750.pcpaul2004@...247...> Message-ID: <200607212352.18943.gambas@...1...> On Wednesday 19 July 2006 03:51, Paul wrote: > Quick question - is there, or will there be, any way of getting to the > document object (assuming it has one) of the WebBrowser component? > > I'd like to be able to directly input HTML/text into it (similar to the > Text property for a TextArea) for display rather than just have it display > a webpage, but I've not found anyway of doing so as yet. > This is a good idea. I may do it in the future. Regards, -- Benoit Minisini From benoit.minisini at ...626... Sat Jul 22 00:11:36 2006 From: benoit.minisini at ...626... (Benoit Minisini) Date: Sat, 22 Jul 2006 00:11:36 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <200607220011.36347.gambas@...1...> On Wednesday 19 July 2006 12:38, csorda at ...69... wrote: > Hi everyone, > what can i do to set echo off in serial params before open a serial port? > Thanks a lot. Best regards. Carlo Sorda. > > By reading the code of Daniel, it seems that echo is not set, as he clears the ECHO flag when opening the serial port. But I'm not a serial port guru, so I will check. Maybe a new property Echo, to set or unset it? -- Benoit Minisini From ronstk at ...239... Sat Jul 22 00:55:09 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 22 Jul 2006 00:55:09 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607220055.09650.ronstk@...239...> On Thursday 20 July 2006 10:36, Timothy Marshal-Nichols wrote: > The attached project should print out two images on a page. One in the top > half, and the other - surprise, surprise - in the bottom. Above each image > should be some text (from a text area) centred in a rectangle. I hope this > goes some way in demonstrating what you need to do in your project. (I could > not completely work out what you wanted from your email) > > One thing I should apologise for. This project has been done on a slightly > out of data version of the development version of Gambas and is a bit quick > and dirty. (I am in the middle of updating the Linux distribution I am > using. And I have not reinstalled everything.) I hope this does not cause > any problems, but I thought I had better warn just in case you have any > problems with the project. > > Thanks > > 8-{)} Timothy Marshal-Nichols Hi Timothy, If you was a girl and living next door you can get a big kiss from me. I simple extract and did a run. The update for more correct position was less importand for me. It was the way how to do the double picture. Still unknown what I'm doing wrong, I have to wait till Monday. Could also the test the Draw.clip() method and is also OK now. When I read this version I have done basically the same with the previous example you made some time back to Draw.Image but with a fault somewhere. (slap, slap) I hope Benoit will consider to add, if you allow, your example(s) to the standard example set. Again many thanks, Ron From joe1962 at ...626... Sat Jul 22 10:07:38 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 22 Jul 2006 04:07:38 -0400 Subject: [Gambas-user] Unsigned int In-Reply-To: <200607202115.01253.ronstk@...239...> References: <44BF9D16.30005@...1237...> <200607201931.20558.sirfabien@...626...> <200607202115.01253.ronstk@...239...> Message-ID: <6c208f950607220107y5718cef7q954903dfde68f968@...627...> On 7/20/06, Ron Onstenk wrote: > > The intention of Benoit is that UDT (User Data Types) should be declared > as a class file. > Type structures are simple to understand for me, but then I still hate classes and OO, lol. > > Pro: I think it is more flexible and better usable as object versus VB I'll take your word for this.... ;). > Again: If there are more UDT's will be used with external library calls > you can get a mass of small (relative useless) files. Yes, I'm already getting this problem, since I was very used to type structures in VB6. > > To make a visual compact program with less files I support the request > to have a something like TYPE in gambas too. > > I'm dreaming > this way a hiearchie of the UDT is possible instead of > spread the files between all the other in alfa sorted way. > > > UDT.class > public TYPE montype > mystring as string[32] > mySTaticarray[12] as integer > end type > > public TYPE tutype > mystring as string[32] > mySTaticarray[12] as integer > end type > > public TYPE multitutype > mymulti as tutype[32] > mynonmulti as integer > end type > > public sub _new() > 'the initialize of the data type(s) if need > end > > > usage: > dim myUDT as UDT > myUDT.montype.mystring="hello world" > myUDT.tutype.mystring="Good morning all" > > myUDT.multitutype.mymulti[0]=myUDT.tutype > myUDT.multitutype.mynonmulti=1234 > Yes, this could be one way to handle it. Another way could be to have a special class type for type structures that goes inside a parent class (call this root class UDT if you like) in the project tree. This has interesting connotations, like having one type class as child of another because it defines one of the members of the type structure in the parent class! Regards, Joe1962 From sourceforge-raindog2 at ...94... Sat Jul 22 22:28:21 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 22 Jul 2006 16:28:21 -0400 Subject: [Gambas-user] SQL SELECT DISTINCT In-Reply-To: References: Message-ID: <200607221628.22596.sourceforge-raindog2@...94...> On Thu July 20 2006 23:49, George Neusse wrote: > I am having some trouble with the DB object. > I want to query a table for a field. but i want that > "DISTINCT" elements returned. myResult = DB.Exec("SELECT DISTINCT * from someTable WHERE ...") I don't know why the docs say "WHERE clause". I don't even think you can specify a WHERE clause without a SELECT. I assume whoever did the writeup for DB.Exec copied the text from the DB.Find method and forgot to change it. Rob From ronstk at ...239... Sat Jul 22 23:23:02 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 22 Jul 2006 23:23:02 +0200 Subject: [Gambas-user] SQL SELECT DISTINCT In-Reply-To: References: Message-ID: <200607222323.02626.ronstk@...239...> On Friday 21 July 2006 05:49, George Neusse wrote: > Hello, > > I have been playing around with Gambas for a few versions. I think it is a > great tool. > > But..... > > I am having some trouble with the DB object. > > I want to query a table for a field. but i want that "DISTINCT" elements > returned. > What I see in the docs only seems to want to deal with a "WHERE" caluse. > There are things that can be done in the "SELECT" that cant be done in the > "WHERE", > How do I submit a strait SQL statement and get the returned result set. > It seems this would also be needed for stored procedures. > > > Am I missing something here? > dim hResult as Result dim hConn as Connection dim sql as string sql="select distinct tbl_id as membernumber, name from members where ....bla bla" hResult =hConn.exec(sql) 'do with hResult you want This works great here with MySQL. One note: The ampersand can trigger the internal substitute for parameterised queries. for the remaining part it should act as direct request to the sql server. Ron From gambas at ...1... Sat Jul 22 22:33:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Jul 2006 22:33:04 +0200 Subject: [Gambas-user] WebBrowser component In-Reply-To: <200607190251.55750.pcpaul2004@...247...> References: <200607190251.55750.pcpaul2004@...247...> Message-ID: <200607222233.04873.gambas@...1...> On Wednesday 19 July 2006 03:51, Paul wrote: > Quick question - is there, or will there be, any way of getting to the > document object (assuming it has one) of the WebBrowser component? > > I'd like to be able to directly input HTML/text into it (similar to the > Text property for a TextArea) for display rather than just have it display > a webpage, but I've not found anyway of doing so as yet. > This is a good idea. I may do it in the future. Regards, -- Benoit Minisini From ronstk at ...239... Sat Jul 22 23:54:09 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 22 Jul 2006 23:54:09 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607222354.10226.ronstk@...239...> On Friday 21 July 2006 08:22, Timothy Marshal-Nichols wrote: > *** Timothy: The text is taken from a TextArea and should be multi line in > the print out. The Align options like Center do work. > > What I think you want is a 'WordWrap' option. This is not supported by the > Draw.Text() method. But it should be possible to use Draw.TextWidth(txt) to > create a usable version of WordWrap. Evan if it is not perfect. > *** You are correct with 'WordWrap'. In the screen shot the cyan is the size and the text is not wrapped :( Using next code part: bigText = file.Load("garantie.text") draw.BackColor = color.Red draw.FillColor = color.Green draw.ForeColor = color.Yellow draw.Transparent = FALSE draw.FillColor = color.Cyan draw.FillStyle = fill.Solid ' Draw.Text(bigText, 100, (Printer.Height / 2) + 100 + (Printer.Height / 4), Printer.Width - 200, Draw.TextHeight(bigText), Align.left) ' Draw.Rect(100, (Printer.Height / 2) + 100 + (Printer.Height / 4), Printer.Width - 200, Draw.TextHeight(bigText)) Draw.Rect(100, (Printer.Height / 2) + 100 + (Printer.Height / 4), 1000, Draw.TextHeight(bigText)) Draw.Text(bigText, 100, (Printer.Height / 2) + 100 + (Printer.Height / 4), 1000, Draw.TextHeight(bigText), Align.left) I'll try to make a function for wordwrap or the bigtext must provide the correct width. Anyway I should be able to more now after all the struggle. Thanks again Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: draw-text.jpg Type: image/jpeg Size: 14008 bytes Desc: not available URL: From gambas at ...1... Sun Jul 23 00:07:20 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 00:07:20 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607222354.10226.ronstk@...239...> References: <200607222354.10226.ronstk@...239...> Message-ID: <200607230007.20823.gambas@...1...> On Saturday 22 July 2006 23:54, Ron Onstenk wrote: > On Friday 21 July 2006 08:22, Timothy Marshal-Nichols wrote: > > *** Timothy: The text is taken from a TextArea and should be multi line > > in the print out. The Align options like Center do work. > > > > What I think you want is a 'WordWrap' option. This is not supported by > > the Draw.Text() method. But it should be possible to use > > Draw.TextWidth(txt) to create a usable version of WordWrap. Evan if it is > > not perfect. > > *** > > You are correct with 'WordWrap'. > In the screen shot the cyan is the size and the text is not wrapped :( > > Using next code part: > bigText = file.Load("garantie.text") > draw.BackColor = color.Red > draw.FillColor = color.Green > draw.ForeColor = color.Yellow > draw.Transparent = FALSE > draw.FillColor = color.Cyan > draw.FillStyle = fill.Solid > > ' Draw.Text(bigText, 100, (Printer.Height / 2) + 100 + (Printer.Height / > 4), Printer.Width - 200, Draw.TextHeight(bigText), Align.left) ' > Draw.Rect(100, (Printer.Height / 2) + 100 + (Printer.Height / 4), > Printer.Width - 200, Draw.TextHeight(bigText)) Draw.Rect(100, > (Printer.Height / 2) + 100 + (Printer.Height / 4), 1000, > Draw.TextHeight(bigText)) Draw.Text(bigText, 100, (Printer.Height / 2) + > 100 + (Printer.Height / 4), 1000, Draw.TextHeight(bigText), Align.left) > > I'll try to make a function for wordwrap or the bigtext must provide the > correct width. > > Anyway I should be able to more now after all the struggle. > > Thanks again > > Ron There is no word wrap at the moment because I don't know if this was possible in gb.gtk. When the Draw class will be written in gb.gtk, maybe you will this feature (and others) added to gb.qt. It depends on what we can do with both gb.qt and gb.gtk. Regards, -- Benoit Minisini From gambas at ...1... Sun Jul 23 00:10:24 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 00:10:24 +0200 Subject: [Gambas-user] SQL SELECT DISTINCT In-Reply-To: <200607221628.22596.sourceforge-raindog2@...94...> References: <200607221628.22596.sourceforge-raindog2@...94...> Message-ID: <200607230010.24262.gambas@...1...> On Saturday 22 July 2006 22:28, Rob Kudla wrote: > On Thu July 20 2006 23:49, George Neusse wrote: > > I am having some trouble with the DB object. > > I want to query a table for a field. but i want that > > "DISTINCT" elements returned. > > myResult = DB.Exec("SELECT DISTINCT * from someTable WHERE ...") > > I don't know why the docs say "WHERE clause". I don't even think > you can specify a WHERE clause without a SELECT. I assume > whoever did the writeup for DB.Exec copied the text from the > DB.Find method and forgot to change it. > > Rob > But who did that? :-) -- Benoit Minisini From ronstk at ...239... Sun Jul 23 00:39:43 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 23 Jul 2006 00:39:43 +0200 Subject: [Gambas-user] SQL SELECT DISTINCT In-Reply-To: <200607230010.24262.gambas@...1...> References: <200607221628.22596.sourceforge-raindog2@...94...> <200607230010.24262.gambas@...1...> Message-ID: <200607230039.43585.ronstk@...239...> On Sunday 23 July 2006 00:10, Benoit Minisini wrote: > But who did that? :-) > Nobody? They last update is in 2005, and looks very different ATM. Ron From ronstk at ...239... Sun Jul 23 00:48:18 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 23 Jul 2006 00:48:18 +0200 Subject: [Gambas-user] SQL SELECT DISTINCT In-Reply-To: <200607230039.43585.ronstk@...239...> References: <200607230010.24262.gambas@...1...> <200607230039.43585.ronstk@...239...> Message-ID: <200607230048.18598.ronstk@...239...> On Sunday 23 July 2006 00:39, Ron Onstenk wrote: > Nobody? > > They last update is in 2005, and looks very different ATM. > > Ron Should read the small letters with a loupe or drop my sun glasses :) It is Feb 2006 by gambas. Who is that one? :) Ron From gambas at ...1... Sun Jul 23 10:54:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 10:54:18 +0200 Subject: [Gambas-user] cannot find driver for postgresql In-Reply-To: <20060721024541.19800.qmail@...1034...> References: <20060721024541.19800.qmail@...1034...> Message-ID: <200607231054.18527.gambas@...1...> On Friday 21 July 2006 04:45, Ramon Orticio wrote: > dea friends: > > i'm using redhat 9 distro and gambas 1.0.16. i tried > the database example and got the error: cannot find > driver for postgresql. redhat9 has > postgresql-7.3.2-3 inside which is running well. in > fact i laready made a database in it through the > console. i also set the tcip to true in the > posgresql.conf and modified the pg_hba.conf. > > what must be the problem on this. > > thanks for any help > > ramon > The postgresql driver is the gambas one, that should not have been compiled or installed. Did you compile from source? If so, did you install the postgresql development packages? -- Benoit Minisini From gambas at ...1... Sun Jul 23 11:11:32 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 11:11:32 +0200 Subject: [Gambas-user] SerialPort and Xmodem (rzsz) In-Reply-To: <425.4cd7d700.31f0fcdd@...1472...> References: <425.4cd7d700.31f0fcdd@...1472...> Message-ID: <200607231111.32108.gambas@...1...> On Thursday 20 July 2006 17:35, BertOudshoorn at ...1472... wrote: > Has somebody experiences with the SerialPort and rzsz. I dial-in and use a > conversation via the SerialPort, wich ends with "start now Xmodem". > I tried an Exec/Shell statement "rx -X thefile": It seems to start a > "separate" > shell-konsole, but there is no start trigger (relation). An other process ? > It works with Minicom, and I can probably make a (minicom) script, but pure > in/via Gambas would be nicer. > In windows, I used a VBX/OCX, with an "integrated" method of the object. > Thanks, Bert Oudshoorn What is 'rzsz' exactly? -- Benoit Minisini From gambas at ...1... Sun Jul 23 11:16:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 11:16:00 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <44BF9D16.30005@...1237...> References: <44BF9D16.30005@...1237...> Message-ID: <200607231116.00876.gambas@...1...> On Thursday 20 July 2006 17:11, Leonardo Miliani wrote: > Hi Benoit, > do you think to inplement the "unsigned int" data type in Gambas, as is > in C language? > It could be useful in a lot of cases, i.e. when working on real 32 bit > words is needed. There won't be any "unsigned" type in 2.0. Maybe in 3.0 ? :-) Logically, you can use Integer to work as if it was unsigned in almost any case. Arithmetic is the same, and shift instructions have signed and unsigned variants (Asr/Lsr, Asl/Lsl). Like in assembler! The only problem is when you want to print them. You can use Long datatype as a workaround to do that. But then you will want unsigned Long, won't you? Regards, -- Benoit Minisini From leonardo at ...1237... Sun Jul 23 12:30:35 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 23 Jul 2006 12:30:35 +0200 Subject: [Gambas-user] Unable to compile gb.pdf component Message-ID: <44C34FCB.9020302@...1237...> On my notebook I've changed distro, from Suse 10.1 to Kubuntu 6.06. I was trying to recompile Gambas byt I'm having a problem compiling gb.pdf component. The configure command doesn't find any error but when I launch the make command, compilation stops with this error: ---------------------------------------- Making all in gb.pdf make[2]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' make all-recursive make[3]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' Making all in src make[4]: Entering directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function 'int GB_INIT()': main.cpp:63: error: 'class GlobalParams' has no member named 'setupBaseFontsFc' make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34' make: *** [all] Error 2 ------------------------------------------------------------ I cannot understand where is the error because I think I have installed all the dependencies needed. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From gambas at ...1... Sun Jul 23 14:16:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 14:16:43 +0200 Subject: [Gambas-user] Unable to compile gb.pdf component In-Reply-To: <44C34FCB.9020302@...1237...> References: <44C34FCB.9020302@...1237...> Message-ID: <200607231416.43885.gambas@...1...> On Sunday 23 July 2006 12:30, Leonardo Miliani wrote: > On my notebook I've changed distro, from Suse 10.1 to Kubuntu 6.06. > I was trying to recompile Gambas byt I'm having a problem compiling > gb.pdf component. > The configure command doesn't find any error but when I launch the make > command, compilation stops with this error: > > ---------------------------------------- > Making all in gb.pdf > make[2]: Entering directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' > make all-recursive > make[3]: Entering directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' > Making all in src > make[4]: Entering directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/s >rc' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions > -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall > -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.cpp -fPIC -DPIC -o .libs/main.o > main.cpp: In function 'int GB_INIT()': > main.cpp:63: error: 'class GlobalParams' has no member named > 'setupBaseFontsFc' > make[4]: *** [main.lo] Error 1 > make[4]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/s >rc' make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34' > make: *** [all] Error 2 > ------------------------------------------------------------ > > I cannot understand where is the error because I think I have installed > all the dependencies needed. What returns 'pkg-config poppler --modversion' on your system? -- Benoit Minisini From gambas at ...1... Sun Jul 23 14:45:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 14:45:10 +0200 Subject: [Gambas-user] about listbox mode multi In-Reply-To: <200607210123.54376.stefanopalmeri@...152...> References: <200607210123.54376.stefanopalmeri@...152...> Message-ID: <200607231445.10142.gambas@...1...> On Friday 21 July 2006 01:23, Stefano Palmeri wrote: > Hi all. Hi, Benoit. > > I noticed a strange behaviour of Listbox control when its > mode is "multi". It seems that when I use the select event, > I get the item text selected before the actual current selected. > > To be much clear, I've attached a little example. Try to run it and select > multiple lines of text, while viewing the text labels... > > No problem when the mode is "single". > Gambas version is 1.9.34. > > Regards, > > Stefano Palmeri Argh! There is an "optimization" in Qt that makes the ListBox signaling changes in selection only when the mouse button is released (in Multi and Extended modes). And the click event is of course signaled when the mouse button is pressed. So your problem... I will try to find a workaround... -- Benoit Minisini From ronstk at ...239... Sun Jul 23 15:15:05 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 23 Jul 2006 15:15:05 +0200 Subject: [Gambas-user] about listbox mode multi In-Reply-To: <200607231445.10142.gambas@...1...> References: <200607210123.54376.stefanopalmeri@...152...> <200607231445.10142.gambas@...1...> Message-ID: <200607231515.06241.ronstk@...239...> On Sunday 23 July 2006 14:45, Benoit Minisini wrote: > Argh! There is an "optimization" in Qt that makes the ListBox signaling > changes in selection only when the mouse button is released (in Multi and > Extended modes). And the click event is of course signaled when the mouse > button is pressed. So your problem... > > I will try to find a workaround... > Part of the qt listbox code is also used in Listview? I had with Listview and multi/extended mode also some problems that look to me the same as this. I could workaround with mousedown and mouseup events and setting a flag to signal the difference. I was suspecting my own quality :) Because the Columnview, Listview and Treeview are all based on same partial code in gambas and qt I'm afraid it count there to, the "optimization" from QT. Ron From rporticio at ...43... Sun Jul 23 16:25:32 2006 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 23 Jul 2006 07:25:32 -0700 (PDT) Subject: [Gambas-user] cannot find postgresql driver Message-ID: <20060723142532.12911.qmail@...1034...> benoit, i did not include in the configure command the postgresql driver. what would be the path then of the driver. would it be in the just in the gambas folder. up to now i just don't know what the word PREFIX mean in the configure command. sorry for this simplistic question. i just can't understand things if not reduced to lowest terms. thanks again. ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Sun Jul 23 16:39:22 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 Jul 2006 16:39:22 +0200 Subject: [Gambas-user] cannot find postgresql driver In-Reply-To: <20060723142532.12911.qmail@...1034...> References: <20060723142532.12911.qmail@...1034...> Message-ID: <200607231639.22382.gambas@...1...> On Sunday 23 July 2006 16:25, Ramon Orticio wrote: > benoit, > > i did not include in the configure command the > postgresql driver. what would be the path then of the > driver. would it be in the just in the gambas folder. > > up to now i just don't know what the word PREFIX mean > in the configure command. sorry for this simplistic > question. i just can't understand things if not > reduced to lowest terms. > > > thanks again. > > ramon > You must first install the postgresql development packages, and everything is detected automatically. Passing options to configure is normally not needed, unless postgresql is installed in a non standard location. Regards, -- Benoit Minisini From fauzi at ...1519... Mon Jul 24 02:50:54 2006 From: fauzi at ...1519... (Fauzi Setianto - ITD) Date: Mon, 24 Jul 2006 07:50:54 +0700 Subject: [Gambas-user] Error #45 Message-ID: <1A66DC4FE8F99C4193F224C84A9E82B4D5A471@...1520...> *********************** Your mail has been scanned by Chandra Asri InterScan. ***********-*********** Hi there, I tried to install Gambas 1.9.34, I think there's no problem. But When I try to open example project or create a new project the error message "ERROR: #45: File or directory does not exist" - "Seeting.Save.110" appears. So I cann't used Gambas. I've tried to search solution with google, but I couldn't find it. Anyone one please help me please. Thanks Fauzi From gambas at ...1... Mon Jul 24 02:57:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 02:57:03 +0200 Subject: [Gambas-user] Error #45 In-Reply-To: <1A66DC4FE8F99C4193F224C84A9E82B4D5A471@...1520...> References: <1A66DC4FE8F99C4193F224C84A9E82B4D5A471@...1520...> Message-ID: <200607240257.03415.gambas@...1...> On Monday 24 July 2006 02:50, Fauzi Setianto - ITD wrote: > *********************** > Your mail has been scanned by Chandra Asri InterScan. > ***********-*********** > > > Hi there, > > I tried to install Gambas 1.9.34, I think there's no problem. But When I > try to open example project or create a new project the error message > "ERROR: #45: File or directory does not exist" - "Seeting.Save.110" > appears. So I cann't used Gambas. > > I've tried to search solution with google, but I couldn't find it. > > Anyone one please help me please. > > Thanks > > Fauzi > It seems there is a bug there. Create by hand the directory ~/.config/gambas, and things should work. Regards, -- Benoit Minisini From fauzi at ...1519... Mon Jul 24 03:10:46 2006 From: fauzi at ...1519... (Fauzi Setianto - ITD) Date: Mon, 24 Jul 2006 08:10:46 +0700 Subject: [Gambas-user] Error #45 Message-ID: <1A66DC4FE8F99C4193F224C84A9E82B40135B68A@...1520...> *********************** Your mail has been scanned by Chandra Asri InterScan. ***********-*********** Hi Benoit, IT works now. Thank you very much. Regards, Fauzi ------------------------------------------------------------------------ ------- It seems there is a bug there. Create by hand the directory ~/.config/gambas, and things should work. Regards, -- Benoit Minisini From rporticio at ...43... Mon Jul 24 03:34:40 2006 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 23 Jul 2006 18:34:40 -0700 (PDT) Subject: [Gambas-user] can't find postgres database driver Message-ID: <20060724013440.82976.qmail@...1039...> benoit, where can i find the complete gambas development package for gambas 1.0.16. i compiled gambas 1.0.16 through its source using the the instructions in readme.redhat text file. i think the postgres and mysql development packages are not included there. if i'm not mistaken this was not a requirement in the previous versions of gambas such as 1.0.4 or 1.0.6. i tried the rpm search and got gambas-gb-db-postgresql-1.0.10-1mdk.i586.rpm but there are lots of dependencies. where could i possibly find the said package compatatible with gambas 1.0.16. thanks ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sbungay at ...981... Mon Jul 24 06:13:39 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 00:13:39 -0400 Subject: [Gambas-user] Unix Date conversion Message-ID: <44C448F3.2070101@...981...> I've been coding for the last 17 hours and can no longer see straight let alone think straight... :) Have a Unix date stored in a table and need to convert it to something the average human can read... there should be a function for this... and at the moment I am too tired to write one.. anybody got one they can part with? I've been looking through the gambas docs and don't see anything there (although I'm so tired I could walk right past the answer and not see it). Steve....ZZZzzzzzzz... Good night all (to those in Europe... good morning!) From timothy.marshal-nichols at ...247... Mon Jul 24 11:48:40 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 24 Jul 2006 10:48:40 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607222354.10226.ronstk@...239...> Message-ID: This project is version of previous one: It includes the bug fix for the first printing example And a second example that includes a crude word wrap function Note that for the Word-Wrap function to work you must have set up your Draw.Begin(Printer) call and also set the Font you want. Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Ron > Onstenk > Sent: Saturday, 22 July 2006 22:54 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > On Friday 21 July 2006 08:22, Timothy Marshal-Nichols wrote: > > *** Timothy: The text is taken from a TextArea and should be > multi line in > > the print out. The Align options like Center do work. > > > > What I think you want is a 'WordWrap' option. This is not > supported by the > > Draw.Text() method. But it should be possible to use > Draw.TextWidth(txt) to > > create a usable version of WordWrap. Evan if it is not perfect. > > *** > > You are correct with 'WordWrap'. > In the screen shot the cyan is the size and the text is not wrapped :( > > Using next code part: > bigText = file.Load("garantie.text") > draw.BackColor = color.Red > draw.FillColor = color.Green > draw.ForeColor = color.Yellow > draw.Transparent = FALSE > draw.FillColor = color.Cyan > draw.FillStyle = fill.Solid > > ' Draw.Text(bigText, 100, (Printer.Height / 2) + 100 + > (Printer.Height / 4), Printer.Width - 200, > Draw.TextHeight(bigText), Align.left) > ' Draw.Rect(100, (Printer.Height / 2) + 100 + (Printer.Height / > 4), Printer.Width - 200, Draw.TextHeight(bigText)) > Draw.Rect(100, (Printer.Height / 2) + 100 + (Printer.Height / > 4), 1000, Draw.TextHeight(bigText)) > Draw.Text(bigText, 100, (Printer.Height / 2) + 100 + > (Printer.Height / 4), 1000, Draw.TextHeight(bigText), Align.left) > > I'll try to make a function for wordwrap or the bigtext must > provide the correct width. > > Anyway I should be able to more now after all the struggle. > > Thanks again > > Ron > -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintTwoImagesV0.0.2.tar Type: application/x-tar Size: 40960 bytes Desc: not available URL: From gambas at ...1... Mon Jul 24 13:46:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 13:46:00 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C448F3.2070101@...981...> References: <44C448F3.2070101@...981...> Message-ID: <200607241346.01035.gambas@...1...> On Monday 24 July 2006 06:13, sbungay wrote: > I've been coding for the last 17 hours and can no longer see straight > let alone think straight... :) > Have a Unix date stored in a table and need to convert it to > something the average human can read... there should be a function for > this... and at the moment I am too tired to write one.. anybody got one > they can part with? I've been looking through the gambas docs and don't > see anything there (although I'm so tired I could walk right past the > answer and not see it). > > Steve....ZZZzzzzzzz... > > Good night all (to those in Europe... good morning!) > What is your "Unix date stored in a table"? A number of seconds from 1/1/1970 stored in a field? -- Benoit Minisini From sbungay at ...981... Mon Jul 24 14:26:15 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 08:26:15 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241346.01035.gambas@...1...> References: <44C448F3.2070101@...981...> <200607241346.01035.gambas@...1...> Message-ID: <44C4BC67.2040008@...981...> That is correct. # of seconds since 1/1/1970. Benoit Minisini wrote: > On Monday 24 July 2006 06:13, sbungay wrote: > >> I've been coding for the last 17 hours and can no longer see straight >>let alone think straight... :) >> Have a Unix date stored in a table and need to convert it to >>something the average human can read... there should be a function for >>this... and at the moment I am too tired to write one.. anybody got one >>they can part with? I've been looking through the gambas docs and don't >>see anything there (although I'm so tired I could walk right past the >>answer and not see it). >> >>Steve....ZZZzzzzzzz... >> >>Good night all (to those in Europe... good morning!) >> > > > What is your "Unix date stored in a table"? A number of seconds from 1/1/1970 > stored in a field? > From sbungay at ...981... Mon Jul 24 14:31:10 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 08:31:10 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241346.01035.gambas@...1...> References: <44C448F3.2070101@...981...> <200607241346.01035.gambas@...1...> Message-ID: <44C4BD8E.40208@...981...> A sample from the actual table is 114123287. Benoit Minisini wrote: > On Monday 24 July 2006 06:13, sbungay wrote: > >> I've been coding for the last 17 hours and can no longer see straight >>let alone think straight... :) >> Have a Unix date stored in a table and need to convert it to >>something the average human can read... there should be a function for >>this... and at the moment I am too tired to write one.. anybody got one >>they can part with? I've been looking through the gambas docs and don't >>see anything there (although I'm so tired I could walk right past the >>answer and not see it). >> >>Steve....ZZZzzzzzzz... >> >>Good night all (to those in Europe... good morning!) >> > > > What is your "Unix date stored in a table"? A number of seconds from 1/1/1970 > stored in a field? > From mrbits at ...927... Mon Jul 24 14:37:19 2006 From: mrbits at ...927... (MrBiTs) Date: Mon, 24 Jul 2006 09:37:19 -0300 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C4BC67.2040008@...981...> Message-ID: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> /* That is correct. # of seconds since 1/1/1970. */ Number of seconds since 1/1/1970 00:00:00 GMT. In perl, for example, we have a very simple line to convert Unix Timestamp into human-readable format: $ perl -e "print scalar localtime(0);" Wed Dec 31 21:00:00 1969 As I told, this is GMT based. So, here in Brazil we have GMT-3, then that's correct. CheerS From gambas at ...1... Mon Jul 24 14:48:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 14:48:09 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> Message-ID: <200607241448.09449.gambas@...1...> On Monday 24 July 2006 14:37, MrBiTs wrote: > /* > That is correct. # of seconds since 1/1/1970. > */ > > Number of seconds since 1/1/1970 00:00:00 GMT. > > In perl, for example, we have a very simple line to convert Unix Timestamp > into human-readable format: > > $ perl -e "print scalar localtime(0);" > Wed Dec 31 21:00:00 1969 > > As I told, this is GMT based. So, here in Brazil we have GMT-3, then > that's correct. > > CheerS > > I have read the man page... Actually this is *not* the true number of seconds before 1/1/1970, because: - All years divisible by four are considered leap years. - Sometimes a leap second is added to some years, and it is ignored. So maybe a dedicated function is needed... -- Benoit Minisini From gambas at ...1... Mon Jul 24 14:56:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 14:56:07 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241448.09449.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> Message-ID: <200607241456.07114.gambas@...1...> On Monday 24 July 2006 14:48, Benoit Minisini wrote: > On Monday 24 July 2006 14:37, MrBiTs wrote: > > /* > > That is correct. # of seconds since 1/1/1970. > > */ > > > > Number of seconds since 1/1/1970 00:00:00 GMT. > > > > In perl, for example, we have a very simple line to convert Unix > > Timestamp into human-readable format: > > > > $ perl -e "print scalar localtime(0);" > > Wed Dec 31 21:00:00 1969 > > > > As I told, this is GMT based. So, here in Brazil we have GMT-3, then > > that's correct. > > > > CheerS > > I have read the man page... > > Actually this is *not* the true number of seconds before 1/1/1970, because: > - All years divisible by four are considered leap years. > - Sometimes a leap second is added to some years, and it is ignored. > > So maybe a dedicated function is needed... But according to: http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html The leap years are respected. The formula is: UnixDate = tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 + (tm_year-70)*31536000 + ((tm_year-69)/4)*86400 - ((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400 So who is right? :-) I really should make a dedicated function! -- Benoit Minisini From sbungay at ...981... Mon Jul 24 14:55:12 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 08:55:12 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241448.09449.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> Message-ID: <44C4C330.3040906@...981...> I was afraid of that... not my data.. created by someone elses php script... will now have a look at their code to see what they are up to. Benoit Minisini wrote: > On Monday 24 July 2006 14:37, MrBiTs wrote: > >>/* >> That is correct. # of seconds since 1/1/1970. >>*/ >> >>Number of seconds since 1/1/1970 00:00:00 GMT. >> >>In perl, for example, we have a very simple line to convert Unix Timestamp >>into human-readable format: >> >>$ perl -e "print scalar localtime(0);" >>Wed Dec 31 21:00:00 1969 >> >>As I told, this is GMT based. So, here in Brazil we have GMT-3, then >>that's correct. >> >>CheerS >> >> > > > I have read the man page... > > Actually this is *not* the true number of seconds before 1/1/1970, because: > - All years divisible by four are considered leap years. > - Sometimes a leap second is added to some years, and it is ignored. > > So maybe a dedicated function is needed... > From sbungay at ...981... Mon Jul 24 15:25:44 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 09:25:44 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241456.07114.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <200607241456.07114.gambas@...1...> Message-ID: <44C4CA58.20202@...981...> Benoit Minisini wrote: > On Monday 24 July 2006 14:48, Benoit Minisini wrote: > >>On Monday 24 July 2006 14:37, MrBiTs wrote: >> >>>/* >>> That is correct. # of seconds since 1/1/1970. >>>*/ >>> >>>Number of seconds since 1/1/1970 00:00:00 GMT. >>> >>>In perl, for example, we have a very simple line to convert Unix >>>Timestamp into human-readable format: >>> >>>$ perl -e "print scalar localtime(0);" >>>Wed Dec 31 21:00:00 1969 >>> >>>As I told, this is GMT based. So, here in Brazil we have GMT-3, then >>>that's correct. >>> >>>CheerS >> >>I have read the man page... >> >>Actually this is *not* the true number of seconds before 1/1/1970, because: >>- All years divisible by four are considered leap years. >>- Sometimes a leap second is added to some years, and it is ignored. >> >>So maybe a dedicated function is needed... > > > But according to: > > http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html > > The leap years are respected. The formula is: > > UnixDate = > tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 + > (tm_year-70)*31536000 + ((tm_year-69)/4)*86400 - > ((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400 > > So who is right? :-) > > I really should make a dedicated function! > Brazil? I thought you resided in France?? Anyway... I messed up on the data entry of the original number I gave you... (I was not wuite awake when I typed it in). Anyway one of the fields actually contains 1142123287 which is quite different from 114123287.. :) Steve From gambas at ...1... Mon Jul 24 15:42:45 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 15:42:45 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C4CA58.20202@...981...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241456.07114.gambas@...1...> <44C4CA58.20202@...981...> Message-ID: <200607241542.45483.gambas@...1...> On Monday 24 July 2006 15:25, sbungay wrote: > Benoit Minisini wrote: > > On Monday 24 July 2006 14:48, Benoit Minisini wrote: > >>On Monday 24 July 2006 14:37, MrBiTs wrote: > >>>/* > >>> That is correct. # of seconds since 1/1/1970. > >>>*/ > >>> > >>>Number of seconds since 1/1/1970 00:00:00 GMT. > >>> > >>>In perl, for example, we have a very simple line to convert Unix > >>>Timestamp into human-readable format: > >>> > >>>$ perl -e "print scalar localtime(0);" > >>>Wed Dec 31 21:00:00 1969 > >>> > >>>As I told, this is GMT based. So, here in Brazil we have GMT-3, then > >>>that's correct. > >>> > >>>CheerS > >> > >>I have read the man page... > >> > >>Actually this is *not* the true number of seconds before 1/1/1970, > >> because: - All years divisible by four are considered leap years. > >>- Sometimes a leap second is added to some years, and it is ignored. > >> > >>So maybe a dedicated function is needed... > > > > But according to: > > > > http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html > > > > The leap years are respected. The formula is: > > > > UnixDate = > > tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 + > > (tm_year-70)*31536000 + ((tm_year-69)/4)*86400 - > > ((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400 > > > > So who is right? :-) > > > > I really should make a dedicated function! > > Brazil? I thought you resided in France?? Anyway... I am not MrBiTs, wake up :-) -- Benoit Minisini From lordheavym at ...626... Mon Jul 24 15:38:28 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 24 Jul 2006 15:38:28 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241456.07114.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <200607241456.07114.gambas@...1...> Message-ID: <200607241538.28745.lordheavym@...626...> Le lundi 24 juillet 2006 14:56, Benoit Minisini a ?crit?: > On Monday 24 July 2006 14:48, Benoit Minisini wrote: > > On Monday 24 July 2006 14:37, MrBiTs wrote: > > > /* > > > That is correct. # of seconds since 1/1/1970. > > > */ > > > > > > Number of seconds since 1/1/1970 00:00:00 GMT. > > > > > > In perl, for example, we have a very simple line to convert Unix > > > Timestamp into human-readable format: > > > > > > $ perl -e "print scalar localtime(0);" > > > Wed Dec 31 21:00:00 1969 > > > > > > As I told, this is GMT based. So, here in Brazil we have GMT-3, then > > > that's correct. > > > > > > CheerS > > > > I have read the man page... > > > > Actually this is *not* the true number of seconds before 1/1/1970, > > because: - All years divisible by four are considered leap years. > > - Sometimes a leap second is added to some years, and it is ignored. > > > > So maybe a dedicated function is needed... > > But according to: > > http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html > > The leap years are respected. The formula is: > > UnixDate = > tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 + > (tm_year-70)*31536000 + ((tm_year-69)/4)*86400 - > ((tm_year-1)/100)*86400 + ((tm_year+299)/400)*86400 > > So who is right? :-) > > I really should make a dedicated function! I've made such function for fabien a long time ago, it was converting php (unix ?) date to gambas Date. It was for gambasforge. If it isn't available anymore, i can do it again ..... Regards, From framedownunder at ...626... Mon Jul 24 16:06:56 2006 From: framedownunder at ...626... (frame down under) Date: Mon, 24 Jul 2006 16:06:56 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241448.09449.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> Message-ID: <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> benoit, Leap years are years that are divisible by 4, except if they are divisible by 400. The year 2000 was not a leap year. Thnx 2006/7/24, Benoit Minisini : > On Monday 24 July 2006 14:37, MrBiTs wrote: > > /* > > That is correct. # of seconds since 1/1/1970. > > */ > > > > Number of seconds since 1/1/1970 00:00:00 GMT. > > > > In perl, for example, we have a very simple line to convert Unix Timestamp > > into human-readable format: > > > > $ perl -e "print scalar localtime(0);" > > Wed Dec 31 21:00:00 1969 > > > > As I told, this is GMT based. So, here in Brazil we have GMT-3, then > > that's correct. > > > > CheerS > > > > > > I have read the man page... > > Actually this is *not* the true number of seconds before 1/1/1970, because: > - All years divisible by four are considered leap years. > - Sometimes a leap second is added to some years, and it is ignored. > > So maybe a dedicated function is needed... > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Mon Jul 24 16:15:42 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 24 Jul 2006 16:15:42 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> Message-ID: <200607241615.42660.lordheavym@...626...> Le lundi 24 juillet 2006 16:06, frame down under a ?crit?: > benoit, > > Leap years are years that are divisible by 4, except if they are > divisible by 400. > > The year 2000 was not a leap year. > > Thnx > the good formula ? -- PUBLIC FUNCTION checkYear(value AS Integer) AS Boolean IF ((((value MOD 4) = 0) AND (value MOD 100) <> 0) OR ((value MOD 400) = 0)) RETURN TRUE ELSE RETURN FALSE ENDIF END -- Regards, From pvera at ...729... Mon Jul 24 16:17:06 2006 From: pvera at ...729... (Pablo Vera) Date: Mon, 24 Jul 2006 09:17:06 -0500 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> Message-ID: <44C4D662.8090100@...729...> Sorry to disagree, but leap years are years that can be divided evenly by 4, except century years unless they can be divided evenly by 400. The year 2000 WAS a leap year. 1600 - yes 1700, 1800, 1900 - no 2000 - yes 2100, 2200, 2300 - no 2400 - yes ... Pablo _______________________________________ frame down under wrote: > benoit, > > Leap years are years that are divisible by 4, except if they are > divisible by 400. > > The year 2000 was not a leap year. > > Thnx > > 2006/7/24, Benoit Minisini : >> On Monday 24 July 2006 14:37, MrBiTs wrote: >>> /* >>> That is correct. # of seconds since 1/1/1970. >>> */ >>> >>> Number of seconds since 1/1/1970 00:00:00 GMT. >>> >>> In perl, for example, we have a very simple line to convert Unix Timestamp >>> into human-readable format: >>> >>> $ perl -e "print scalar localtime(0);" >>> Wed Dec 31 21:00:00 1969 >>> >>> As I told, this is GMT based. So, here in Brazil we have GMT-3, then >>> that's correct. >>> >>> CheerS >>> >>> >> I have read the man page... >> >> Actually this is *not* the true number of seconds before 1/1/1970, because: >> - All years divisible by four are considered leap years. >> - Sometimes a leap second is added to some years, and it is ignored. >> >> So maybe a dedicated function is needed... >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From framedownunder at ...626... Mon Jul 24 16:37:07 2006 From: framedownunder at ...626... (frame down under) Date: Mon, 24 Jul 2006 16:37:07 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C4D662.8090100@...729...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <82b5035a0607240706t6a26d4e8weef63e4e85f9a3c2@...627...> <44C4D662.8090100@...729...> Message-ID: <82b5035a0607240737g77672231l23e47901cffe472c@...627...> indeed: me reading up on wikipedia revealed: http://en.wikipedia.org/wiki/Leap_year#Rules_for_determining_when_to_have_a_leap_year thx! 2006/7/24, Pablo Vera : > Sorry to disagree, but leap years are years that can be divided evenly > by 4, except century years unless they can be divided evenly by 400. > > The year 2000 WAS a leap year. > > 1600 - yes > 1700, 1800, 1900 - no > 2000 - yes > 2100, 2200, 2300 - no > 2400 - yes > ... > > Pablo > _______________________________________ > > frame down under wrote: > > benoit, > > > > Leap years are years that are divisible by 4, except if they are > > divisible by 400. > > > > The year 2000 was not a leap year. > > > > Thnx > > > > 2006/7/24, Benoit Minisini : > >> On Monday 24 July 2006 14:37, MrBiTs wrote: > >>> /* > >>> That is correct. # of seconds since 1/1/1970. > >>> */ > >>> > >>> Number of seconds since 1/1/1970 00:00:00 GMT. > >>> > >>> In perl, for example, we have a very simple line to convert Unix Timestamp > >>> into human-readable format: > >>> > >>> $ perl -e "print scalar localtime(0);" > >>> Wed Dec 31 21:00:00 1969 > >>> > >>> As I told, this is GMT based. So, here in Brazil we have GMT-3, then > >>> that's correct. > >>> > >>> CheerS > >>> > >>> > >> I have read the man page... > >> > >> Actually this is *not* the true number of seconds before 1/1/1970, because: > >> - All years divisible by four are considered leap years. > >> - Sometimes a leap second is added to some years, and it is ignored. > >> > >> So maybe a dedicated function is needed... > >> > >> -- > >> Benoit Minisini > >> > >> ------------------------------------------------------------------------- > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share your > >> opinions on IT & business topics through brief surveys -- and earn cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Mon Jul 24 16:56:57 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 24 Jul 2006 16:56:57 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C448F3.2070101@...981...> References: <44C448F3.2070101@...981...> Message-ID: <200607241656.57279.lordheavym@...626...> Le lundi 24 juillet 2006 06:13, sbungay a ?crit?: > I've been coding for the last 17 hours and can no longer see straight > let alone think straight... :) > Have a Unix date stored in a table and need to convert it to > something the average human can read... there should be a function for > this... and at the moment I am too tired to write one.. anybody got one > they can part with? I've been looking through the gambas docs and don't > see anything there (although I'm so tired I could walk right past the > answer and not see it). > > Steve....ZZZzzzzzzz... > > Good night all (to those in Europe... good morning!) > Try this, i just going to do it It's really dirty but it should work ' Gambas module file PUBLIC SUB Main() PRINT convert(1142123287) END PUBLIC FUNCTION convert(value AS Integer) AS Date DIM $valYear AS Integer DIM $valMonth AS Integer = 1 DIM $valDay AS Integer DIM $valHour AS Integer DIM $valMinute AS Integer DIM $valSecond AS Integer DIM $Months AS Integer[] = [31, 27, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] DIM $i AS Integer DIM $valTmp AS Float $valTmp = (value / (365.25 * 60 * 60 * 24)) $valYear = 1970 + $valTmp IF (checkYear($valYear)) THEN INC ($Months[1]) $valTmp = Frac($valTmp) * 365.25 FOR EACH $i IN $Months IF $valTmp > $i THEN $valTmp = $valTmp - $i INC ($valMonth) ELSE BREAK ENDIF NEXT $valDay = $valTmp $valTmp = ($valTmp - $valDay) * 24 $valHour = $valTmp $valTmp = ($valTmp - $valHour) * 60 $valMinute = $valTmp $valTmp = ($valTmp - $valMinute) * 60 $valSecond = $valTmp RETURN Date($valYear, $valMonth, $valDay, $valHour, $valMinute, $valSecond) END PUBLIC FUNCTION checkYear(value AS Integer) AS Boolean IF ((((value MOD 4) = 0) AND (value MOD 100) <> 0) OR ((value MOD 400) = 0)) RETURN TRUE ELSE RETURN FALSE ENDIF END -- Regards, From sbungay at ...981... Mon Jul 24 18:29:32 2006 From: sbungay at ...981... (sbungay) Date: Mon, 24 Jul 2006 12:29:32 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241656.57279.lordheavym@...626...> References: <44C448F3.2070101@...981...> <200607241656.57279.lordheavym@...626...> Message-ID: <44C4F56C.9050207@...981...> Thanks Laurent.. I have created a class called DateFunctions that has the following contained within it... TimeStampToJulianDay(TimeStamp AS Long) as Integer TimeStampToJulianYear(TimeStamp AS Long) as Integer MonthNumber(JulianDay AS Integer) as Integer MonthName(MonthNumber AS Integer) as String I am constrained by time and the code is not pretty/elegant.. in fact the term "brute force" comes to mind... :) Anyway.. I can instantiate the class and now get what I need.. as needs change so too will the class. This is its current state... ' Gambas class file ' Days in each month (Feb changes depending on leap years) ' Want the class to be dynamic.. there has to be a better way than ' declaring a useless variable at the top. RTFM this... PUBLIC NotStatic AS Boolean CONST cSecondsInADay AS Integer = 86400 CONST cDaysInAYear AS Float = 364.25 CONST cJan AS Integer = 1 CONST cFeb AS Integer = 2 CONST cMar AS Integer = 3 CONST cApr AS Integer = 4 CONST cMay AS Integer = 5 CONST cJun AS Integer = 6 CONST cJul AS Integer = 7 CONST cAug AS Integer = 8 CONST cSep AS Integer = 9 CONST cOct AS Integer = 10 CONST cNov AS Integer = 11 CONST cDecember AS Integer = 12 CONST cJanDays AS Integer = 31 CONST cFebDays AS Integer = 28 CONST cMarDays AS Integer = 31 CONST cAprDays AS Integer = 30 CONST cMayDays AS Integer = 31 CONST cJunDays AS Integer = 30 CONST cJulDays AS Integer = 31 CONST cAugDays AS Integer = 31 CONST cSepDays AS Integer = 30 CONST cOctDays AS Integer = 31 CONST cNovDays AS Integer = 30 CONST cDecDays AS Integer = 31 '*********************************************************************** '* Author: Stephen Bungay '* Date: July 23 2006 '* '* Parameters: '* Integer '* Called By '* '* Calls '* '* Returns '* Integer '*********************************************************************** PUBLIC FUNCTION MonthNumber(JulianDate AS Integer) AS Integer DIM Months AS NEW Integer[13] DIM Scrap AS Integer DIM Counter AS Integer Months[cJan] = cJanDays Months[cFeb] = cFebDays Months[cMar] = cMarDays Months[cApr] = cAprDays Months[cMay] = cMayDays Months[cJun] = cJunDays Months[cJul] = cJulDays Months[cAug] = cAugDays Months[cSep] = cSepDays Months[cOct] = cOctDays Months[cNov] = cNovDays Months[cDecember] = cDecDays Scrap = JulianDate Counter = 1 REPEAT Scrap = Scrap - Months[Counter] Counter = Counter + 1 UNTIL Scrap <= Months[Counter] RETURN (Counter - 1) END '*********************************************************************** '* Author: Stephen Bungay '* Date: July 23 2006 '* '* Parameters: '* Long '* Called By '* '* Calls '* '* Returns '* Integer '*********************************************************************** PUBLIC FUNCTION TimeStampToYear(SecondsSinceEpoch AS Long) AS Integer DIM YearNumber AS Integer DIM DaysSinceEpoch AS Integer DIM YearsSinceEpoch AS Integer DIM FractionalYearsSinceEpoch AS Float DIM JulianDay AS Integer DaysSinceEpoch = SecondsSinceEpoch / cSecondsInADay YearsSinceEpoch = DaysSinceEpoch / cDaysInAYear FractionalYearsSinceEpoch = CFloat(Mid$(CStr(DaysSinceEpoch / cDaysInAYear), InStr(CStr(DaysSinceEpoch / cDaysInAYear), ".", 1), 5)) JulianDay = CInt(cDaysInAYear * FractionalYearsSinceEpoch) RETURN (1970 + YearsSinceEpoch) END '*********************************************************************** '* Author: Stephen Bungay '* Date: July 23 2006 '* '* Parameters: '* Long '* Called By '* '* Calls '* '* Returns '* Integer '*********************************************************************** PUBLIC FUNCTION TimeStampToJulianDay(SecondsSinceEpoch AS Long) AS Integer DIM DaysSinceEpoch AS Integer DIM FractionalYearsSinceEpoch AS Float DIM ExtractedYear AS Integer DIM JulianDay AS Integer DaysSinceEpoch = SecondsSinceEpoch / 86400 FractionalYearsSinceEpoch = CFloat(Mid$(CStr(DaysSinceEpoch / 365.24), InStr(CStr(DaysSinceEpoch / 365.24), ".", 1), 5)) JulianDay = CInt(365 * FractionalYearsSinceEpoch) RETURN (JulianDay) END '*********************************************************************** '* Author: Stephen Bungay '* Date: July 23 2006 '* '* Parameters: '* Integer '* '* Called By '* '* Calls '* '* Returns '* String '* '*********************************************************************** PUBLIC FUNCTION MonthName(MonthNumber AS Integer) AS String DIM X AS String SELECT CASE MonthNumber CASE 1 X = "January" CASE 2 X = "February" CASE 3 X = "March" CASE 4 X = "April" CASE 5 X = "May" CASE 6 X = "June" CASE 7 X = "July" CASE 8 X = "August" CASE 9 X = "September" CASE 10 X = "October" CASE 11 X = "November" CASE 12 X = "December" END SELECT RETURN (X) END Thanks to all for helping out... Laurent Carlier wrote: > Le lundi 24 juillet 2006 06:13, sbungay a ?crit : > >> I've been coding for the last 17 hours and can no longer see straight >>let alone think straight... :) >> Have a Unix date stored in a table and need to convert it to >>something the average human can read... there should be a function for >>this... and at the moment I am too tired to write one.. anybody got one >>they can part with? I've been looking through the gambas docs and don't >>see anything there (although I'm so tired I could walk right past the >>answer and not see it). >> >>Steve....ZZZzzzzzzz... >> >>Good night all (to those in Europe... good morning!) >> > > > Try this, i just going to do it > > It's really dirty but it should work > > ' Gambas module file > > PUBLIC SUB Main() > > PRINT convert(1142123287) > > END > > PUBLIC FUNCTION convert(value AS Integer) AS Date > > DIM $valYear AS Integer > DIM $valMonth AS Integer = 1 > DIM $valDay AS Integer > DIM $valHour AS Integer > DIM $valMinute AS Integer > DIM $valSecond AS Integer > > DIM $Months AS Integer[] = [31, 27, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] > DIM $i AS Integer > DIM $valTmp AS Float > > $valTmp = (value / (365.25 * 60 * 60 * 24)) > $valYear = 1970 + $valTmp > IF (checkYear($valYear)) THEN INC ($Months[1]) > $valTmp = Frac($valTmp) * 365.25 > > FOR EACH $i IN $Months > IF $valTmp > $i THEN > $valTmp = $valTmp - $i > INC ($valMonth) > ELSE > BREAK > ENDIF > NEXT > > $valDay = $valTmp > $valTmp = ($valTmp - $valDay) * 24 > $valHour = $valTmp > $valTmp = ($valTmp - $valHour) * 60 > $valMinute = $valTmp > $valTmp = ($valTmp - $valMinute) * 60 > $valSecond = $valTmp > > RETURN Date($valYear, $valMonth, $valDay, $valHour, $valMinute, $valSecond) > > END > > PUBLIC FUNCTION checkYear(value AS Integer) AS Boolean > > IF ((((value MOD 4) = 0) AND (value MOD 100) <> 0) OR ((value MOD 400) = 0)) > RETURN TRUE > ELSE > RETURN FALSE > ENDIF > > END > > -- > > > Regards, > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From giovanni.romanenghi at ...1525... Mon Jul 24 18:46:14 2006 From: giovanni.romanenghi at ...1525... (Giovanni Romanenghi) Date: Mon, 24 Jul 2006 18:46:14 +0200 Subject: [Gambas-user] LDAP search with gambas2 Message-ID: <44C4F956.3070701@...1525...> I'm newbye for gambas. I use gambas2 ver. 1.9.34. I want read an ldap entry. Init , Bind and search work properly. My problem is this: When I want print my ldap entry if I have attribute multi value don't print all value but only 1 value. This is my code: PUBLIC SUB btnOK_Click() DIM ldaphost AS String = "localhost" DIM ldapport AS Integer = "389" DIM ldaprootdn AS String = "cn=Directory Manager" DIM ldaprootpwd AS String = "password" DIM variabile AS NEW Ldap DIM pippo AS Object[] DIM var1 AS Boolean DIM var2 AS Integer DIM element AS String DIM dict AS NEW Collection DIM count AS Integer TBldaphost.Text = ldaphost TBldapport.Text = ldapport var1 = variabile.Init(ldaphost, ldapport) var2 = variabile.Bind(ldaprootdn, ldaprootpwd) pippo = variabile.Search("dc=sorint,dc=it", 2, "uid=giovanni") '''****************************************' ''''' My problem is in this line '''' FOR EACH element IN pippo[0].getentries() PRINT element; NEXT END Excuseme for my english. TIA Bye Giovanni From jscops at ...11... Mon Jul 24 19:33:50 2006 From: jscops at ...11... (Jacky) Date: Mon, 24 Jul 2006 19:33:50 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C4F56C.9050207@...981...> References: <44C448F3.2070101@...981...> <200607241656.57279.lordheavym@...626...> <44C4F56C.9050207@...981...> Message-ID: <200607241933.50539.jscops@...11...> Le Lundi 24 Juillet 2006 18:29, sbungay a ?crit?: > Thanks Laurent.. I have created a class called DateFunctions that has > the following contained within it... > > > TimeStampToJulianDay(TimeStamp AS Long) as Integer > TimeStampToJulianYear(TimeStamp AS Long) as Integer > > MonthNumber(JulianDay AS Integer) as Integer > MonthName(MonthNumber AS Integer) as String > > I am constrained by time and the code is not pretty/elegant.. in fact > the term "brute force" comes to mind... :) > Anyway.. I can instantiate the class and now get what I need.. as > needs change so too will the class. This is its current state... > > ' Gambas class file > ' Days in each month (Feb changes depending on leap years) > ' Want the class to be dynamic.. there has to be a better way than > ' declaring a useless variable at the top. RTFM this... > PUBLIC NotStatic AS Boolean > > CONST cSecondsInADay AS Integer = 86400 > CONST cDaysInAYear AS Float = 364.25 > > CONST cJan AS Integer = 1 > CONST cFeb AS Integer = 2 > CONST cMar AS Integer = 3 > CONST cApr AS Integer = 4 > CONST cMay AS Integer = 5 > CONST cJun AS Integer = 6 > CONST cJul AS Integer = 7 > CONST cAug AS Integer = 8 > CONST cSep AS Integer = 9 > CONST cOct AS Integer = 10 > CONST cNov AS Integer = 11 > CONST cDecember AS Integer = 12 > > CONST cJanDays AS Integer = 31 > CONST cFebDays AS Integer = 28 > CONST cMarDays AS Integer = 31 > CONST cAprDays AS Integer = 30 > CONST cMayDays AS Integer = 31 > CONST cJunDays AS Integer = 30 > CONST cJulDays AS Integer = 31 > CONST cAugDays AS Integer = 31 > CONST cSepDays AS Integer = 30 > CONST cOctDays AS Integer = 31 > CONST cNovDays AS Integer = 30 > CONST cDecDays AS Integer = 31 > > '*********************************************************************** > '* Author: Stephen Bungay > '* Date: July 23 2006 > '* > '* Parameters: > '* Integer > '* Called By > '* > '* Calls > '* > '* Returns > '* Integer > '*********************************************************************** > PUBLIC FUNCTION MonthNumber(JulianDate AS Integer) AS Integer > > DIM Months AS NEW Integer[13] > > DIM Scrap AS Integer > DIM Counter AS Integer > > Months[cJan] = cJanDays > Months[cFeb] = cFebDays > Months[cMar] = cMarDays > Months[cApr] = cAprDays > Months[cMay] = cMayDays > Months[cJun] = cJunDays > Months[cJul] = cJulDays > Months[cAug] = cAugDays > Months[cSep] = cSepDays > Months[cOct] = cOctDays > Months[cNov] = cNovDays > Months[cDecember] = cDecDays > > Scrap = JulianDate > Counter = 1 > > REPEAT > Scrap = Scrap - Months[Counter] > Counter = Counter + 1 > UNTIL Scrap <= Months[Counter] > > RETURN (Counter - 1) > > END > > '*********************************************************************** > '* Author: Stephen Bungay > '* Date: July 23 2006 > '* > '* Parameters: > '* Long > '* Called By > '* > '* Calls > '* > '* Returns > '* Integer > '*********************************************************************** > PUBLIC FUNCTION TimeStampToYear(SecondsSinceEpoch AS Long) AS Integer > > DIM YearNumber AS Integer > > DIM DaysSinceEpoch AS Integer > DIM YearsSinceEpoch AS Integer > DIM FractionalYearsSinceEpoch AS Float > > DIM JulianDay AS Integer > > DaysSinceEpoch = SecondsSinceEpoch / cSecondsInADay > YearsSinceEpoch = DaysSinceEpoch / cDaysInAYear > FractionalYearsSinceEpoch = CFloat(Mid$(CStr(DaysSinceEpoch / > cDaysInAYear), InStr(CStr(DaysSinceEpoch / cDaysInAYear), ".", 1), 5)) > JulianDay = CInt(cDaysInAYear * FractionalYearsSinceEpoch) > > RETURN (1970 + YearsSinceEpoch) > > END > > '*********************************************************************** > '* Author: Stephen Bungay > '* Date: July 23 2006 > '* > '* Parameters: > '* Long > '* Called By > '* > '* Calls > '* > '* Returns > '* Integer > '*********************************************************************** > PUBLIC FUNCTION TimeStampToJulianDay(SecondsSinceEpoch AS Long) AS Integer > > DIM DaysSinceEpoch AS Integer > DIM FractionalYearsSinceEpoch AS Float > > DIM ExtractedYear AS Integer > DIM JulianDay AS Integer > > DaysSinceEpoch = SecondsSinceEpoch / 86400 > FractionalYearsSinceEpoch = CFloat(Mid$(CStr(DaysSinceEpoch / > 365.24), InStr(CStr(DaysSinceEpoch / 365.24), ".", 1), 5)) > JulianDay = CInt(365 * FractionalYearsSinceEpoch) > > RETURN (JulianDay) > > END > > > '*********************************************************************** > '* Author: Stephen Bungay > '* Date: July 23 2006 > '* > '* Parameters: > '* Integer > '* > '* Called By > '* > '* Calls > '* > '* Returns > '* String > '* > '*********************************************************************** > PUBLIC FUNCTION MonthName(MonthNumber AS Integer) AS String > DIM X AS String > > SELECT CASE MonthNumber > CASE 1 > X = "January" > CASE 2 > X = "February" > CASE 3 > X = "March" > CASE 4 > X = "April" > CASE 5 > X = "May" > CASE 6 > X = "June" > CASE 7 > X = "July" > CASE 8 > X = "August" > CASE 9 > X = "September" > CASE 10 > X = "October" > CASE 11 > X = "November" > CASE 12 > X = "December" > END SELECT > > RETURN (X) > END > > > > Thanks to all for helping out... > > Laurent Carlier wrote: > > Le lundi 24 juillet 2006 06:13, sbungay a ?crit : > >> I've been coding for the last 17 hours and can no longer see straight > >>let alone think straight... :) > >> Have a Unix date stored in a table and need to convert it to > >>something the average human can read... there should be a function for > >>this... and at the moment I am too tired to write one.. anybody got one > >>they can part with? I've been looking through the gambas docs and don't > >>see anything there (although I'm so tired I could walk right past the > >>answer and not see it). > >> > >>Steve....ZZZzzzzzzz... > >> > >>Good night all (to those in Europe... good morning!) > > > > Try this, i just going to do it > > > > It's really dirty but it should work > > > > ' Gambas module file > > > > PUBLIC SUB Main() > > > > PRINT convert(1142123287) > > > > END > > > > PUBLIC FUNCTION convert(value AS Integer) AS Date > > > > DIM $valYear AS Integer > > DIM $valMonth AS Integer = 1 > > DIM $valDay AS Integer > > DIM $valHour AS Integer > > DIM $valMinute AS Integer > > DIM $valSecond AS Integer > > > > DIM $Months AS Integer[] = [31, 27, 31, 30, 31, 30, 31, 31, 30, 31, 30, > > 31] DIM $i AS Integer > > DIM $valTmp AS Float > > > > $valTmp = (value / (365.25 * 60 * 60 * 24)) > > $valYear = 1970 + $valTmp > > IF (checkYear($valYear)) THEN INC ($Months[1]) > > $valTmp = Frac($valTmp) * 365.25 > > > > FOR EACH $i IN $Months > > IF $valTmp > $i THEN > > $valTmp = $valTmp - $i > > INC ($valMonth) > > ELSE > > BREAK > > ENDIF > > NEXT > > > > $valDay = $valTmp > > $valTmp = ($valTmp - $valDay) * 24 > > $valHour = $valTmp > > $valTmp = ($valTmp - $valHour) * 60 > > $valMinute = $valTmp > > $valTmp = ($valTmp - $valMinute) * 60 > > $valSecond = $valTmp > > > > RETURN Date($valYear, $valMonth, $valDay, $valHour, $valMinute, > > $valSecond) > > > > END > > > > PUBLIC FUNCTION checkYear(value AS Integer) AS Boolean > > > > IF ((((value MOD 4) = 0) AND (value MOD 100) <> 0) OR ((value MOD 400) > > = 0)) RETURN TRUE > > ELSE > > RETURN FALSE > > ENDIF > > > > END Hello ! In this mailing list, Jim Ward in 2005 send this code. Try it, it's a perfect code. Jack -------------- next part -------------- A non-text attachment was scrubbed... Name: opendlib-1.0.2.tar.gz Type: application/x-tgz Size: 3549 bytes Desc: not available URL: From gambere at ...1527... Tue Jul 25 00:01:06 2006 From: gambere at ...1527... (gambere at ...1527...) Date: Mon, 24 Jul 2006 19:01:06 -0300 Subject: [Gambas-user] Obtain the career you have always wanted with the University Degree you deserve. Message-ID: tVfnRB6xznV40.NliBThz7rFfKl@...1527... An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Jul 24 22:21:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 22:21:43 +0200 Subject: [Gambas-user] about listbox mode multi In-Reply-To: <200607231515.06241.ronstk@...239...> References: <200607210123.54376.stefanopalmeri@...152...> <200607231445.10142.gambas@...1...> <200607231515.06241.ronstk@...239...> Message-ID: <200607242221.43375.gambas@...1...> On Sunday 23 July 2006 15:15, Ron Onstenk wrote: > On Sunday 23 July 2006 14:45, Benoit Minisini wrote: > > Argh! There is an "optimization" in Qt that makes the ListBox signaling > > changes in selection only when the mouse button is released (in Multi and > > Extended modes). And the click event is of course signaled when the mouse > > button is pressed. So your problem... > > > > I will try to find a workaround... > > Part of the qt listbox code is also used in Listview? > I had with Listview and multi/extended mode also some > problems that look to me the same as this. > > I could workaround with mousedown and mouseup events and > setting a flag to signal the difference. > I was suspecting my own quality :) > > Because the Columnview, Listview and Treeview are all > based on same partial code in gambas and qt I'm afraid > it count there to, the "optimization" from QT. > > Ron > I have changed the way Select events are delivered with ListBox and ListView. Now they are posted, i.e. delivered one event loop later. The consequence is that now the behaviour is more logical. But it can't be perfect. Moreover, I can't have the same behaviour between ListBox and ListView. Anyway, you should not rely on what the current item is during a Select event in Multi or Extended selection mode. Moreover, in these modes, The Click event is raised for each selected element with the ListBox, but only for the first selected one with the ListView. A last note: ListView, TreeView and ColumnView are based on the same QT widget, so all what I said applies to them too. Regards, -- Benoit Minisini From gambas at ...1... Mon Jul 24 22:30:59 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 22:30:59 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607242230.59112.gambas@...1...> On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > This project is version of previous one: > > It includes the bug fix for the first printing example > And a second example that includes a crude word wrap function > > Note that for the Word-Wrap function to work you must have set up your > Draw.Begin(Printer) call and also set the Font you want. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > Can I update your example with this new version? Note that in the Gambas IDE you have a menu entry that creates a compressed archive of your project automatically. Regards, -- Benoit Minisini From gambas at ...1... Mon Jul 24 23:20:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 24 Jul 2006 23:20:47 +0200 Subject: [Gambas-user] Release of gambas 1.0.17 Message-ID: <200607242320.47584.gambas@...1...> Hi, Because of my emails problems, I forgot to announce the release of gambas 1.0.17 there. This version includes many bug fixes backported from the development version. You should use it instead of older ones. Here is the changelog: --8<------------------------------------------------------------------------ DEVELOPMENT ENVIRONMENT * BUG: Closing the translation dialog now correctly saves the translation even if the project path include spaces. INTERPRETER * BUG: The error management does not leak stack anymore. So functions doing a lot of TRY do not crash the interpreter anymore. * BUG: Dir() now works correctly with archives (i.e. executables). * BUG: Reading and writing a string into a stream without specifying the length now work correctly. GB.EVAL COMPONENT * BUG: Eval() does not modify its string expression anymore. GB.QT COMPONENT * BUG: Drawing.Width and Drawing.Height should always return an accurate value now. * BUG: Replacing a picture in the Picture cache with another one with the same key does not crash the interpreter anymore. * BUG: Changing the background color of a window now works correctly. GB.DB COMPONENT * BUG: Void table, index or field names are correctly handled now, and do not crash the interpreter anymore. * BUG: Drivers functions that test the existence of a user, an index, a field, and so on, now correctly return FALSE if an error occurs. --8<------------------------------------------------------------------------ Enjoy it! -- Benoit Minisini From ronstk at ...239... Mon Jul 24 23:48:56 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 24 Jul 2006 23:48:56 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607242348.56956.ronstk@...239...> On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > This project is version of previous one: > > It includes the bug fix for the first printing example > And a second example that includes a crude word wrap function > > Note that for the Word-Wrap function to work you must have set up your > Draw.Begin(Printer) call and also set the Font you want. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > --------8<--- > > I'll try to make a function for wordwrap or the bigtext must > > provide the correct width. > > > > Anyway I should be able to more now after all the struggle. > > > > Thanks again > > > > Ron > > > Very nice suprise, I just had to exchange the rems on the 2 load lines you commented about : ' Older versions of Gambas require imageTop = NEW Image imageTop.Load(Dialog.path) 'imageTop = Image.Load(Dialog.path) DrawScreenImage(DrawingAreaTopImage, imageTop) to ' Older versions of Gambas require imageTop = NEW Image ' imageTop.Load(Dialog.path) imageTop = Image.Load(Dialog.path) DrawScreenImage(DrawingAreaTopImage, imageTop) and it worked perfect. Many thanks again. Ron ps I have not found where i did wrong in my code) From leonardo at ...1237... Mon Jul 24 23:50:43 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Mon, 24 Jul 2006 23:50:43 +0200 Subject: [Gambas-user] Unable to compile gb.pdf component In-Reply-To: <200607231416.43885.gambas@...1...> References: <44C34FCB.9020302@...1237...> <200607231416.43885.gambas@...1...> Message-ID: <44C540B3.2040402@...1237...> Benoit Minisini ha scritto: > On Sunday 23 July 2006 12:30, Leonardo Miliani wrote: >> On my notebook I've changed distro, from Suse 10.1 to Kubuntu 6.06. >> I was trying to recompile Gambas byt I'm having a problem compiling >> gb.pdf component. >> The configure command doesn't find any error but when I launch the make >> command, compilation stops with this error: >> >> ---------------------------------------- >> Making all in gb.pdf >> make[2]: Entering directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' >> make all-recursive >> make[3]: Entering directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' >> Making all in src >> make[4]: Entering directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/s >> rc' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >> -I. -I.. -I/usr/include/poppler -pipe -Wall -fno-exceptions >> -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer >> -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \ >> then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f >> ".deps/main.Tpo"; exit 1; fi >> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/poppler -pipe -Wall >> -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os >> -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c >> main.cpp -fPIC -DPIC -o .libs/main.o >> main.cpp: In function 'int GB_INIT()': >> main.cpp:63: error: 'class GlobalParams' has no member named >> 'setupBaseFontsFc' >> make[4]: *** [main.lo] Error 1 >> make[4]: Leaving directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf/s >> rc' make[3]: *** [all-recursive] Error 1 >> make[3]: Leaving directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' >> make[2]: *** [all] Error 2 >> make[2]: Leaving directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34/gb.pdf' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/home/leo/Documenti/Software/Programmazione/Gambas/gambas2-1.9.34' >> make: *** [all] Error 2 >> ------------------------------------------------------------ >> >> I cannot understand where is the error because I think I have installed >> all the dependencies needed. > > What returns 'pkg-config poppler --modversion' on your system? > Thanks for your interest... but I'm back to my little old love, Suse :-) Kubuntu was a little different in different things and... how can I explain... it didn't let me feel at home :-) -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From sourceforge-raindog2 at ...94... Tue Jul 25 00:00:30 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 24 Jul 2006 18:00:30 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241448.09449.gambas@...1...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> Message-ID: <200607241800.31201.sourceforge-raindog2@...94...> On Mon July 24 2006 08:48, Benoit Minisini wrote: > I have read the man page... > So maybe a dedicated function is needed... My gb.posix component from 2 years ago had functions to convert from Gambas dates to Unix dates and vice versa.... in fact, that was the whole reason I made it, along with strftime.... maybe I should update it and resubmit it for gambas2? Rob From ronstk at ...239... Tue Jul 25 00:02:09 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:02:09 +0200 Subject: [Gambas-user] about listbox mode multi In-Reply-To: <200607242221.43375.gambas@...1...> References: <200607210123.54376.stefanopalmeri@...152...> <200607231515.06241.ronstk@...239...> <200607242221.43375.gambas@...1...> Message-ID: <200607250002.09942.ronstk@...239...> On Monday 24 July 2006 22:21, Benoit Minisini wrote: > On Sunday 23 July 2006 15:15, Ron Onstenk wrote: > > On Sunday 23 July 2006 14:45, Benoit Minisini wrote: > > > Argh! There is an "optimization" in Qt that makes the ListBox signaling > > > changes in selection only when the mouse button is released (in Multi and > > > Extended modes). And the click event is of course signaled when the mouse > > > button is pressed. So your problem... > > > > > > I will try to find a workaround... > > > > Part of the qt listbox code is also used in Listview? > > I had with Listview and multi/extended mode also some > > problems that look to me the same as this. > > > > I could workaround with mousedown and mouseup events and > > setting a flag to signal the difference. > > I was suspecting my own quality :) > > > > Because the Columnview, Listview and Treeview are all > > based on same partial code in gambas and qt I'm afraid > > it count there to, the "optimization" from QT. > > > > Ron > > > > I have changed the way Select events are delivered with ListBox and ListView. > Now they are posted, i.e. delivered one event loop later. Will see how it works now. First I have to work now on the printing part in a hurry. > > The consequence is that now the behaviour is more logical. > But it can't be perfect. > Moreover, I can't have the same behaviour between ListBox and ListView. > > Anyway, you should not rely on what the current item is during a Select event > in Multi or Extended selection mode. I do a iteration over the listbox items for .item.Selected in case one of them was the mode of the listbox (as done in example for Multi). > > Moreover, in these modes, The Click event is raised for each selected element > with the ListBox, but only for the first selected one with the ListView. > > A last note: ListView, TreeView and ColumnView are based on the same QT > widget, so all what I said applies to them too. I have seen in C source already. > > Regards, > Benoit Greets from warm evening in Holland Ron From cjro99 at ...67... Tue Jul 25 00:03:09 2006 From: cjro99 at ...67... (javier romero) Date: Mon, 24 Jul 2006 22:03:09 +0000 Subject: [Gambas-user] ColumnView Message-ID: Hi, In a proyect i have a columnView with 3 column and 4 "lines" and when opens the form i selected the first "Item" , i have a button to down the selection, i try to do that with ColumnView.MoveNext() and ColumnView.Current.MoveNext() and ColumnView.item.MovNext() but nothing happens, the current.key in all cases are the first selection, How i can move the selection to down or up selection or another selection?. (only itmes or lines, no columns) Thanks Javier _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d From ronstk at ...239... Tue Jul 25 00:10:00 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:10:00 +0200 Subject: [Gambas-user] Unable to compile gb.pdf component In-Reply-To: <44C540B3.2040402@...1237...> References: <44C34FCB.9020302@...1237...> <200607231416.43885.gambas@...1...> <44C540B3.2040402@...1237...> Message-ID: <200607250010.00198.ronstk@...239...> On Monday 24 July 2006 23:50, Leonardo Miliani wrote: > Thanks for your interest... but I'm back to my little old love, Suse :-) > Kubuntu was a little different in different things and... how can I > explain... it didn't let me feel at home :-) > > -- > Ciao. > Leo > Strange, I did also look at Kubuntu for box on side. I do like SuSE also a bit more but do not forget you are by working a long time with SuSE more familiar with there menu. Also not perfect but for me was missing entries in the Konqueror menu bar most frustating. However Kubuntu is not bad IMHO but different. Ron From ronstk at ...239... Tue Jul 25 00:12:09 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:12:09 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241800.31201.sourceforge-raindog2@...94...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241448.09449.gambas@...1...> <200607241800.31201.sourceforge-raindog2@...94...> Message-ID: <200607250012.09629.ronstk@...239...> On Tuesday 25 July 2006 00:00, Rob Kudla wrote: > On Mon July 24 2006 08:48, Benoit Minisini wrote: > > I have read the man page... > > So maybe a dedicated function is needed... > > My gb.posix component from 2 years ago had functions to convert > from Gambas dates to Unix dates and vice versa.... in fact, that > was the whole reason I made it, along with strftime.... maybe I > should update it and resubmit it for gambas2? > > Rob LOL That is called maintenance I belive. Ron From sourceforge-raindog2 at ...94... Tue Jul 25 00:24:14 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 24 Jul 2006 18:24:14 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607250012.09629.ronstk@...239...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241800.31201.sourceforge-raindog2@...94...> <200607250012.09629.ronstk@...239...> Message-ID: <200607241824.14465.sourceforge-raindog2@...94...> On Mon July 24 2006 18:12, Ron Onstenk wrote: > > My gb.posix component from 2 years ago had functions to > > convert from Gambas dates to Unix dates and vice versa.... > > in fact, that was the whole reason I made it, along with > > strftime.... maybe I should update it and resubmit it for > > gambas2? > LOL > That is called maintenance I belive. Well, it would be called maintenance if it had been accepted into Gambas in the first place. As it is, it would be called a "retry". ;) Rob From ronstk at ...239... Tue Jul 25 00:29:54 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:29:54 +0200 Subject: [Gambas-user] ColumnView In-Reply-To: References: Message-ID: <200607250029.55046.ronstk@...239...> On Tuesday 25 July 2006 00:03, javier romero wrote: > Hi, > > In a proyect i have a columnView with 3 column and 4 "lines" and when opens the > form i selected the first "Item" , i have a button to down the selection, > i try to do that with ColumnView.MoveNext() and ColumnView.Current.MoveNext() > and ColumnView.item.MovNext() but nothing happens, the current.key in all > cases are the first selection, > How i can move the selection to down or up selection or another selection?. > (only itmes or lines, no columns) > > Thanks > Javier ? > Not really clear what you do mean. You select the first item during open. Then press 'button to down' Should the highlight (selected) goes 1 down or do you wont the row with highlighted goes down? Columnview uses the Move***() functions to adjust a internal (row) pointer The item by that pointer is in .Item This Item is not the same as the .Current item. The highlight item is the same as the current item. If you use the Move***() functions then the invisible internal pointer is repositioned and not the .Current witch is visible by highlight. You can set the highlight on different row with ColumnView[ columnview.item.key ].current.selected=true From ronstk at ...239... Tue Jul 25 00:37:26 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:37:26 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241824.14465.sourceforge-raindog2@...94...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607250012.09629.ronstk@...239...> <200607241824.14465.sourceforge-raindog2@...94...> Message-ID: <200607250037.26963.ronstk@...239...> On Tuesday 25 July 2006 00:24, Rob Kudla wrote: > On Mon July 24 2006 18:12, Ron Onstenk wrote: > > > My gb.posix component from 2 years ago had functions to > > > convert from Gambas dates to Unix dates and vice versa.... > > > in fact, that was the whole reason I made it, along with > > > strftime.... maybe I should update it and resubmit it for > > > gambas2? > > LOL > > That is called maintenance I belive. > > Well, it would be called maintenance if it had been accepted into > Gambas in the first place. As it is, it would be called a > "retry". ;) > > Rob > Oeps, by the warm weather here I associated Rob Kudla in first place with gb.pcre With bead of sweat in the eyes, Ron From ronstk at ...239... Tue Jul 25 00:43:46 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 00:43:46 +0200 Subject: [Gambas-user] ColumnView In-Reply-To: <200607250029.55046.ronstk@...239...> References: <200607250029.55046.ronstk@...239...> Message-ID: <200607250043.46717.ronstk@...239...> Forget the last line. I would save in draft to look up the correct line but did send it. > ColumnView[ columnview.item.key ].current.selected=true Ron From sourceforge-raindog2 at ...94... Tue Jul 25 00:42:29 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 24 Jul 2006 18:42:29 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607250037.26963.ronstk@...239...> References: <008e01c6af1d$e788ea60$7a00a8c0@...1521...> <200607241824.14465.sourceforge-raindog2@...94...> <200607250037.26963.ronstk@...239...> Message-ID: <200607241842.29370.sourceforge-raindog2@...94...> On Mon July 24 2006 18:37, Ron Onstenk wrote: > Oeps, by the warm weather here I associated Rob Kudla in first > place with gb.pcre Yeah, I made gb.posix and gb.pcre at about the same time, but gb.pcre was far more useful. Rob From ronstk at ...239... Tue Jul 25 01:07:07 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 01:07:07 +0200 Subject: [Gambas-user] ColumnView In-Reply-To: <200607250029.55046.ronstk@...239...> References: <200607250029.55046.ronstk@...239...> Message-ID: <200607250107.07533.ronstk@...239...> On Tuesday 25 July 2006 00:29, Ron Onstenk wrote: > On Tuesday 25 July 2006 00:03, javier romero wrote: > > Hi, > > > > In a proyect i have a columnView with 3 column and 4 "lines" and when opens the > > form i selected the first "Item" , i have a button to down the selection, > > i try to do that with ColumnView.MoveNext() and ColumnView.Current.MoveNext() > > and ColumnView.item.MovNext() but nothing happens, the current.key in all > > cases are the first selection, > > How i can move the selection to down or up selection or another selection?. > > (only itmes or lines, no columns) > > > > Thanks > > Javier ? > > > Not really clear what you do mean. You select the first item during open. Then press 'button to down' Should the highlight (selected) goes 1 down or do you wont the row with highlighted goes down? Columnview uses the Move***() functions to adjust a internal (row) pointer The item by that pointer is in .Item This Item is not the same as the .Current item. The highlight item is the same as the current item. If you use the Move***() functions then the invisible internal pointer is repositioned and not the .Current witch is visible by highlight. You can set the highlight on different row with public sub ButtonUp_Click() Dim sKey AS String ' remove the highlight ColumnView.Item.Selected = false ' do the reposition IF NOT ColumnView.MovePrevious() THEN ' is done, get the key sKey = ColumnView.Item.Key ' highlight the new item by key ColumnView[sKey].Selected = TRUE ENDIF End public sub ButtonDown_Click() Dim sKey AS String ColumnView.Selected = false IF NOT ColumnView.MoveNext() THEN sKey = ColumnView.Item.Key ColumnView[sKey].Selected = TRUE ENDIF end From msumurph at ...626... Tue Jul 25 01:06:44 2006 From: msumurph at ...626... (Allen Murphy) Date: Mon, 24 Jul 2006 19:06:44 -0400 Subject: [Gambas-user] Menu events in 1.9.34 Message-ID: <1153782404.3170.0.camel@...37...> Greetings! I have noticed that in the Gambas2 1.9.34 Form Designer, when I click a menu item I have created, I am not sent to the Code Editor as in Gambas 1.0.17. For example, if I have a menu named mnuFile with a child item named itmQuit, I am not sent to the event handler "PUBLIC SUB itmQuit_Click()" when I click on that item. Is this by design, or am I missing something? Thanks, Allen From gambas at ...1... Tue Jul 25 01:27:02 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 01:27:02 +0200 Subject: [Gambas-user] Menu events in 1.9.34 In-Reply-To: <1153782404.3170.0.camel@...37...> References: <1153782404.3170.0.camel@...37...> Message-ID: <200607250127.03231.gambas@...1...> On Tuesday 25 July 2006 01:06, Allen Murphy wrote: > Greetings! > > I have noticed that in the Gambas2 1.9.34 Form Designer, when I click a > menu item I have created, I am not sent to the Code Editor as in Gambas > 1.0.17. > > For example, if I have a menu named mnuFile with a child item named > itmQuit, I am not sent to the event handler "PUBLIC SUB itmQuit_Click()" > when I click on that item. > > Is this by design, or am I missing something? > > Thanks, > Allen > No, this is a bug. Some line of code I commented and forgot to uncomment. -- Benoit Minisini From leonardo at ...1237... Tue Jul 25 01:56:12 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 25 Jul 2006 01:56:12 +0200 Subject: [Gambas-user] Unable to compile gb.pdf component In-Reply-To: <200607250010.00198.ronstk@...239...> References: <44C34FCB.9020302@...1237...> <200607231416.43885.gambas@...1...> <44C540B3.2040402@...1237...> <200607250010.00198.ronstk@...239...> Message-ID: <44C55E1C.8000904@...1237...> Ron Onstenk ha scritto: > On Monday 24 July 2006 23:50, Leonardo Miliani wrote: >> Thanks for your interest... but I'm back to my little old love, Suse :-) >> Kubuntu was a little different in different things and... how can I >> explain... it didn't let me feel at home :-) >> >> -- >> Ciao. >> Leo >> > > Strange, I did also look at Kubuntu for box on side. > I do like SuSE also a bit more but do not forget you are > by working a long time with SuSE more familiar with there menu. > Also not perfect but for me was missing entries in the Konqueror > menu bar most frustating. > However Kubuntu is not bad IMHO but different. > > Ron > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes, I confirm your impressions: Kubuntu is different, not worse. I used Suse for a lot of time so I learned to use a lot of beatiful tools, first of all Yast. In Kubuntu I didn't like the Gnome feeling of several things, even the distro was based on Kde. Maybe I used it for a time that was not long enough to discover every aspect of the distro but I feel me at home with Suse so I decided to reinstall it on my notepad :-) -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From msumurph at ...626... Tue Jul 25 02:29:03 2006 From: msumurph at ...626... (Allen Murphy) Date: Mon, 24 Jul 2006 20:29:03 -0400 Subject: [Gambas-user] Menu events in 1.9.34 In-Reply-To: <200607250127.03231.gambas@...1...> References: <1153782404.3170.0.camel@...37...> <200607250127.03231.gambas@...1...> Message-ID: <1153787343.9523.5.camel@...37...> I did some snooping around and found the offending commented code. In file FForm.class located in ../gambas2-1.9.34/app/src/gambas2, I un-commented lines 1464 to 1468: PUBLIC SUB Menu_Click() Control_DblClick END This seems to have fixed the problem. I have attached the patched file. Benoit can verify if I found the right section of problem code. Take care, Allen On Tue, 2006-07-25 at 01:27 +0200, Benoit Minisini wrote: > On Tuesday 25 July 2006 01:06, Allen Murphy wrote: > > Greetings! > > > > I have noticed that in the Gambas2 1.9.34 Form Designer, when I click a > > menu item I have created, I am not sent to the Code Editor as in Gambas > > 1.0.17. > > > > For example, if I have a menu named mnuFile with a child item named > > itmQuit, I am not sent to the event handler "PUBLIC SUB itmQuit_Click()" > > when I click on that item. > > > > Is this by design, or am I missing something? > > > > Thanks, > > Allen > > > > No, this is a bug. Some line of code I commented and forgot to uncomment. > From msumurph at ...626... Tue Jul 25 02:33:45 2006 From: msumurph at ...626... (Allen Murphy) Date: Mon, 24 Jul 2006 20:33:45 -0400 Subject: [Gambas-user] Menu events in 1.9.34 (attachment) In-Reply-To: <1153787343.9523.5.camel@...37...> References: <1153782404.3170.0.camel@...37...> <200607250127.03231.gambas@...1...> <1153787343.9523.5.camel@...37...> Message-ID: <1153787625.9523.8.camel@...37...> Sorry, forgot to attach the patch. On Mon, 2006-07-24 at 20:29 -0400, Allen Murphy wrote: > I did some snooping around and found the offending commented code. > > In file FForm.class located in ../gambas2-1.9.34/app/src/gambas2, I > un-commented lines 1464 to 1468: > > PUBLIC SUB Menu_Click() > > Control_DblClick > > END > > This seems to have fixed the problem. I have attached the patched file. > Benoit can verify if I found the right section of problem code. > > Take care, > Allen > > On Tue, 2006-07-25 at 01:27 +0200, Benoit Minisini wrote: > > On Tuesday 25 July 2006 01:06, Allen Murphy wrote: > > > Greetings! > > > > > > I have noticed that in the Gambas2 1.9.34 Form Designer, when I click a > > > menu item I have created, I am not sent to the Code Editor as in Gambas > > > 1.0.17. > > > > > > For example, if I have a menu named mnuFile with a child item named > > > itmQuit, I am not sent to the event handler "PUBLIC SUB itmQuit_Click()" > > > when I click on that item. > > > > > > Is this by design, or am I missing something? > > > > > > Thanks, > > > Allen > > > > > > > No, this is a bug. Some line of code I commented and forgot to uncomment. > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- ' Gambas class file PUBLIC Name AS String PUBLIC Path AS String PUBLIC Master AS CControl PUBLIC Selection AS NEW Collection PUBLIC Control AS Collection PUBLIC Menus AS NEW Object[] PUBLIC Container AS Container PRIVATE $bDoNotModify AS Boolean PRIVATE $bModify AS Boolean PRIVATE $bSelChange AS Boolean PRIVATE $bReadOnly AS Boolean PRIVATE $bActivate AS Boolean PRIVATE $sType AS String ' Gestion de la souris PRIVATE $iMode AS Integer PRIVATE CONST MODE_NOTHING AS Integer = 0 PRIVATE CONST MODE_CREATE AS Integer = 1 PRIVATE CONST MODE_MOVE AS Integer = 2 PRIVATE CONST MODE_SELECT AS Integer = 3 PRIVATE $sTool AS String PRIVATE $hCurrent AS CControl PRIVATE $X AS Integer PRIVATE $Y AS Integer PRIVATE $MX AS Integer PRIVATE $MY AS Integer PRIVATE $W AS Integer PRIVATE $H AS Integer PRIVATE $bMove AS Boolean PRIVATE $XS AS Integer PRIVATE $YS AS Integer PRIVATE $WS AS Integer PRIVATE $HS AS Integer PRIVATE CONST MIN_WIDTH AS Integer = 4 PRIVATE CONST MIN_HEIGHT AS Integer = 4 ' Gestion de la sauvegarde PRIVATE $sSave AS String PRIVATE $iSaveX AS Integer PRIVATE $iSaveY AS Integer 'PRIVATE $iIndent AS INTEGER PRIVATE $iSaveLevel AS Integer PRIVATE $bSelectNew AS Boolean PRIVATE $bDoNotArrange AS Boolean PRIVATE CONST FORM_CLIPBOARD_FORMAT AS String = "text/x-gambas-form" 'PRIVATE CONST FORM_NAME AS String = "$" PUBLIC SUB _new(sPath AS String) DIM sData AS String btnCloseWindow.Design = TRUE btnMaxWindow.Design = TRUE Path = sPath Name = File.BaseName(sPath) Control = NEW Collection(gb.Text) Container = panBorder 'mnuSave.Enabled = NOT Project.ReadOnly SetReadOnly '$sType = "Form" sData = File.Load(sPath) IF UCase(Left$(sData, Len(Project.FORM_MAGIC))) <> UCase(Project.FORM_MAGIC) THEN Message.Warning(("Bad form file")) RETURN ENDIF 'ME.Font.Size = 10 $bDoNotModify = TRUE sData = Mid$(sData, Len(Project.FORM_MAGIC) + 1) FromString(sData) UpdateSnap DrawTitle RefreshMenu $bDoNotModify = FALSE END PUBLIC SUB UpdateSnap() DIM hPict AS Picture DIM hCtrl AS CControl = Control[Name] IF Project.ShowGrid THEN hPict = NEW Picture(Project.Snap, Project.Snap) hPict.Fill(hCtrl.Control.Background) Draw.Begin(hPict) Draw.Invert = TRUE Draw.ForeColor = Color.White Draw.Point(0, 0) Draw.End hCtrl.Control.Picture = hPict ELSE hCtrl.Control.Picture = NULL ENDIF END PRIVATE FUNCTION UnquoteString(sVal AS String) AS String 'sVal = Mid$(sVal, 2, Len(sVal) - 2) sVal = Replace(sVal, "\\n", gb.NewLine) sVal = Replace(sVal, "\\" & Chr$(34), Chr$(34)) sVal = Replace(sVal, "\\\\", "\\") RETURN sVal END PRIVATE SUB FromString(sData AS String, OPTIONAL hParent AS CControl) DIM hCtrl AS Object 'DIM hParent AS OBJECT DIM sName AS String DIM sClass AS String DIM iPos AS Integer DIM sLine AS String DIM hData AS CControl DIM sProperty AS String DIM sValue AS String DIM vValue AS Variant DIM aVal AS String[] DIM iInd AS Integer DIM iLevel AS Integer DIM bFirst AS Boolean DIM sEventName AS String DIM cCoord AS String[] hCtrl = hParent bFirst = TRUE WHILE sData iPos = InStr(sData, gb.newLine) IF iPos = 0 THEN sLine = Trim(sData) sData = "" ELSE sLine = Trim(Left$(sData, iPos - 1)) sData = Mid$(sData, iPos + 1) ENDIF 'PRINT "> "; sLine IF Len(sLine) = 0 THEN CONTINUE IF Left$(sLine, 1) = "#" THEN sLine = Mid$(sLine, 2) IF Left$(sLine, 1) = "{" THEN sLine = Trim(Mid$(sLine, 2)) iPos = InStr(sLine, " ") sName = Left$(sLine, iPos - 1) sClass = Trim(Mid$(sLine, iPos + 1)) iPos = InStr(sClass, " ") IF iPos THEN sEventName = Trim(Mid$(sClass, iPos + 1)) sClass = Trim(Left$(sClass, iPos - 1)) ELSE sEventName = "" ENDIF IF Left$(sClass) = "#" THEN sClass = Mid$(sClass, 2) IF IsNull(hCtrl) THEN sName = Name IF sClass = "Image" THEN PRINT "Image -> PictureBox" sClass = "PictureBox" ENDIF hCtrl = CreateControl(sClass, hCtrl, sName) IF sEventName THEN hCtrl.SetProperty(CPropertyInfo.EVENT_NAME, sEventName) INC iLevel ELSE IF Left$(sLine, 1) = "}" THEN 'IF hCtrl = hParent THEN RETURN DEC iLevel IF iLevel = 0 THEN IF $bSelectNew THEN hCtrl.Select(ME, bFirst) bFirst = FALSE ENDIF ENDIF hCtrl = hCtrl.Parent ELSE iPos = InStr(sLine, "=") IF iPos THEN sProperty = Trim(Left$(sLine, iPos - 1)) sValue = Trim(Mid$(sLine, iPos + 1)) vValue = Val(sValue) IF IsNull(vValue) THEN IF Left$(sValue, 2) = "(" & Chr$(34) THEN sValue = Mid$(sValue, 2, -1) ENDIF IF Left$(sValue, 1) = Chr$(34) THEN vValue = UnquoteString(Mid$(sValue, 2, -1)) ELSE IF Left$(sValue) = "[" THEN aVal = Split(Mid$(sValue, 2, -1), ", ", Chr$(34), TRUE) FOR iInd = 0 TO aVal.Max aVal[iInd] = UnquoteString(aVal[iInd]) NEXT vValue = aVal '.Join("\n") ELSE IF Left$(sValue, 5) = "Font[" THEN vValue = Mid$(sValue, 7, -2) ELSE IF Left$(sValue, 8) = "Picture[" THEN vValue = Mid$(sValue, 10, -2) 'PRINT File.Dir(Project.Path) &/ Mid$(sValue, 9, -1) 'vValue = Picture[File.Dir(Project.Path) &/ Mid$(sValue, 9, -1)] ELSE IF UCase(sValue) = "TRUE" THEN vValue = TRUE ELSE IF UCase(sValue) = "FALSE" THEN vValue = FALSE ELSE IF Left$(sValue, 6) = "CDate(" THEN vValue = CDate(Mid$(sValue, 8, -2)) ELSE iPos = InStr(sValue, ".") IF iPos THEN vValue = Mid$(sValue, iPos + 1) ELSE PRINT "Bad property value "; sValue ' This is an object ! ENDIF ENDIF ENDIF IF hCtrl.SetProperty(sProperty, vValue) THEN PRINT "Error: "; hCtrl.Kind; "."; sProperty; " = "; sValue ENDIF ELSE IF Left$(sLine, 5) = "Move(" THEN cCoord = Split(Mid$(sLine, 6, -1)) 'TRY PRINT cCoord[0]; ","; cCoord[1]; ","; cCoord[2]; ","; cCoord[3] TRY hCtrl.Move(CInt(cCoord[0]) / Project.Snap * Desktop.Scale, CInt(cCoord[1]) / Project.Snap * Desktop.Scale, TRUE) 'TRY hCtrl.SetProperty("X", Val(cCoord[0])) 'TRY hCtrl.SetProperty("Y", Val(cCoord[1])) IF cCoord.Count >= 2 THEN TRY hCtrl.Resize(CInt(cCoord[2]) / Project.Snap * Desktop.Scale, CInt(cCoord[3]) / Project.Snap * Desktop.Scale, TRUE) ENDIF IF ERROR THEN PRINT "Error: Syntax error: "; sLine ELSE IF Left$(sLine, 11) = "MoveScaled(" THEN cCoord = Split(Mid$(sLine, 12, -1)) 'TRY PRINT cCoord[0]; ","; cCoord[1]; ","; cCoord[2]; ","; cCoord[3] TRY hCtrl.Move(CFloat(cCoord[0]) * Desktop.Scale, CFloat(cCoord[1]) * Desktop.Scale, TRUE) 'TRY hCtrl.SetProperty("X", Val(cCoord[0])) 'TRY hCtrl.SetProperty("Y", Val(cCoord[1])) IF cCoord.Count >= 2 THEN TRY hCtrl.Resize(CFloat(cCoord[2]) * Desktop.Scale, CFloat(cCoord[3]) * Desktop.Scale, TRUE) ENDIF IF ERROR THEN PRINT "Error: Syntax error: "; sLine ELSE IF Left$(sLine) <> "'" THEN PRINT "Error: Syntax error: "; sLine ENDIF ENDIF WEND END PUBLIC FUNCTION Save() AS Boolean DIM hFic AS File IF Project.ReadOnly THEN RETURN IF NOT $bModify THEN RETURN UnselectAll Save.Begin(Path) ResetSave AddLine(Project.FORM_MAGIC) AddLine() SaveOne(Control[Name]) File.Save(Path, $sSave) Project.SetFormIcon(ME) 'OPEN Path & ".test" FOR CREATE AS #hFic ' y a un truc bizarre avec CREATE ! 'PRINT #hFic, $sSave 'CLOSE #hFic $sSave = "" $bModify = FALSE DrawTitle Save.End() CATCH RETURN Save.Error() END PUBLIC SUB AddLine(OPTIONAL sLig AS String) DIM sAdd AS String 'IF Left$(sLig, 1) = "}" THEN $iIndent = $iIndent - 1 sAdd = Space$($iSaveLevel * 2) & sLig 'PRINT sAdd $sSave = $sSave & sAdd & gb.NewLine 'IF Left$(sLig, 1) = "{" THEN $iIndent = $iIndent + 1 END PUBLIC FUNCTION GetChildren(sName AS String) AS Object[] DIM cList AS NEW Object[] DIM hCtrl AS CControl DIM hChild AS Control DIM iTab AS Integer DIM hMenu AS Menu DIM hTab AS Object 'TabStrip hCtrl = Control[sName] IF IsNull(hCtrl) THEN RETURN IF NOT hCtrl.IsContainer() THEN RETURN IF hCtrl.Kind = "Form" THEN FOR EACH hMenu IN ME.Menus cList.Add(Control[hMenu.Tag]) NEXT FOR EACH hChild IN hCtrl.Control.Children cList.Add(Control[hChild.Tag]) NEXT 'ELSE IF hCtrl.Kind = "TabStrip" THEN ELSE IF hCtrl.IsMultiContainer() THEN hTab = hCtrl.Control FOR iTab = 0 TO hTab.Count - 1 FOR EACH hChild IN hTab[iTab].Children cList.Add(Control[hChild.Tag]) NEXT NEXT ELSE IF hCtrl.Kind = "Menu" THEN FOR EACH hMenu IN hCtrl.Control.Children cList.Add(Control[hMenu.Tag]) NEXT ELSE FOR EACH hChild IN hCtrl.Control.Children cList.Add(Control[hChild.Tag]) NEXT ENDIF RETURN cList END PRIVATE SUB SaveOne(hCtrl AS CControl) DIM hChild AS Control DIM sLine AS String DIM hMenu AS Menu DIM hMenuCtrl AS CControl DIM cProp AS String[] DIM hTab AS Object DIM hSubTab AS Object DIM iTab AS Integer DIM sVal AS String DIM vVal AS Variant DIM iArr AS Integer DIM sText AS String 'hCtrl = Control[sName] 'PRINT "SaveOne: hCtrl = "; hCtrl IF IsNull(hCtrl) THEN RETURN IF hCtrl.Virtual THEN AddLine(Trim("{ " & hCtrl.Name & " #" & hCtrl.Kind & " " & hCtrl.GetProperty(CPropertyInfo.EVENT_NAME))) ELSE AddLine(Trim("{ " & hCtrl.Name & " " & hCtrl.Kind & " " & hCtrl.GetProperty(CPropertyInfo.EVENT_NAME))) ENDIF IF $iSaveLevel = 0 THEN cProp = hCtrl.GetEachProperty($iSaveX, $iSaveY) ELSE cProp = hCtrl.GetEachProperty(0, 0) ENDIF $iSaveLevel = $iSaveLevel + 1 FOR EACH sLine IN cProp AddLine(sLine) NEXT IF hCtrl.IsContainer() THEN IF NOT $bDoNotArrange THEN TRY iArr = CComponent.Classes[$sType &/ hCtrl.Kind].Symbols["_Arrangement"].Value IF NOT ERROR THEN IF iArr = Arrange.Fill THEN iArr = 0 TRY iArr = CComponent.Classes[$sType &/ "Arrange"].Symbols[hCtrl.GetProperty("Arrangement")].Value ENDIF IF iArr THEN 'IF hCtrl.Kind = "TabStrip" THEN IF hCtrl.IsMultiContainer() THEN ELSE ArrangeContainer(hCtrl.Control, iArr, FALSE) ENDIF ENDIF ENDIF ENDIF IF hCtrl.Kind = "Form" THEN FOR EACH hMenuCtrl IN ME.Menus SaveOne(hMenuCtrl) NEXT FOR EACH hChild IN hCtrl.Control.Children 'PRINT "SaveOne? "; Object.Type(hChild);; hChild.Tag; " "; Control[hChild.Tag] SaveOne(Control[hChild.Tag]) NEXT 'ELSE IF hCtrl.Kind = "TabStrip" THEN ELSE IF hCtrl.IsMultiContainer() THEN hTab = hCtrl.Control FOR iTab = 0 TO hTab.Count - 1 AddLine("Index = " & CStr(iTab)) sVal = Replace(hTab[iTab].Text, "\\", "\\\\") sVal = Replace(sVal, Chr$(34), "\\" & Chr$(34)) sVal = Replace(sVal, gb.NewLine, "\\n") AddLine("Text = (" & Chr$(34) & sVal & Chr$(34) & ")") IF hCtrl.Tag THEN sVal = hCtrl.Tag[iTab] IF sVal THEN AddLine("Picture = Picture[" & Chr$(34) & sVal & Chr$(34) & "]") ENDIF ENDIF FOR EACH hChild IN hTab[iTab].Children SaveOne(Control[hChild.Tag]) NEXT NEXT 'AddLine("Index = " & CStr(hTab.Index)) AddLine("Index = 0") ELSE IF hCtrl.Kind = "Menu" THEN FOR EACH hMenu IN hCtrl.Control.Children SaveOne(Control[hMenu.Tag]) NEXT ELSE FOR EACH hChild IN hCtrl.Control.Children SaveOne(Control[hChild.Tag]) NEXT ENDIF ENDIF $iSaveLevel = $iSaveLevel - 1 AddLine("}") END PUBLIC SUB Control_Resize() DIM hCtrl AS Control = LAST WITH Control[Name] IF hCtrl <> .Control THEN RETURN IF hCtrl.Width <> .GetProperty("Width") THEN .SetProperty("Width", hCtrl.Width) IF hCtrl.Height <> .GetProperty("Height") THEN .SetProperty("Height", hCtrl.Height) END WITH END 'PUBLIC SUB Form_KeyPress(Ascii AS String, Code AS Integer, State AS Integer) ' ' Project.Shortcut(Code, Ascii, State) ' 'END PRIVATE $bInFormMove AS Boolean ' PUBLIC SUB Form_Move() ' ' DIM X, Y AS Integer ' ' IF NOT LAST.Visible THEN RETURN ' IF $bInFormMove THEN RETURN ' ' $bInFormMove = TRUE ' ' 'DEBUG ME.Name;; ME.X;; ME.Y ' ' WITH Control[Name] ' ' X = .GetProperty("X") ' Y = .GetProperty("Y") ' ' 'DEBUG X;; Y;; "->";; ME.X;; ME.Y;; X <> ME.X;; Y <> ME.Y ' ' IF X <> ME.X THEN .SetProperty("X", ME.X, TRUE) ' IF Y <> ME.Y THEN .SetProperty("Y", ME.Y, TRUE) ' ' END WITH ' ' $bInFormMove = FALSE ' ' END PUBLIC SUB Control_MouseDown() 'PRINT "> Control_MouseDown" DIM X AS Integer DIM Y AS Integer ME.SetFocus X = Mouse.X Y = Mouse.Y $hCurrent = Control[LAST.Tag] $sTool = FToolBox.GetTool() $X = LAST.X $Y = LAST.Y $MX = LAST.ScreenX + X $MY = LAST.ScreenY + Y 'IF $hCurrent.Kind = "GridView" THEN ' PRINT "MouseDown: $X ="; $X; " $Y ="; $Y; " $MX ="; $MX; " $MY ="; $MY ' PRINT "X ="; X; " Y ="; Y 'ENDIF IF $sTool = "" THEN IF Mouse.Control OR $hCurrent.Name = Name THEN $XS = X $YS = Y $iMode = MODE_SELECT $W = 0 $H = 0 GOTO FIN ELSE IF Master <> $hCurrent THEN IF NOT $hCurrent.Selected THEN UnSelectAll ENDIF SelectCurrent(TRUE) ENDIF IF $bReadOnly THEN RETURN $iMode = MODE_MOVE ENDIF ELSE IF $bReadOnly THEN RETURN IF NOT $hCurrent.IsContainer() THEN X = X + $hCurrent.Control.X + $hCurrent.Control.Parent.ClientX Y = Y + $hCurrent.Control.Y + $hCurrent.Control.Parent.ClientY $hCurrent = $hCurrent.Parent IF $hCurrent.Kind = "ScrollView" THEN X = X - $hCurrent.Control.ScrollX Y = Y - $hCurrent.Control.ScrollY ENDIF ENDIF $iMode = MODE_CREATE $X = X $Y = Y '$hCurrent = CreateControl(, $sTool, $hCurrent) ENDIF RefreshProperty FIN: 'PRINT "< Control_MouseDown" END PUBLIC SUB Control_MouseMove() DIM X AS Integer DIM Y AS Integer DIM iDepX AS Integer DIM iDepY AS Integer DIM hCtrl AS CControl DIM W AS Integer DIM H AS Integer DIM bMoveX AS Boolean DIM bMoveY AS Boolean DIM hParent AS CControl IF NOT Mouse.Left THEN RETURN 'PRINT "Control_MouseMove Mode ="; $iMode IF Mouse.Shift THEN CControl.SetGrid(FALSE) X = Mouse.X Y = Mouse.Y IF $iMode = MODE_CREATE THEN IF LAST.Mouse <> Mouse.Cross THEN LAST.Mouse = Mouse.Cross hParent = $hCurrent $hCurrent = CreateControl($sTool, hParent) FFormStack.RefreshAll $X = $X - hParent.Control.ClientX $Y = $Y - hParent.Control.ClientY IF hParent.Kind = "ScrollView" THEN $X = $X + hParent.Control.ScrollX $Y = $Y + hParent.Control.ScrollY ENDIF $hCurrent.Move($X, $Y) $hCurrent.Resize(MIN_WIDTH, MIN_HEIGHT) $hCurrent.Control.Mouse = Mouse.Cross ENDIF W = Mouse.ScreenX - $MX IF (W < 0) THEN W = Abs(W) X = $X - W bMoveX = TRUE ELSE X = $X ENDIF H = Mouse.ScreenY - $MY IF (H < 0) THEN H = Abs(H) Y = $Y - H bMoveY = TRUE ELSE Y = $Y ENDIF IF bMoveX OR bMoveY THEN $hCurrent.Move(X, Y) IF bMoveX THEN W = W + X - $hCurrent.Control.X IF bMoveY THEN H = H + Y - $hCurrent.Control.Y ENDIF $hCurrent.Resize(Max(MIN_WIDTH, W), Max(MIN_HEIGHT, H)) ELSE IF $iMode = MODE_MOVE THEN IF LAST = $hCurrent.Control THEN LAST.Mouse = Mouse.SizeAll WITH $hCurrent iDepX = Master.Control.X iDepY = Master.Control.Y Master.Move($X + Mouse.ScreenX - $MX, $Y + Mouse.ScreenY - $MY) iDepX = Master.Control.X - iDepX iDepY = Master.Control.Y - iDepY IF iDepX <> 0 OR iDepY <> 0 THEN FOR EACH hCtrl IN Selection IF hCtrl <> Master THEN hCtrl.Move(hCtrl.Control.X + iDepX, hCtrl.Control.Y + iDepY, TRUE) ENDIF NEXT ENDIF END WITH ENDIF ELSE IF $iMode = MODE_SELECT THEN DrawRectSelect(Mouse.ScreenX - $MX, Mouse.ScreenY - $MY) ENDIF CControl.SetGrid(TRUE) END PUBLIC SUB Control_MouseUp() DIM hCont AS Container DIM hCtrl AS CControl 'PRINT "Control_MouseUp Mode ="; $iMode IF $iMode = MODE_CREATE THEN 'LAST.Mouse = Mouse.Arrow UnSelectAll IF LAST.Mouse = Mouse.Cross THEN $hCurrent.Control.Mouse = Mouse.Arrow SelectCurrent(TRUE) ENDIF FToolBox.SetTool() ELSE IF $iMode = MODE_SELECT THEN $WS = $W $HS = $H DrawRectSelect(0, 0) IF Abs($WS) > 1 AND Abs($HS) > 1 THEN IF NOT $hCurrent.IsContainer() THEN $XS = $XS + $hCurrent.Control.X $YS = $YS + $hCurrent.Control.Y $hCurrent = $hCurrent.Parent ENDIF IF Selection.Count THEN IF Master.Parent <> $hCurrent THEN UnselectAll ELSE IF (Mouse.Control) = 0 THEN UnselectAll ENDIF ENDIF SelectIn($hCurrent, $XS, $YS, $WS, $HS) ELSE IF $hCurrent.Name = Name THEN UnselectAll ELSE IF $hCurrent.Selected THEN IF Master <> $hCurrent OR Selection.Count = 1 THEN UnselectCurrent ENDIF ELSE IF Master = NULL THEN SelectCurrent(TRUE) ELSE IF $hCurrent.Parent = Master.Parent THEN SelectCurrent ELSE UnSelectAll SelectCurrent(TRUE) ENDIF ENDIF ENDIF ENDIF LAST.Mouse = Mouse.Arrow $hCurrent = NULL $iMode = MODE_NOTHING RefreshProperty END PUBLIC SUB Control_Menu() CreateMenu mnuForm.Popup END ' TabStrip PUBLIC SUB Control_Click() 'IF Object.Type(LAST) = "TabStrip" THEN IF CComponent.Classes[Object.Type(LAST)].MultiContainer THEN WITH Control[LAST.Tag] $bDoNotModify = TRUE .SetProperty("Picture", .Tag[LAST.Index]) .SetProperty("Text", LAST.Text) $bDoNotModify = FALSE END WITH ENDIF END PUBLIC SUB Control_KeyPress() Form_KeyPress END PUBLIC FUNCTION CreateControl(sClass AS String, hParent AS CControl, OPTIONAL sName AS String) AS CControl DIM hCtrl AS CControl IF Len(sName) = 0 THEN sName = GetName(sClass) IF Control.Exist(sName) THEN sName = GetName(sClass) ' If the component is not loaded, then return null IF NOT CComponent.Classes.Exist($sType &/ sClass) THEN Error.Raise("Component missing") ENDIF hCtrl = NEW CControl(sName, sClass, hParent, ME) Control[sName] = hCtrl IF sClass = "Menu" THEN IF hParent.Name = Name THEN Menus.Add(hCtrl) ENDIF ENDIF ResetClassScan RETURN hCtrl 'PRINT "< CreateControl "; sName END PRIVATE SUB ResetClassScan() TRY Project.Files[File.Dir(Path) &/ Name & ".class"].Scan = NULL END PUBLIC SUB AddControl(sClass AS String) DIM hParent AS CControl IF Master THEN IF Master.IsContainer() THEN hParent = Master ELSE hParent = Master.Parent ENDIF ELSE hParent = Control[Name] ENDIF hParent = CreateControl(sClass, hParent) 'hParent.Resize(MIN_WIDTH, MIN_HEIGHT) hParent.Resize(64, 32) END PRIVATE SUB RemoveControl(sName AS String) 'PRINT "> RemoveControl "; sName; " "; Control[sName] Control[sName].Control.Delete Control.Remove(sName) Modify 'PRINT "< RemoveControl "; sName; " "; Control[sName] END PRIVATE FUNCTION GetName(sClass AS String) AS String DIM iNum AS Integer DIM sName AS String DIM hCtrl AS CControl DO iNum = iNum + 1 sName = sClass & Trim(CStr(iNum)) IF NOT Control.Exist(sName) THEN EXIT LOOP RETURN sName END PUBLIC PROCEDURE UnSelectAll() DIM hCtrl AS CControl FOR EACH hCtrl IN Selection hCtrl.UnSelect(ME, TRUE) NEXT Selection.Clear Master = NULL SelectionChange 'RefreshProperty END PRIVATE PROCEDURE SelectCurrent(OPTIONAL bMaster AS Boolean) $hCurrent.Select(ME, bMaster) SelectionChange END PRIVATE SUB UnSelectCurrent() $hCurrent.UnSelect(ME) SelectionChange 'RefreshProperty END PRIVATE SUB SelectIn(hParent AS CControl, X AS Integer, Y AS Integer, W AS Integer, H AS Integer) DIM hChild AS Control DIM hCtrl AS CControl DIM bFirst AS Boolean IF W < 0 THEN X = X + W W = - W ENDIF IF H < 0 THEN Y = Y + H H = - H ENDIF 'PRINT hParent.Name; X; Y; W; H IF W < 2 OR H < 2 THEN RETURN X = X - hParent.Control.ClientX Y = Y - hParent.Control.ClientY IF hParent.Kind = "ScrollView" THEN X = X + hParent.Control.ScrollX Y = Y + hParent.Control.ScrollY ENDIF bFirst = TRUE FOR EACH hChild IN hParent.Control.Children hCtrl = Control[hChild.Tag] IF IsNull(hCtrl) THEN CONTINUE 'panel IF hChild.X >= (X + W) THEN CONTINUE IF hChild.Y >= (Y + H) THEN CONTINUE IF (hChild.X + hChild.W) < X THEN CONTINUE IF (hChild.Y + hChild.H) < Y THEN CONTINUE hCtrl.Select(ME, bFirst) $bSelChange = TRUE bFirst = FALSE NEXT IF $bSelChange THEN SelectionChange ENDIF END PRIVATE SUB DrawRectSelect(W AS Integer, H AS Integer) DIM X AS Integer DIM Y AS Integer IF W = $W AND H = $H THEN RETURN Draw.Begin(ME) Draw.Invert = TRUE Draw.ForeColor = Color.White Draw.LineWidth = 1 Draw.LineStyle = LINE.Dash X = $MX - ME.ScreenX Y = $MY - ME.ScreenY IF $W <> 0 AND $H <> 0 THEN Draw.Rect(X, Y, $W, $H) IF W <> 0 AND H <> 0 THEN Draw.Rect(X, Y, W, H) Draw.End $W = W $H = H END PUBLIC SUB DeleteSelection() DIM hCtrl AS CControl DIM cCopy AS NEW Object[] DIM hParent AS CControl IF Selection.Count THEN hParent = Master.Parent FOR EACH hCtrl IN Selection cCopy.Add(hCtrl) NEXT UnSelectAll FOR EACH hCtrl IN cCopy hCtrl.Delete NEXT Modify hParent.Select(ME, TRUE) ResetClassScan SelectionChange RefreshProperty FFormStack.RefreshAll ENDIF 'STOP END PUBLIC SUB CopySelection() DIM hCtrl AS CControl IF Selection.Count = 0 THEN RETURN ResetSave $iSaveX = Master.GetProperty("X") $iSaveY = Master.GetProperty("Y") FOR EACH hCtrl IN Selection $iSaveX = Min($iSaveX, hCtrl.GetProperty("X")) $iSaveY = Min($iSaveY, hCtrl.GetProperty("Y")) NEXT $bDoNotArrange = TRUE FOR EACH hCtrl IN Selection SaveOne(hCtrl) NEXT $bDoNotArrange = FALSE Clipboard.Copy($sSave, FORM_CLIPBOARD_FORMAT) $iSaveX = 0 $iSaveY = 0 END FUNCTION CanPaste() AS Boolean RETURN Clipboard.Format = FORM_CLIPBOARD_FORMAT END PUBLIC SUB PasteSelection() DIM hParent AS CControl DIM sData AS String sData = Clipboard.Paste(FORM_CLIPBOARD_FORMAT) IF NOT sData THEN RETURN IF Selection.Count = 1 THEN hParent = Master ELSE IF Selection.Count > 1 THEN hParent = Master.Parent ELSE hParent = Control[Name] ENDIF IF NOT hParent.IsContainer() THEN hParent = hParent.Parent ENDIF UnSelectAll 'PRINT Clipboard.Text $bSelectNew = TRUE FromString(sData, hParent) $bSelectNew = FALSE RefreshProperty FFormStack.RefreshAll END PRIVATE SUB RefreshProperty(OPTIONAL bForce AS Boolean) IF $bSelChange OR bForce THEN RefreshMenu FProperty.RefreshAll $bSelChange = FALSE ENDIF END PUBLIC SUB Modify(OPTIONAL bReset AS Boolean) DIM hEditor AS FEditor IF Project.ReadOnly THEN RETURN IF $bDoNotModify THEN RETURN IF $bModify <> bReset THEN RETURN $bModify = NOT bReset DrawTitle IF $bModify THEN hEditor = GetEditor() IF hEditor THEN hEditor.Scan = NULL ENDIF END PUBLIC FUNCTION IsModified() AS Boolean RETURN $bModify END PRIVATE SUB DrawTitle() DIM sTitle AS String sTitle = File.Name(Path) IF $bModify THEN sTitle = sTitle & " [" & ("modified") & "]" ME.Title = sTitle '& " - " & Project.Name END PRIVATE SUB DoRaise() DIM hCtrl AS CControl FOR EACH hCtrl IN Selection hCtrl.Raise NEXT FFormStack.RefreshAll END PUBLIC SUB DoLower() DIM hCtrl AS CControl FOR EACH hCtrl IN Selection hCtrl.Lower NEXT FFormStack.RefreshAll END PRIVATE FUNCTION GetSortKey(hCtrl AS Control, iArr AS Integer) AS String DIM sKey AS String SELECT CASE iArr CASE Arrange.Horizontal sKey = Format(hCtrl.X, "000000") & Format(hCtrl.W, "000000") CASE Arrange.Vertical sKey = Format(hCtrl.Y, "000000") & Format(hCtrl.H, "000000") CASE Arrange.TopBottom sKey = Format(hCtrl.X, "000000") & Format(hCtrl.Y, "000000") & Format(hCtrl.W, "000000") & Format(hCtrl.H, "000000") CASE Arrange.LeftRight sKey = Format(hCtrl.Y, "000000") & Format(hCtrl.X, "000000") & Format(hCtrl.H, "000000") & Format(hCtrl.W, "000000") END SELECT RETURN sKey END PRIVATE SUB ArrangeContainer(hParent AS Container, iArr AS Integer, OPTIONAL bRec AS Boolean = TRUE) DIM X AS Integer DIM Y AS Integer DIM aPos AS NEW String[] DIM sPos AS String DIM hCtrl AS Control DIM hCCtrl AS CControl DIM hCont AS Container DIM aCtrl AS NEW Object[] IF hParent THEN FOR EACH hCtrl IN hParent.Children IF hCtrl.Tag THEN aCtrl.Add(hCtrl) NEXT ELSE IF Selection.Count >= 2 THEN FOR EACH hCCtrl IN Selection aCtrl.Add(hCCtrl.Control) NEXT ELSE ArrangeContainer(Control[Name].Control, iArr) RETURN ENDIF IF aCtrl.Count = 0 THEN RETURN FOR EACH hCtrl IN aCtrl IF bRec THEN TRY hCont = hCtrl IF NOT ERROR THEN ArrangeContainer(hCtrl, iArr) ENDIF ENDIF aPos.Add(GetSortKey(hCtrl, iArr)) NEXT IF aPos.Count = 0 THEN RETURN aPos.Sort(gb.Descent) FOR EACH sPos IN aPos FOR EACH hCtrl IN aCtrl IF GetSortKey(hCtrl, iArr) = sPos THEN hCtrl.Lower BREAK ENDIF NEXT NEXT FFormStack.RefreshAll Modify END PUBLIC SUB mnuSave_Click() Save END PRIVATE SUB ResetSave() $sSave = "" $iSaveX = 0 $iSaveY = 0 '$iIndent = 0 $iSaveLevel = 0 END PRIVATE FUNCTION GetEditor() AS FEditor DIM sPath AS String sPath = File.Dir(Path) &/ File.BaseName(Path) & ".class" RETURN Project.Files[sPath] END PRIVATE SUB GotoEventMethod(hCtrl AS CControl, sEvent AS String) DIM sPath AS String DIM sGroup AS String IF NOT hCtrl THEN hCtrl = Control[Name] sPath = File.Dir(Path) &/ File.BaseName(Path) & ".class" IF hCtrl.Kind = "Form" THEN sGroup = "Form" ELSE sGroup = hCtrl.GetGroup() ENDIF Project.OpenFile(sPath) Project.Files[sPath].GotoEvent(sGroup, sEvent, FExplorer.TransformSignature(CComponent.Classes[$sType &/ hCtrl.Kind].Symbols[":" & sEvent].Signature, FALSE)) END PUBLIC SUB Control_DblClick() DIM sEvent AS String DIM hCurrent AS CControl DIM sGroup AS String hCurrent = Control[LAST.Tag] sEvent = CComponent.Classes[$sType &/ hCurrent.Kind].DefaultEvent IF NOT sEvent THEN RETURN GotoEventMethod(hCurrent, sEvent) END PUBLIC SUB Menu_Click() Control_DblClick END PRIVATE SUB CreateMenu() DIM hCtrl AS CControl DIM hMenu AS Menu DIM cCtrl AS NEW String[] DIM sName AS String DIM cSymbol AS Collection DIM hSymbol AS CSymbolInfo DIM sGroup AS String mnuSelect.Children.Clear FOR EACH hCtrl IN Control sName = hCtrl.Name IF sName <> Name THEN IF hCtrl.Kind <> "Menu" THEN cCtrl.Add(sName) ENDIF ENDIF NEXT mnuSelect.Enabled = cCtrl.Count cCtrl.Sort(gb.Text) FOR EACH sName IN cCtrl hMenu = NEW Menu(mnuSelect) AS "mnuControl" hMenu.Text = sName NEXT mnuEvent.Visible = FALSE IF NOT $bReadOnly THEN IF Master THEN cCtrl = CComponent.Classes[$sType &/ Master.Kind].Events sGroup = Master.GetGroup() ELSE cCtrl = CComponent.Classes[$sType &/ "Form"].Events sGroup = "Form" ENDIF IF cCtrl THEN mnuEvent.Children.Clear cSymbol = CComponent.GetClassSymbols(Name) FOR EACH sName IN cCtrl hMenu = NEW Menu(mnuEvent) AS "mnuEvent" hMenu.Text = sName hSymbol = cSymbol[sGroup & "_" & sName] IF hSymbol THEN IF hSymbol.Kind = "m" THEN hMenu.Checked = TRUE ENDIF NEXT mnuEvent.Visible = TRUE ENDIF ENDIF RefreshMenu END SUB RefreshMenu() DIM bOn AS Boolean bOn = NOT IsNull(Master) Action[".cut", ME].Enabled = bOn Action[".copy", ME].Enabled = bOn Action[".delete", ME].Enabled = bOn Action[".lower", ME].Enabled = bOn Action[".raise", ME].Enabled = bOn bOn = Selection.Count >= 2 mnuAlign.Enabled = bOn Action[".align-*", ME].Enabled = bOn Action[".same-*", ME].Enabled = bOn Action["paste-form"].Enabled = CanPaste() mnuArrange.Visible = NOT $bReadOnly mnuAlign.Visible = NOT $bReadOnly Action[".save,.refresh,.cut,paste-form,.delete,.lower,.raise,.align*,.same*,.menu,.arrange*", ME].Visible = NOT $bReadOnly END SUB SelectionChange() $bSelChange = TRUE RefreshMenu END PUBLIC SUB mnuControl_Click() UnselectAll Control[LAST.Text].Select(ME, TRUE) RefreshProperty END PUBLIC SUB mnuEvent_Click() GotoEventMethod(Master, LAST.Text) END PUBLIC SUB Rename(sNewName AS String, sNewPath AS String) DIM hCtrl AS CControl hCtrl = Control[Name] Name = sNewName Path = sNewPath 'File.Dir(Path) &/ sNewName & "." & File.Ext(Path) hCtrl.Rename(sNewName) Modify ME.Save DrawTitle END PUBLIC SUB mnuShowProperty_Click() FProperty.Show END PUBLIC SUB mnuShowCode_Click() Project.OpenFile(Name) END PUBLIC SUB Control_Draw(OPTIONAL iIndex AS Integer) 'DIM hForm AS Form DIM X AS Integer DIM Y AS Integer DIM SX AS Integer DIM SY AS Integer DIM SXF AS Integer DIM SYF AS Integer DIM iMod AS Integer DIM DX AS Integer DIM DY AS Integer DIM hPict AS Picture 'DIM hGrid AS Picture IF LAST.Tag <> Name THEN hPict = Picture["img/control" &/ "draw-" & LCase(Control[LAST.Tag].Kind) & ".png"] IF NOT hPict THEN hPict = Picture["img/control" &/ LCase(Control[LAST.Tag].Kind) & ".png"] Draw.ForeColor = Control[Name].Control.Foreground IF hPict THEN Draw.Picture(hPict, 4, 4) Draw.Text(LAST.Tag, 8 + hPict.Width, 4) ELSE Draw.Text(LAST.Tag, 4, 4) ENDIF Draw.ForeColor = Color.White Draw.Invert = TRUE Draw.LineStyle = Line.Dash Draw.LineWidth = 2 Draw.Rect(1, 1, LAST.W - 1, LAST.H - 1) RETURN ENDIF IF NOT Project.ShowGrid THEN RETURN 'hForm = LAST.Parent 'IF hForm.Picture THEN ' Draw.Picture(hForm.Picture, 0, 0) 'ENDIF 'PRINT Draw.Clip.X; Draw.Clip.Y; Draw.Clip.Width; Draw.Clip.Height 'Project.Snap = Desktop.Scale DX = Desktop.Scale WHILE (DX < 4) DX = DX + Desktop.Scale WEND DY = Desktop.Scale WHILE (DY < 4) DY = DY + Desktop.Scale WEND ' hGrid = NEW Picture(DX, DY, TRUE) ' Draw.Begin(hGrid) ' Draw.ForeColor = Color.White ' Draw.Point(0, 0) ' Draw.End SX = Draw.Clip.X iMod = SX MOD DX IF iMod THEN SX = SX + DX - iMod SY = Draw.Clip.Y iMod = SY MOD DY IF iMod THEN SY = SY + DY - iMod SXF = Draw.Clip.X + Draw.Clip.Width - 1 SYF = Draw.Clip.Y + Draw.Clip.Height - 1 Draw.Invert = TRUE ' Draw.Tile(hGrid, Draw.Clip.X, Draw.Clip.Y, Draw.Clip.W, Draw.Clip.H) Draw.ForeColor = Color.White FOR X = SX TO SXF STEP DX FOR Y = SY TO SYF STEP DY Draw.Point(X, Y) NEXT NEXT END PUBLIC SUB Refresh() UpdateSnap 'Control[Name].Control.Refresh END ' PUBLIC SUB Form_Hide() ' ' 'DEBUG Name ' Project.Deactivate(ME) ' ' END PUBLIC SUB Control_Data(Row AS Integer, Column AS Integer) IF Row = 0 AND Column = 0 THEN LAST.Data.Text = Control[LAST.Tag].Name 'LAST.Data.Picture = Picture["img/16/image.png"] ENDIF END PUBLIC SUB mnuSelectAll_Click() DIM hChild AS Control DIM hCtrl AS CControl DIM bFirst AS Boolean UnselectAll bFirst = TRUE FOR EACH hChild IN Control[Name].Control.Children hCtrl = Control[hChild.Tag] IF IsNull(hCtrl) THEN CONTINUE 'panel hCtrl.Select(ME, bFirst) $bSelChange = TRUE bFirst = FALSE NEXT IF $bSelChange THEN SelectionChange RefreshProperty ENDIF END PUBLIC SUB mnuUnselectAll_Click() UnselectAll RefreshProperty END PRIVATE SUB DoAlign(sKey AS String) DIM iPos AS Integer DIM hCtrl AS CControl SELECT sKey CASE ".align-top" iPos = Master.Control.Y FOR EACH hCtrl IN Selection hCtrl.Move(hCtrl.Control.X, iPos) NEXT CASE ".align-bottom" iPos = Master.Control.Y + Master.Control.H FOR EACH hCtrl IN Selection hCtrl.Move(hCtrl.Control.X, iPos - hCtrl.Control.H) NEXT CASE ".align-left" iPos = Master.Control.X FOR EACH hCtrl IN Selection hCtrl.Move(iPos, hCtrl.Control.Y) NEXT CASE ".align-right" iPos = Master.Control.X + Master.Control.W FOR EACH hCtrl IN Selection hCtrl.Move(iPos - hCtrl.Control.W, hCtrl.Control.Y) NEXT CASE ".same-width" iPos = Master.Control.W FOR EACH hCtrl IN Selection hCtrl.Resize(iPos, hCtrl.Control.H) NEXT CASE ".same-height" iPos = Master.Control.H FOR EACH hCtrl IN Selection hCtrl.Resize(hCtrl.Control.W, iPos) NEXT END SELECT END PRIVATE SUB SetReadOnly() $bReadOnly = Project.ReadOnly OR Project.Running RefreshMenu END PUBLIC SUB OnProjectChange() SetReadOnly END PUBLIC SUB OnProjectDebug() SetReadOnly END PUBLIC SUB Form_Open() 'IF $bActivate THEN RETURN Project.SetFormIcon(ME) '$bActivate = TRUE END PUBLIC FUNCTION FindControlFromType(sType AS String) AS String[] DIM hCtrl AS CControl DIM aCtrl AS NEW String[] FOR EACH hCtrl IN Control IF hCtrl.Kind = sType THEN aCtrl.Add(hCtrl.Name) ENDIF NEXT RETURN aCtrl END PRIVATE SUB MoveSelection(DX AS Integer, DY AS Integer, OPTIONAL bFree AS Boolean) DIM hCtrl AS CControl FOR EACH hCtrl IN Selection hCtrl.Move(hCtrl.Control.X + DX, hCtrl.Control.Y + DY, bFree) NEXT END PUBLIC SUB Form_KeyPress() DIM D AS Integer DIM bFree AS Boolean IF Key.Normal THEN D = Desktop.Scale bFree = FALSE ELSE IF Key.Shift AND NOT Key.Control THEN D = 1 bFree = TRUE ELSE RETURN ENDIF SELECT Key.Code CASE Key.Up MoveSelection(0, - D, bFree) CASE Key.Down MoveSelection(0, D, bFree) CASE Key.Left MoveSelection(- D, 0, bFree) CASE Key.Right MoveSelection(D, 0, bFree) END SELECT END PUBLIC SUB UpdateBorder() DIM hCtrl AS CControl DIM H AS Integer hCtrl = Control[Name] IF NOT hCtrl THEN RETURN WITH hCtrl.Control IF hCtrl.GetPropertyDefault("Border") = "None" THEN panTitle.Hide H = 0 panBorder.Move(0, 0, .Width + 2, .Height + 2) panBorder.Border = Border.Plain hCtrl.Control.Move(1, 1) ELSE H = 28 'lblTitle.Font.Height(" ") + 8 panBorder.Move(0, H, .Width + 4, .Height + 2) panBorder.Border = Border.Raised panTitle.Resize(panBorder.W, H) panTitle.Show hCtrl.Control.Move(2, 0) ENDIF panRight.Move(panBorder.W - 4, Max(0, ((.Height + H) - panRight.Height) / 2)) panDown.Move(Max(0, (.Width - panDown.Width) / 2), panBorder.H + H - 4) panRightDown.Move(panRight.X, panDown.Y) 'panBorder.Lower panRight.Raise panDown.Raise panRightDown.Raise END WITH END PUBLIC SUB UpdateTitle() DIM hCtrl AS CControl DIM sPict AS String hCtrl = Control[Name] IF NOT hCtrl THEN RETURN sPict = hCtrl.GetProperty("Icon") IF sPict THEN lblTitle.Text = " " & hCtrl.GetProperty("Text") imgIcon.Picture = Picture["img/16/gambas.png"] TRY imgIcon.Picture = Image.Load(Project.Dir &/ sPict).Stretch(16, 16, TRUE).Picture imgIcon.Show ELSE lblTitle.Text = hCtrl.GetProperty("Text") imgIcon.Hide ENDIF SELECT CASE hCtrl.GetPropertyDefault("Border") CASE "Fixed" btnMaxWindow.Visible = FALSE CASE "Resizable" btnMaxWindow.Visible = TRUE END SELECT UpdateBorder END ' ' ' PUBLIC SUB Activate(OPTIONAL hWindow AS Window) ' ' DIM hOld AS CWindow ' DIM hWin AS CWindow ' ' IF $aWindow.Count THEN ' ' IF hWindow THEN ' TRY tabWorkspace.Index = GetIndex(hWindow) ' RETURN ' ENDIF ' ' hWin = $aWindow[tabWorkspace.Index] ' hOld = $hCurrent ' ' $hCurrent = hWin ' ' IF $hCurrent.Resizable THEN ' $hCurrent.Window.Move(0, 0) ' MoveHandle ' svwWorkspace.Raise ' ELSE ' panWorkspace.Raise ' ENDIF ' 'WITH tabWorkspace ' ' $hCurrent.Move(.X + .ClientX, .Y + .ClientY, .ClientW, .ClientH) ' 'END WITH ' ' WITH $hCurrent.Window ' .Show ' .Raise ' .SetFocus ' END WITH ' ' IF hOld AND IF hOld <> hWin THEN ' hOld.Window.Hide ' 'WAIT 0.2 ' ENDIF ' ' UpdateTitle ' ' ENDIF ' ' ME.Parent._Activate ' ' END ' PUBLIC SUB Form_Resize() ' ' IF tabWorkspace.Visible THEN ' tabWorkspace.Move(0, 0, ME.ClientW, ME.ClientH) ' WITH tabWorkspace ' panTitle.Move(.ClientX, .ClientY, .ClientW, panTitle.H) ' svwWorkspace.Move(.ClientX, panTitle.H + .ClientY, .ClientW, .ClientH - panTitle.H) ' panWorkspace.Move(.ClientX, panTitle.H + .ClientY, .ClientW, .ClientH - panTitle.H) ' END WITH ' panWorkspace.BackColor = Color.Background ' ELSE ' svwWorkspace.Move(0, 0, ME.ClientW, ME.ClientH) ' panWorkspace.Move(0, 0, ME.ClientW, ME.ClientH) ' panWorkspace.BackColor = Color.Gray ' panWorkspace.Raise ' ENDIF ' ' END ' ' PUBLIC SUB Handle_MouseDown() $bMove = TRUE $X = Mouse.ScreenX $Y = Mouse.ScreenY $W = Control[Name].Control.W $H = Control[Name].Control.H 'DEBUG Mouse.ScreenX;; Mouse.ScreenY 'DEBUG $X;; $Y END PUBLIC SUB Handle_MouseMove() DIM W, H, G AS Integer DIM hPanel AS Panel IF NOT $bMove THEN RETURN hPanel = LAST WITH Control[Name].Control W = .W H = .H 'DEBUG "(";; W;; H;; ") + (";; Mouse.ScreenX;; Mouse.ScreenY;; ") -> "; IF hPanel <> panRight THEN H = $H + Mouse.ScreenY - $Y IF hPanel <> panDown THEN W = $W + Mouse.ScreenX - $X W = Max(1, W) H = Max(1, H) IF NOT Mouse.Shift THEN G = Project.Snap IF G THEN W = Max(1, Int(W / G + 0.5)) * G H = Max(1, Int(H / G + 0.5)) * G ENDIF ENDIF 'PRINT #File.Err, "(";; W;; H;; ")" .Resize(W, H) END WITH '$bMove = FALSE 'UpdateBorder '$bMove = TRUE END PUBLIC SUB Handle_MouseUp() $bMove = FALSE END PUBLIC SUB Action_Activate(Key AS String) AS Boolean SELECT CASE Key CASE ".menu" FMenu.Run(ME) CASE ".delete" DeleteSelection CASE ".copy" CopySelection UnSelectAll CASE "paste-form" PasteSelection CASE ".cut" CopySelection DeleteSelection CASE ".align-left", ".align-right", ".align-top", ".align-bottom", ".same-width", ".same-height" DoAlign(Key) CASE ".arrange-horizontal" ArrangeContainer(NULL, Arrange.Horizontal) CASE ".arrange-vertical" ArrangeContainer(NULL, Arrange.Vertical) CASE ".arrange-row" ArrangeContainer(NULL, Arrange.Row) CASE ".arrange-column" ArrangeContainer(NULL, Arrange.Column) CASE ".raise" DoRaise CASE ".lower" DoLower DEFAULT RETURN TRUE END SELECT END PUBLIC SUB Form_Activate() mnuForm.Enabled = TRUE END PUBLIC SUB Form_Deactivate() mnuForm.Enabled = FALSE END From gambas at ...1... Tue Jul 25 02:48:01 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 02:48:01 +0200 Subject: [Gambas-user] Menu events in 1.9.34 (attachment) In-Reply-To: <1153787625.9523.8.camel@...37...> References: <1153782404.3170.0.camel@...37...> <1153787343.9523.5.camel@...37...> <1153787625.9523.8.camel@...37...> Message-ID: <200607250248.01875.gambas@...1...> On Tuesday 25 July 2006 02:33, Allen Murphy wrote: > Sorry, forgot to attach the patch. > > On Mon, 2006-07-24 at 20:29 -0400, Allen Murphy wrote: > > I did some snooping around and found the offending commented code. > > > > In file FForm.class located in ../gambas2-1.9.34/app/src/gambas2, I > > un-commented lines 1464 to 1468: > > > > PUBLIC SUB Menu_Click() > > > > Control_DblClick > > > > END > > > > This seems to have fixed the problem. I have attached the patched file. > > Benoit can verify if I found the right section of problem code. > > > > Take care, > > Allen > > Actually this is more complex than that. If you just uncomment the "Menu_Click" sub, then this event handler can be raised because a true menu is clicked (not one you design in the form editor, but one of the contextual menu). This is because now the contextual menus don't have their own event handler anymore, they use Actions, and so an event handler with the class name is searched. And as the class name is "Menu", the Menu_Click function is called, and you get an error. Try to remove a control in the form editor with the DELETE key. The solution is to replace in CControl.class the code 'Object.Attach(..., "Menu")' by 'Object.Attach(..., "MenuControl")' and to rename Menu_Click as MenuControl_Click. Regards, -- Benoit Minisini From msumurph at ...626... Tue Jul 25 03:05:11 2006 From: msumurph at ...626... (Allen Murphy) Date: Mon, 24 Jul 2006 21:05:11 -0400 Subject: [Gambas-user] Menu events in 1.9.34 (attachment) In-Reply-To: <200607250248.01875.gambas@...1...> References: <1153782404.3170.0.camel@...37...> <1153787343.9523.5.camel@...37...> <1153787625.9523.8.camel@...37...> <200607250248.01875.gambas@...1...> Message-ID: <1153789511.18887.3.camel@...37...> Thanks for the correction, Benoit. I applied the changes that you recommended (in CControl.class I changed lines 285 and 311 to read 'Object.Attach(..., "MenuControl")') and fixed the sub in FForm.class (line 1464 'PUBLIC SUB MenuControl_Click()'). This seems to be working. Take care, Allen On Tue, 2006-07-25 at 02:48 +0200, Benoit Minisini wrote: > On Tuesday 25 July 2006 02:33, Allen Murphy wrote: > > Sorry, forgot to attach the patch. > > > > On Mon, 2006-07-24 at 20:29 -0400, Allen Murphy wrote: > > > I did some snooping around and found the offending commented code. > > > > > > In file FForm.class located in ../gambas2-1.9.34/app/src/gambas2, I > > > un-commented lines 1464 to 1468: > > > > > > PUBLIC SUB Menu_Click() > > > > > > Control_DblClick > > > > > > END > > > > > > This seems to have fixed the problem. I have attached the patched file. > > > Benoit can verify if I found the right section of problem code. > > > > > > Take care, > > > Allen > > > > > Actually this is more complex than that. > > If you just uncomment the "Menu_Click" sub, then this event handler can be > raised because a true menu is clicked (not one you design in the form editor, > but one of the contextual menu). This is because now the contextual menus > don't have their own event handler anymore, they use Actions, and so an event > handler with the class name is searched. And as the class name is "Menu", the > Menu_Click function is called, and you get an error. Try to remove a control > in the form editor with the DELETE key. > > The solution is to replace in CControl.class the code 'Object.Attach(..., > "Menu")' by 'Object.Attach(..., "MenuControl")' and to rename Menu_Click as > MenuControl_Click. > > Regards, > From javadesktop at ...43... Tue Jul 25 03:34:45 2006 From: javadesktop at ...43... (radario) Date: Mon, 24 Jul 2006 18:34:45 -0700 (PDT) Subject: [Gambas-user] Home directory Message-ID: <5478565.post@...1379...> Does Gambas have a home directory variable like $HOME? -- View this message in context: http://www.nabble.com/Home-directory-tf1995926.html#a5478565 Sent from the gambas-user forum at Nabble.com. From timothy.marshal-nichols at ...247... Tue Jul 25 07:56:58 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Tue, 25 Jul 2006 06:56:58 +0100 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C4F56C.9050207@...981...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay > Sent: Monday, 24 July 2006 17:30 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Unix Date conversion > > ' Gambas class file > ' Days in each month (Feb changes depending on leap years) > ' Want the class to be dynamic.. there has to be a better way than > ' declaring a useless variable at the top. RTFM this... > PUBLIC NotStatic AS Boolean > I agree. After all you do have none-static procedures/functions in the class. Thanks 8-{)} Timothy Marshal-Nichols From timothy.marshal-nichols at ...247... Tue Jul 25 08:06:48 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Tue, 25 Jul 2006 07:06:48 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607242230.59112.gambas@...1...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > Minisini > Sent: Monday, 24 July 2006 21:31 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > This project is version of previous one: > > > > It includes the bug fix for the first printing example > > And a second example that includes a crude word wrap function > > > > Note that for the Word-Wrap function to work you must have set up your > > Draw.Begin(Printer) call and also set the Font you want. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > Can I update your example with this new version? > > Note that in the Gambas IDE you have a menu entry that creates a > compressed > archive of your project automatically. > > Regards, > > -- > Benoit Minisini It's not the same project as in the Gambas examples. The Examples project covers printing of Text, Images and Drawings. This one covers printing of more than one Image on a page. Thanks 8-{)} Timothy Marshal-Nichols > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 25 10:24:52 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 10:24:52 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607251024.52531.gambas@...1...> On Tuesday 25 July 2006 08:06, Timothy Marshal-Nichols wrote: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > > Minisini > > Sent: Monday, 24 July 2006 21:31 > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > > On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > > This project is version of previous one: > > > > > > It includes the bug fix for the first printing example > > > And a second example that includes a crude word wrap function > > > > > > Note that for the Word-Wrap function to work you must have set up your > > > Draw.Begin(Printer) call and also set the Font you want. > > > > > > Thanks > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > Can I update your example with this new version? > > > > Note that in the Gambas IDE you have a menu entry that creates a > > compressed > > archive of your project automatically. > > > > Regards, > > > > -- > > Benoit Minisini > > It's not the same project as in the Gambas examples. > > The Examples project covers printing of Text, Images and Drawings. > > This one covers printing of more than one Image on a page. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > OK. Could it be a second example so? -- Benoit Minisini From gambas at ...1... Tue Jul 25 10:26:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 10:26:51 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: References: Message-ID: <200607251026.51295.gambas@...1...> On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay > > Sent: Monday, 24 July 2006 17:30 > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Unix Date conversion > > > > ' Gambas class file > > ' Days in each month (Feb changes depending on leap years) > > ' Want the class to be dynamic.. there has to be a better way than > > ' declaring a useless variable at the top. RTFM this... > > PUBLIC NotStatic AS Boolean > > I agree. After all you do have none-static procedures/functions in the > class. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > Why wanting to have dynamic methods, whereas they are not related to any object? Why created a false class for that? -- Benoit Minisini From gambas at ...1... Tue Jul 25 10:28:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 10:28:00 +0200 Subject: [Gambas-user] Home directory In-Reply-To: <5478565.post@...1379...> References: <5478565.post@...1379...> Message-ID: <200607251028.00722.gambas@...1...> On Tuesday 25 July 2006 03:34, radario wrote: > Does Gambas have a home directory variable like $HOME? You have two ways: 1) The property System.User.Home 2) Use "~" in the file name, like "~/.ssh/known_hosts" Regards, -- Benoit Minisini From rolf.frogs at ...221... Tue Jul 25 10:22:28 2006 From: rolf.frogs at ...221... (rolf) Date: Tue, 25 Jul 2006 10:22:28 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607241656.57279.lordheavym@...626...> References: <44C448F3.2070101@...981...> <200607241656.57279.lordheavym@...626...> Message-ID: <200607251022.28263.rolf.frogs@...221...> Hi Laurent > > Have a Unix date stored in a table and need to convert it to > > something the average human can read... there should be a function for > > this... and at the moment I am too tired to write one.. anybody got one > > they can part with? I've been looking through the gambas docs and don't > > see anything there (although I'm so tired I could walk right past the > > answer and not see it). > > > > Try this, i just going to do it > > It's really dirty but it should work Wouldn't it be better to use/integrate the functions from the C-Library, which are tested since many years and offer also localtime-Support?? Then the wheel doesn't need to be reinvented. Fine regards Rolf > ' Gambas module file > > PUBLIC SUB Main() > > PRINT convert(1142123287) > > END > > PUBLIC FUNCTION convert(value AS Integer) AS Date > > DIM $valYear AS Integer > DIM $valMonth AS Integer = 1 > DIM $valDay AS Integer > DIM $valHour AS Integer > DIM $valMinute AS Integer > DIM $valSecond AS Integer > > DIM $Months AS Integer[] = [31, 27, 31, 30, 31, 30, 31, 31, 30, 31, 30, > 31] DIM $i AS Integer > DIM $valTmp AS Float > > $valTmp = (value / (365.25 * 60 * 60 * 24)) > $valYear = 1970 + $valTmp > IF (checkYear($valYear)) THEN INC ($Months[1]) > $valTmp = Frac($valTmp) * 365.25 > > FOR EACH $i IN $Months > IF $valTmp > $i THEN > $valTmp = $valTmp - $i > INC ($valMonth) > ELSE > BREAK > ENDIF > NEXT > > $valDay = $valTmp > $valTmp = ($valTmp - $valDay) * 24 > $valHour = $valTmp > $valTmp = ($valTmp - $valHour) * 60 > $valMinute = $valTmp > $valTmp = ($valTmp - $valMinute) * 60 > $valSecond = $valTmp > > RETURN Date($valYear, $valMonth, $valDay, $valHour, $valMinute, > $valSecond) > > END > > PUBLIC FUNCTION checkYear(value AS Integer) AS Boolean > > IF ((((value MOD 4) = 0) AND (value MOD 100) <> 0) OR ((value MOD 400) = > 0)) RETURN TRUE > ELSE > RETURN FALSE > ENDIF > > END > > -- > > > Regards, > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jul 25 11:12:05 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 11:12:05 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251022.28263.rolf.frogs@...221...> References: <44C448F3.2070101@...981...> <200607241656.57279.lordheavym@...626...> <200607251022.28263.rolf.frogs@...221...> Message-ID: <200607251112.06177.gambas@...1...> On Tuesday 25 July 2006 10:22, rolf wrote: > Hi Laurent > > > > Have a Unix date stored in a table and need to convert it to > > > something the average human can read... there should be a function for > > > this... and at the moment I am too tired to write one.. anybody got one > > > they can part with? I've been looking through the gambas docs and don't > > > see anything there (although I'm so tired I could walk right past the > > > answer and not see it). > > > > Try this, i just going to do it > > > > It's really dirty but it should work > > Wouldn't it be better to use/integrate the functions from the C-Library, > which are tested since many years and offer also localtime-Support?? > > Then the wheel doesn't need to be reinvented. > > Fine regards > Rolf > To Rob: Maybe Rob should you exume gb.posix? It is really a POSIX thing there! I didn't remember what you put in that component, but maybe I didn't take it because there were too few things in it for making a component. On the other hand, we could have to face other POSIX problems like that, so... Regards, -- Benoit Minisini From lordheavym at ...626... Tue Jul 25 14:01:09 2006 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 25 Jul 2006 14:01:09 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251022.28263.rolf.frogs@...221...> References: <44C448F3.2070101@...981...> <200607241656.57279.lordheavym@...626...> <200607251022.28263.rolf.frogs@...221...> Message-ID: <200607251401.09868.lordheavym@...626...> Le mardi 25 juillet 2006 10:22, rolf a ?crit?: > Hi Laurent > > > > Have a Unix date stored in a table and need to convert it to > > > something the average human can read... there should be a function for > > > this... and at the moment I am too tired to write one.. anybody got one > > > they can part with? I've been looking through the gambas docs and don't > > > see anything there (although I'm so tired I could walk right past the > > > answer and not see it). > > > > Try this, i just going to do it > > > > It's really dirty but it should work > > Wouldn't it be better to use/integrate the functions from the C-Library, > which are tested since many years and offer also localtime-Support?? > > Then the wheel doesn't need to be reinvented. > > Fine regards > Rolf > Why ? Perhaps he don't know anything about C, gambas is really powerful and it can be fun to do thing from ourself, not only copy :) Regards, From sbungay at ...981... Tue Jul 25 14:39:09 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 08:39:09 -0400 Subject: [Gambas-user] Result sets and the fields they contain... Message-ID: <44C610ED.30601@...981...> I have been through the docs and I see nothing like Result.Field[X].Name but I do see an Exists method. Is there a way for the result object to tell me the names of the fields it contains? Steve. From gambas at ...1... Tue Jul 25 14:56:30 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 14:56:30 +0200 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <44C610ED.30601@...981...> References: <44C610ED.30601@...981...> Message-ID: <200607251456.30591.gambas@...1...> On Tuesday 25 July 2006 14:39, sbungay wrote: > I have been through the docs and I see nothing like > Result.Field[X].Name but I do see an Exists method. Is there a way for > the result object to tell me the names of the fields it contains? > > Steve. > You must do: MyResult.Fields[FieldName] to get a ResultField object that will describe the field returned by the Result object. Regards, -- Benoit Minisini From sbungay at ...981... Tue Jul 25 14:58:00 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 08:58:00 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251026.51295.gambas@...1...> References: <200607251026.51295.gambas@...1...> Message-ID: <44C61558.70301@...981...> Benoit Minisini wrote: > On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote: > >>>-----Original Message----- >>>From: gambas-user-bounces at lists.sourceforge.net >>>[mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay >>>Sent: Monday, 24 July 2006 17:30 >>>To: mailing list for gambas users >>>Subject: Re: [Gambas-user] Unix Date conversion >>> >>>' Gambas class file >>>' Days in each month (Feb changes depending on leap years) >>>' Want the class to be dynamic.. there has to be a better way than >>>' declaring a useless variable at the top. RTFM this... >>>PUBLIC NotStatic AS Boolean >> >>I agree. After all you do have none-static procedures/functions in the >>class. >> >>Thanks >> >>8-{)} Timothy Marshal-Nichols >> >> > > Why wanting to have dynamic methods, whereas they are not related to any > object? Why created a false class for that? > What do you mean "created a false class"? From gambas at ...1... Tue Jul 25 15:13:14 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 15:13:14 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C61558.70301@...981...> References: <200607251026.51295.gambas@...1...> <44C61558.70301@...981...> Message-ID: <200607251513.14569.gambas@...1...> On Tuesday 25 July 2006 14:58, sbungay wrote: > Benoit Minisini wrote: > > On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote: > >>>-----Original Message----- > >>>From: gambas-user-bounces at lists.sourceforge.net > >>>[mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay > >>>Sent: Monday, 24 July 2006 17:30 > >>>To: mailing list for gambas users > >>>Subject: Re: [Gambas-user] Unix Date conversion > >>> > >>>' Gambas class file > >>>' Days in each month (Feb changes depending on leap years) > >>>' Want the class to be dynamic.. there has to be a better way than > >>>' declaring a useless variable at the top. RTFM this... > >>>PUBLIC NotStatic AS Boolean > >> > >>I agree. After all you do have none-static procedures/functions in the > >>class. > >> > >>Thanks > >> > >>8-{)} Timothy Marshal-Nichols > >> > > > > Why wanting to have dynamic methods, whereas they are not related to any > > object? Why created a false class for that? > > What do you mean "created a false class"? > I mean this is not a real class. This is only a bunch of static functions, as known as "Module" in Gambas. -- Benoit Minisini From sbungay at ...981... Tue Jul 25 15:20:14 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 09:20:14 -0400 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <200607251456.30591.gambas@...1...> References: <44C610ED.30601@...981...> <200607251456.30591.gambas@...1...> Message-ID: <44C61A8E.4020704@...981...> I was afraid that was the only method. Does this not limit the flexability of what can be done with the Result? For example something like this X = ResultSet[ResultSet.Field[X].Name] would be a VERY useful ability. One could then build a generic function which could iterate through all fields of any result from any SQL. This would make pouplating grids a simple matter.. not good for large result sets (for that a data bound grid is preferred). Steve. Benoit Minisini wrote: > On Tuesday 25 July 2006 14:39, sbungay wrote: > >> I have been through the docs and I see nothing like >>Result.Field[X].Name but I do see an Exists method. Is there a way for >>the result object to tell me the names of the fields it contains? >> >>Steve. >> > > > You must do: > > MyResult.Fields[FieldName] to get a ResultField object that will describe the > field returned by the Result object. > > Regards, > From gambas at ...1... Tue Jul 25 15:32:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 15:32:33 +0200 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <44C61A8E.4020704@...981...> References: <44C610ED.30601@...981...> <200607251456.30591.gambas@...1...> <44C61A8E.4020704@...981...> Message-ID: <200607251532.33577.gambas@...1...> On Tuesday 25 July 2006 15:20, sbungay wrote: > I was afraid that was the only method. > Does this not limit the flexability of what can be done with the > Result? > > For example something like this > > X = ResultSet[ResultSet.Field[X].Name] > ??? I don't understand that line. Anyway, you can enumerate fields by name or by index. 'MyResult[3]' is the same as 'MyResult[MyResult.Fields[3].Name]', if this is what you need. Regards, -- Benoit Minisini From sbungay at ...981... Tue Jul 25 15:30:40 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 09:30:40 -0400 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <44C61A8E.4020704@...981...> References: <44C610ED.30601@...981...> <200607251456.30591.gambas@...1...> <44C61A8E.4020704@...981...> Message-ID: <44C61D00.4020703@...981...> Correction Y = ResultSet[ResultSet.Field[X].Name] or For X = 1 TO ResultSet.Fields.Count Grid.Current.Text = ResultSet[ResultSet.Field[X].Name] Next sbungay wrote: > I was afraid that was the only method. > Does this not limit the flexability of what can be done with the > Result? > > For example something like this > > X = ResultSet[ResultSet.Field[X].Name] > > would be a VERY useful ability. One could then build a generic > function which could iterate through all fields of any result from any > SQL. This would make pouplating grids a simple matter.. not good for > large result sets (for that a data bound grid is preferred). > > Steve. > > > Benoit Minisini wrote: > >>On Tuesday 25 July 2006 14:39, sbungay wrote: >> >> >>> I have been through the docs and I see nothing like >>>Result.Field[X].Name but I do see an Exists method. Is there a way for >>>the result object to tell me the names of the fields it contains? >>> >>>Steve. >>> >> >> >>You must do: >> >>MyResult.Fields[FieldName] to get a ResultField object that will describe the >>field returned by the Result object. >> >>Regards, >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Jul 25 15:31:41 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 09:31:41 -0400 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <200607251532.33577.gambas@...1...> References: <44C610ED.30601@...981...> <200607251456.30591.gambas@...1...> <44C61A8E.4020704@...981...> <200607251532.33577.gambas@...1...> Message-ID: <44C61D3D.6020605@...981...> Hmm.. thought I tried that and got an error.. else I would nt have asked... let me do that again..... Benoit Minisini wrote: > On Tuesday 25 July 2006 15:20, sbungay wrote: > >> I was afraid that was the only method. >> Does this not limit the flexability of what can be done with the >>Result? >> >>For example something like this >> >>X = ResultSet[ResultSet.Field[X].Name] >> > > > ??? I don't understand that line. > > Anyway, you can enumerate fields by name or by index. > > 'MyResult[3]' is the same as 'MyResult[MyResult.Fields[3].Name]', if this is > what you need. > > Regards, > From cjro99 at ...67... Tue Jul 25 15:37:44 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 25 Jul 2006 13:37:44 +0000 Subject: [Gambas-user] ColumnView Message-ID: Thanks very much Ron, that just i Need Regards Javier ---------------------------------------- > From: ronstk at ...239... > To: gambas-user at lists.sourceforge.net > Date: Tue, 25 Jul 2006 01:07:07 +0200 > Subject: Re: [Gambas-user] ColumnView > > On Tuesday 25 July 2006 00:29, Ron Onstenk wrote: > > On Tuesday 25 July 2006 00:03, javier romero wrote: > > > Hi, > > > > > > In a proyect i have a columnView with 3 column and 4 "lines" and when opens the > > > form i selected the first "Item" , i have a button to down the selection, > > > i try to do that with ColumnView.MoveNext() and ColumnView.Current.MoveNext() > > > and ColumnView.item.MovNext() but nothing happens, the current.key in all > > > cases are the first selection, > > > How i can move the selection to down or up selection or another selection?. > > > (only itmes or lines, no columns) > > > > > > Thanks > > > Javier > > > > > > Not really clear what you do mean. > > You select the first item during open. > Then press 'button to down' > Should the highlight (selected) goes 1 down or do you wont the row > with highlighted goes down? > > Columnview uses the Move***() functions to adjust a internal (row) pointer > The item by that pointer is in .Item > This Item is not the same as the .Current item. > The highlight item is the same as the current item. > > If you use the Move***() functions then the invisible internal pointer > is repositioned and not the .Current witch is visible by highlight. > > You can set the highlight on different row with > > public sub ButtonUp_Click() > Dim sKey AS String > > ' remove the highlight > ColumnView.Item.Selected = false > > ' do the reposition > IF NOT ColumnView.MovePrevious() THEN > ' is done, get the key > sKey = ColumnView.Item.Key > > ' highlight the new item by key > ColumnView[sKey].Selected = TRUE > ENDIF > End > > > public sub ButtonDown_Click() > Dim sKey AS String > > ColumnView.Selected = false > IF NOT ColumnView.MoveNext() THEN > sKey = ColumnView.Item.Key > ColumnView[sKey].Selected = TRUE > ENDIF > > end > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Descubre Live.com - tu mundo en l?nea reunido: noticias, deportes, el tiempo, y mucho m?s. http://www.live.com/getstarted From sbungay at ...981... Tue Jul 25 15:55:14 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 09:55:14 -0400 Subject: [Gambas-user] ACK! It was a PEBKAC! In-Reply-To: <44C61D3D.6020605@...981...> References: <44C610ED.30601@...981...> <200607251456.30591.gambas@...1...> <44C61A8E.4020704@...981...> <200607251532.33577.gambas@...1...> <44C61D3D.6020605@...981...> Message-ID: <44C622C2.90508@...981...> Boy do I feel sheepish. I must have "fat fingered" it last night. The Problem Exists Between the Keyboard And the Chair. Thanks for responding Benoit... I really do "think" I have exhausted all avenues before I send in an email... honest! sbungay wrote: > Hmm.. thought I tried that and got an error.. else I would nt have > asked... let me do that again..... > > Benoit Minisini wrote: > >>On Tuesday 25 July 2006 15:20, sbungay wrote: >> >> >>> I was afraid that was the only method. >>> Does this not limit the flexability of what can be done with the >>>Result? >>> >>>For example something like this >>> >>>X = ResultSet[ResultSet.Field[X].Name] >>> >> >> >>??? I don't understand that line. >> >>Anyway, you can enumerate fields by name or by index. >> >>'MyResult[3]' is the same as 'MyResult[MyResult.Fields[3].Name]', if this is >>what you need. >> >>Regards, >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sbungay at ...981... Tue Jul 25 16:12:36 2006 From: sbungay at ...981... (sbungay) Date: Tue, 25 Jul 2006 10:12:36 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251513.14569.gambas@...1...> References: <200607251026.51295.gambas@...1...> <44C61558.70301@...981...> <200607251513.14569.gambas@...1...> Message-ID: <44C626D4.7050702@...981...> Benoit Minisini wrote: > On Tuesday 25 July 2006 14:58, sbungay wrote: > >>Benoit Minisini wrote: >> >>>On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote: >>> >>>>>-----Original Message----- >>>>>From: gambas-user-bounces at lists.sourceforge.net >>>>>[mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay >>>>>Sent: Monday, 24 July 2006 17:30 >>>>>To: mailing list for gambas users >>>>>Subject: Re: [Gambas-user] Unix Date conversion >>>>> >>>>>' Gambas class file >>>>>' Days in each month (Feb changes depending on leap years) >>>>>' Want the class to be dynamic.. there has to be a better way than >>>>>' declaring a useless variable at the top. RTFM this... >>>>>PUBLIC NotStatic AS Boolean >>>> >>>>I agree. After all you do have none-static procedures/functions in the >>>>class. >>>> >>>>Thanks >>>> >>>>8-{)} Timothy Marshal-Nichols >>>> >>> >>>Why wanting to have dynamic methods, whereas they are not related to any >>>object? Why created a false class for that? >> >> What do you mean "created a false class"? >> > > > I mean this is not a real class. This is only a bunch of static functions, as > known as "Module" in Gambas. > Ahhh, I see. When I was coding VB (many moons ago) we would "class out" logical groupings of repetitive code. Some times this would lead to the creation of DLLs for easy use and inclusion in other applications. One such that I wrote (based on an idea by another) was a RAD framework that took all the tedium out of using databases. Modules work for me though... old habits die hard. From James.Hatridge at ...17... Tue Jul 25 14:00:11 2006 From: James.Hatridge at ...17... (James Hatridge) Date: Tue, 25 Jul 2006 14:00:11 +0200 Subject: [Gambas-user] First Post & Slider question Message-ID: <200607251400.11603.James.Hatridge@...17...> Hi all, Being my first post I'll introduce myself. I'm Jim, an American living in Germany. My wife, Hildegard, is German. We live on a small farm in southern Bavaria and I export German postage stamps to the English speaking market, US, UK, Canada, etc. So I've used basic back in the 70's/ 80's, but this is the time I've used a VB type basic. Its a bit different than what I remember from the PDP-11/70 I learn it on. :) So, my question! I have a slider that is vertical, it values are 0 to 100. It starts at the top with 0, but I want the 100 at the top. Is there a way to change this? Thanks, JIM -- Jim Hatridge Linux User #88484 ------------------------------------------------------ WartHog Bulletin Info about new German Stamps http://www.fuzzybunnymilitia.org/~hatridge/bulletin/index.php Viel Feind -- Viel Ehr' Anti-US Propaganda stamp collection http://www.fuzzybunnymilitia.org/~hatridge/collection/index.php From Vince.Scott at ...1171... Tue Jul 25 18:29:27 2006 From: Vince.Scott at ...1171... (Scott, Vince) Date: Tue, 25 Jul 2006 11:29:27 -0500 Subject: [Gambas-user] Problems with IDE Please HELP Message-ID: I have started getting some issue with Gambas. I have both version installed on my PC...meaning Stable and Development. When I launch the IDE of the stable version and select my project it first tells me my project is already opened (I guess from previous crash and the .lock file.) When I type in the IDE it will crash on me. [13] Null object FEditor.GetSymbolType 1263. Any ideas on how to solve this issue??? Vince Scott This communication is confidential and may be legally privileged. If you are not the intended recipient, (i) please do not read or disclose to others, (ii) please notify the sender by reply mail, and (iii) please delete this communication from your system. Failure to follow this process may be unlawful. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Jul 25 18:41:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 18:41:08 +0200 Subject: [Gambas-user] Problems with IDE Please HELP In-Reply-To: References: Message-ID: <200607251841.08812.gambas@...1...> On Tuesday 25 July 2006 18:29, Scott, Vince wrote: > I have started getting some issue with Gambas. I have both version > installed on my PC...meaning Stable and Development. When I launch the > IDE of the stable version and select my project it first tells me my > project is already opened (I guess from previous crash and the .lock > file.) When I type in the IDE it will crash on me. [13] Null object > FEditor.GetSymbolType 1263. Any ideas on how to solve this issue??? > > Vince Scott > > Which version? -- Benoit Minisini From ronstk at ...239... Tue Jul 25 18:49:28 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 18:49:28 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607251024.52531.gambas@...1...> References: <200607251024.52531.gambas@...1...> Message-ID: <200607251849.28973.ronstk@...239...> On Tuesday 25 July 2006 10:24, Benoit Minisini wrote: > On Tuesday 25 July 2006 08:06, Timothy Marshal-Nichols wrote: > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net > > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > > > Minisini > > > Sent: Monday, 24 July 2006 21:31 > > > To: mailing list for gambas users > > > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > > > > On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > > > This project is version of previous one: > > > > > > > > It includes the bug fix for the first printing example > > > > And a second example that includes a crude word wrap function > > > > > > > > Note that for the Word-Wrap function to work you must have set up your > > > > Draw.Begin(Printer) call and also set the Font you want. > > > > > > > > Thanks > > > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > > Can I update your example with this new version? > > > > > > Note that in the Gambas IDE you have a menu entry that creates a > > > compressed > > > archive of your project automatically. > > > > > > Regards, > > > > > > -- > > > Benoit Minisini > > > > It's not the same project as in the Gambas examples. > > > > The Examples project covers printing of Text, Images and Drawings. > > > > This one covers printing of more than one Image on a page. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > OK. Could it be a second example so? > Even if it likes overkill as example for print I think yes. The version as _PrintTwoImagesV0.0.2.tar_ contains the twoimages but also a a wrap function for text aside of them. Timothy did even make it nice looking with icons for 2 layout's available. Really a very nice example. @Timothy I have to happy slapping me very hard. Found in april archive your print example/explain/code Shame to me I forget that one. Ron From ronstk at ...239... Tue Jul 25 18:56:03 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 18:56:03 +0200 Subject: [Gambas-user] ColumnView In-Reply-To: References: Message-ID: <200607251856.03293.ronstk@...239...> On Tuesday 25 July 2006 15:37, javier romero wrote: > Thanks very much Ron, that just i Need > > Regards > Javier I'm happy I could help someone after I was helped :) Ron From ronstk at ...239... Tue Jul 25 19:16:31 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 19:16:31 +0200 Subject: [Gambas-user] Result sets and the fields they contain... In-Reply-To: <44C61D00.4020703@...981...> References: <44C610ED.30601@...981...> <44C61A8E.4020704@...981...> <44C61D00.4020703@...981...> Message-ID: <200607251916.31786.ronstk@...239...> On Tuesday 25 July 2006 15:30, sbungay wrote: > Correction > > Y = ResultSet[ResultSet.Field[X].Name] > > or > > For X = 1 TO ResultSet.Fields.Count > ? ? Grid.Current.Text = ResultSet[ResultSet.Field[X].Name] > Next > Do I miss here something? ResultSet[key as string] returns the value of the field. You use now for the key _ResultSet.Field[X].Name_ where X is a integer number for the index. When I'm right _ResultSet.Field[X]_ should return the value of the field. Looks to me next should do the same in that case ? For X = 1 TO ResultSet.Fields.Count Grid.Current.Text = ResultSet.Field[X] Next For sure I miss something else. regarding the help Field has properties Default, length, name, table and type. Where is the value coming from? At least for logical reason .Field.Value should be there too. Why should I have .Field[X].Name, .Field[X].Type and not .Field[X].Value ? My 2 cents Ron From ronstk at ...239... Tue Jul 25 19:23:18 2006 From: ronstk at ...239... (Ron Onstenk) Date: Tue, 25 Jul 2006 19:23:18 +0200 Subject: [Gambas-user] First Post & Slider question In-Reply-To: <200607251400.11603.James.Hatridge@...17...> References: <200607251400.11603.James.Hatridge@...17...> Message-ID: <200607251923.18622.ronstk@...239...> On Tuesday 25 July 2006 14:00, James Hatridge wrote: > Hi all, > > Being my first post I'll introduce myself. I'm Jim, an American living in > Germany. My wife, Hildegard, is German. We live on a small farm in southern > Bavaria and I export German postage stamps to the English speaking market, > US, UK, Canada, etc. > > So I've used basic back in the 70's/ 80's, but this is the time I've used a VB > type basic. Its a bit different than what I remember from the PDP-11/70 I > learn it on. :) > > So, my question! I have a slider that is vertical, it values are 0 to 100. It > starts at the top with 0, but I want the 100 at the top. Is there a way to > change this? > > Thanks, > > JIM Maybe a open door. You can give the .Min and .Max positive and negative numbers. For the top -100 and bottom 0 could do the trick Using the arithmetic with _Slider.Value = 0 - slidervalue_ for set and _myVal = 0 - Slider.Value_ for read should the work. Multiply with -1 could also be used :) Ron From gambas at ...1... Tue Jul 25 23:29:38 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 23:29:38 +0200 Subject: [Gambas-user] LDAP search with gambas2 In-Reply-To: <44C4F956.3070701@...1525...> References: <44C4F956.3070701@...1525...> Message-ID: <200607252329.38845.gambas@...1...> On Monday 24 July 2006 18:46, Giovanni Romanenghi wrote: > I'm newbye for gambas. I use gambas2 ver. 1.9.34. > > I want read an ldap entry. Init , Bind and search work properly. My > problem is this: > When I want print my ldap entry if I have attribute multi value don't > print all value but only 1 value. > This is my code: > > PUBLIC SUB btnOK_Click() > > DIM ldaphost AS String = "localhost" > DIM ldapport AS Integer = "389" > DIM ldaprootdn AS String = "cn=Directory Manager" > DIM ldaprootpwd AS String = "password" > DIM variabile AS NEW Ldap > DIM pippo AS Object[] > DIM var1 AS Boolean > DIM var2 AS Integer > DIM element AS String > DIM dict AS NEW Collection > DIM count AS Integer > > TBldaphost.Text = ldaphost > TBldapport.Text = ldapport > var1 = variabile.Init(ldaphost, ldapport) > var2 = variabile.Bind(ldaprootdn, ldaprootpwd) > pippo = variabile.Search("dc=sorint,dc=it", 2, "uid=giovanni") > > '''****************************************' > ''''' My problem is in this line '''' > FOR EACH element IN pippo[0].getentries() > PRINT element; > NEXT > > END > > Excuseme for my english. > > TIA > Bye Giovanni > > Alas I can hardly help you, as I know almost nothing about LDAP. Carlo Sorda has made the LDAP component, and so could tell you about your problem. Maybe he is on holidays? Regards, -- Benoit Minisini From rporticio at ...43... Wed Jul 26 04:37:08 2006 From: rporticio at ...43... (Ramon Orticio) Date: Tue, 25 Jul 2006 19:37:08 -0700 (PDT) Subject: [Gambas-user] postgresql and mysql development packages? Message-ID: <20060726023709.33939.qmail@...1037...> dear friends, i'm lost in looking for these files. it seems they are not included in gambas 1.0.16. where could i possibly find them. sorry for the inconviniences this query might have caused you. thank you for your help. ramon --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.marshal-nichols at ...247... Wed Jul 26 07:48:06 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Wed, 26 Jul 2006 06:48:06 +0100 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251026.51295.gambas@...1...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > Minisini > Sent: Tuesday, 25 July 2006 09:27 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Unix Date conversion > > > On Tuesday 25 July 2006 07:56, Timothy Marshal-Nichols wrote: > > > -----Original Message----- > > > From: gambas-user-bounces at lists.sourceforge.net > > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of sbungay > > > Sent: Monday, 24 July 2006 17:30 > > > To: mailing list for gambas users > > > Subject: Re: [Gambas-user] Unix Date conversion > > > > > > ' Gambas class file > > > ' Days in each month (Feb changes depending on leap years) > > > ' Want the class to be dynamic.. there has to be a better way than > > > ' declaring a useless variable at the top. RTFM this... > > > PUBLIC NotStatic AS Boolean > > > > I agree. After all you do have none-static procedures/functions in the > > class. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > Why wanting to have dynamic methods, whereas they are not related to any > object? Why created a false class for that? > > -- > Benoit Minisini > 1. You may have a constructor and destructor in the object and want to control when they are executed. Or even if the are executed - say if the object was just used on one form that is a dialog. This is even more true if your object calls on resources outside of Gambas. 2. Good programming languages 'encourage good programming practice' rather than force the ideas the language developer on the language user. There should be no penalty for using the language in a way not intended by the language developer. This is why C and C++ have always been more popular then Pascal. Both the C and Pascal languages were developed by people who were influenced by the ideas of structured programming that were around at the time. Both wanted to get away from the GOTO style of programming of languages like COBOL. C took the first approach. C rewarded you for good programming practice - Pascal forced you. This is one reason why you use C/C++ to develop Gambas and not Pascal! Thanks 8-{)} Timothy Marshal-Nichols > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Wed Jul 26 08:18:03 2006 From: wdahn at ...1000... (Werner) Date: Wed, 26 Jul 2006 14:18:03 +0800 Subject: [Gambas-user] postgresql and mysql development packages? In-Reply-To: <20060726023709.33939.qmail@...1037...> References: <20060726023709.33939.qmail@...1037...> Message-ID: <44C7091B.4010203@...1000...> Ramon Orticio wrote: > dear friends, > > i'm lost in looking for these files. it seems they are not included in > gambas 1.0.16. where could i possibly find them. > > sorry for the inconviniences this query might have caused you. > > thank you for your help. > > ramon > > > In the IDE use menu "Project" item "Properties". A dialog titled "Project Properties" appears. Click on the "Components" tab. Enable "gb.db Database access component" entry. Also you must have the database files mysql|postgresql (and their devel files?) installed. Regards, Werner From timothy.marshal-nichols at ...247... Wed Jul 26 07:07:48 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Wed, 26 Jul 2006 06:07:48 +0100 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: <200607242230.59112.gambas@...1...> Message-ID: > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > Minisini > Sent: Monday, 24 July 2006 21:31 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > This project is version of previous one: > > > > It includes the bug fix for the first printing example > > And a second example that includes a crude word wrap function > > > > Note that for the Word-Wrap function to work you must have set up your > > Draw.Begin(Printer) call and also set the Font you want. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > Can I update your example with this new version? > > Note that in the Gambas IDE you have a menu entry that creates a > compressed > archive of your project automatically. > > Regards, > > -- > Benoit Minisini Thinking again about this: may be I shall update the project in the Gambas examples to include the extra features from the latest project. I will add a word wrap option to the text tab and an extra tab for printing two images on a page. Thanks 8-{)} Timothy Marshal-Nichols > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tndavila at ...626... Wed Jul 26 17:37:10 2006 From: tndavila at ...626... (=?ISO-8859-1?Q?Antonio_Jes=FAs_D=E1vila?=) Date: Wed, 26 Jul 2006 17:37:10 +0200 Subject: [Gambas-user] About #6 term signal , object deletion and memory leaks Message-ID: <44C78C26.2080104@...626...> Hello Gambas user !! I am new in gambas, and i have some problems , i love it more than vb because, gambas don't have these strange manner of do some things that vb have. mi problem is sometimes, in arbitrary point of the app i receive an error (the program was halted sending signal #6 ) and my app end some times gambas output(console from gambas was launched) shows *** glibc detected *** free(): invalid pointer: 0x082dcd40 *** my gambas console outputs shows : WARNING: circular references detected FIntro (1) CWarehouse (1) CCore (1) FXmlForm (1) CMSystem (1) CFormItemBackground (1) CFormItemButton (1) CFormItemLabel (1) CFormItemPicture (2) Mutex destroy failure: Dispositivo ? recurso ocupado(device o resource busy) WARNING: 86 allocation(s) non freed. Some questions i have , that faq's and help don't answer: is enought to delete an object doing obj = null ? if the object has two vars pointing at him ? is in gambas some garbage collector like java ? can the circular references be my problem ? i search info about signal term #6 but only description is "abort", which error force gambas to raise #6 term signal error ? there are a function to validate a pointer is valid ? i try to use _free() but it likes never be called by the system i am doing something wrong ? thanks a lot. From gambas at ...1... Wed Jul 26 20:31:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Jul 2006 20:31:27 +0200 Subject: [Gambas-user] About #6 term signal , object deletion and memory leaks In-Reply-To: <44C78C26.2080104@...626...> References: <44C78C26.2080104@...626...> Message-ID: <200607262031.27441.gambas@...1...> On Wednesday 26 July 2006 17:37, Antonio Jes?s D?vila wrote: > Hello Gambas user !! > > I am new in gambas, and i have some problems , i love it more than vb > because, gambas don't have these strange manner of do some things that > vb have. > > mi problem is sometimes, in arbitrary point of the app i receive an > error (the program was halted sending signal #6 ) and my app end > > some times gambas output(console from gambas was launched) shows > > *** glibc detected *** free(): invalid pointer: 0x082dcd40 *** This messages means that there is a bug in the interpreter that corrupted the memory, and that glibc detected it. So it aborted the program by sending it the signal #6. > > my gambas console outputs shows : > > WARNING: circular references detected > FIntro (1) > CWarehouse (1) > CCore (1) > FXmlForm (1) > CMSystem (1) > CFormItemBackground (1) > CFormItemButton (1) > CFormItemLabel (1) > CFormItemPicture (2) > Mutex destroy failure: Dispositivo ? recurso ocupado(device o resource > busy) > WARNING: 86 allocation(s) non freed. > > Some questions i have , that faq's and help don't answer: > > is enought to delete an object doing obj = null ? No. An object is deleted only when nothing has a reference on it. > if the object has two > vars pointing at him ? is in gambas some garbage collector like java ? No garbage collector. > > can the circular references be my problem ? No. The interpreter should *never* crash. > > i search info about signal term #6 but only description is "abort", > which error force gambas to raise #6 term signal error ? > > there are a function to validate a pointer is valid ? > > i try to use _free() but it likes never be called by the system i am > doing something wrong ? _free() is not used anymore for classes written in Gambas. You must: * Tell me what version of gambas you use. * Send me your project. * Tell me how to reproduce the signal #6 Regards, -- Benoit Minisini From gambas at ...1... Wed Jul 26 23:42:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Jul 2006 23:42:03 +0200 Subject: [Gambas-user] Print probleem with pictures/text In-Reply-To: References: Message-ID: <200607262342.03330.gambas@...1...> On Wednesday 26 July 2006 07:07, Timothy Marshal-Nichols wrote: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net > > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > > Minisini > > Sent: Monday, 24 July 2006 21:31 > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] Print probleem with pictures/text > > > > On Monday 24 July 2006 11:48, Timothy Marshal-Nichols wrote: > > > This project is version of previous one: > > > > > > It includes the bug fix for the first printing example > > > And a second example that includes a crude word wrap function > > > > > > Note that for the Word-Wrap function to work you must have set up your > > > Draw.Begin(Printer) call and also set the Font you want. > > > > > > Thanks > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > Can I update your example with this new version? > > > > Note that in the Gambas IDE you have a menu entry that creates a > > compressed > > archive of your project automatically. > > > > Regards, > > > > -- > > Benoit Minisini > > Thinking again about this: may be I shall update the project in the Gambas > examples to include the extra features from the latest project. > > I will add a word wrap option to the text tab and an extra tab for printing > two images on a page. > > > Thanks > > 8-{)} Timothy Marshal-Nichols > > OK. Send me the result! -- Benoit Minisini From leonardo at ...1237... Thu Jul 27 00:02:46 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 27 Jul 2006 00:02:46 +0200 Subject: [Gambas-user] Errors in Options windows of Gambas 1.9.35 Message-ID: <44C7E686.6070104@...1237...> In italian localization of Gambas 1.9.35 there are errors in dropdown menues. All the choices with S? and No appear as a single voice "S?/nNo" and when I click on the menu I cannot choose nothing. Clicking on the last voice ("Show mascot") the window closes itself. -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From gambas at ...1... Thu Jul 27 01:58:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Jul 2006 01:58:41 +0200 Subject: [Gambas-user] Errors in Options windows of Gambas 1.9.35 In-Reply-To: <44C7E686.6070104@...1237...> References: <44C7E686.6070104@...1237...> Message-ID: <200607270158.41968.gambas@...1...> On Thursday 27 July 2006 00:02, Leonardo Miliani wrote: > In italian localization of Gambas 1.9.35 there are errors in dropdown > menues. All the choices with S? and No appear as a single voice "S?/nNo" > and when I click on the menu I cannot choose nothing. > Clicking on the last voice ("Show mascot") the window closes itself. This is a translation error. I will fix it... Regards, -- Benoit Minisini From sbungay at ...981... Thu Jul 27 05:33:46 2006 From: sbungay at ...981... (sbungay) Date: Wed, 26 Jul 2006 23:33:46 -0400 Subject: [Gambas-user] New Find dialog... Message-ID: <44C8341A.70009@...981...> I just did a ctrl+f and got this tool bar thing at the top of the editor. This is a replacement for a search & replace dialogue? IMHO is is not an improvement. Change it back... pleeeeeease! Everything else is working fine... fewer crashes seems nice & stable. No highlighting problems. Editor works well, autocomplete works well enough and is more a help than a hinderance so thats a good thing. From mike_keehan at ...679... Thu Jul 27 13:27:44 2006 From: mike_keehan at ...679... (Mike Keehan) Date: Thu, 27 Jul 2006 12:27:44 +0100 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C8341A.70009@...981...> References: <44C8341A.70009@...981...> Message-ID: <44C8A330.1060608@...679...> sbungay wrote: > I just did a ctrl+f and got this tool bar thing at the top of the > editor. This is a replacement for a search & replace dialogue? IMHO is > is not an improvement. Change it back... pleeeeeease! > Well I disagree, sbungay. I think it works really well - takes up very little space, has simple Find and Replace buttons, and the Show List feature is brilliant. The only thing I miss is the highlighting of all matches in the code, but I can certainly live without that. It will take some time to try it out properly in a project, but my first impression is that it is a very good replacement. Mike From sbungay at ...981... Thu Jul 27 05:42:40 2006 From: sbungay at ...981... (sbungay) Date: Wed, 26 Jul 2006 23:42:40 -0400 Subject: [Gambas-user] Never Mind... Message-ID: <44C83630.80604@...981...> Its gone.... I never invoked S&R from the icons, usually use all keyboard shortcuts. Please bring back the old S&R dialogue. From sbungay at ...981... Thu Jul 27 05:40:01 2006 From: sbungay at ...981... (sbungay) Date: Wed, 26 Jul 2006 23:40:01 -0400 Subject: [Gambas-user] How do I turn it off!!! Message-ID: <44C83591.70607@...981...> Now that this gawdawful search & replace tool bar thing is at the top of my editor window I can't seem to get rid of it. It's sucking up valuable screen space and is cluttering up the IDE. From gambas at ...1... Thu Jul 27 14:28:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Jul 2006 14:28:27 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C8341A.70009@...981...> References: <44C8341A.70009@...981...> Message-ID: <200607271428.27555.gambas@...1...> On Thursday 27 July 2006 05:33, sbungay wrote: > I just did a ctrl+f and got this tool bar thing at the top of the > editor. This is a replacement for a search & replace dialogue? IMHO is > is not an improvement. Change it back... pleeeeeease! Do you have some arguments ? -- Benoit Minisini From gambas at ...1... Thu Jul 27 14:29:42 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Jul 2006 14:29:42 +0200 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <44C83591.70607@...981...> References: <44C83591.70607@...981...> Message-ID: <200607271429.42384.gambas@...1...> On Thursday 27 July 2006 05:40, sbungay wrote: > Now that this gawdawful search & replace tool bar thing is at the top > of my editor window I can't seem to get rid of it. It's sucking up > valuable screen space and is cluttering up the IDE. > Press the ESCAPE key. -- Benoit Minisini From stefanopalmeri at ...152... Wed Jul 26 05:45:44 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Wed, 26 Jul 2006 05:45:44 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <44C626D4.7050702@...981...> References: <200607251513.14569.gambas@...1...> <44C626D4.7050702@...981...> Message-ID: <200607260545.44605.stefanopalmeri@...152...> Hi, all. It's just for fun... Same result as Laurent Carlier, but using 'date'. Just another example of GNU/Linux and Gambas magics... PUBLIC SUB Main() PRINT ConvertFromUnix(1142123287) END PUBLIC SUB ConvertFromUnix(lSeconds AS Long) AS String DIM lUnixDateNow AS Long DIM sDateOutput AS String DIM lDifference AS Long SHELL "`which date` +%s" TO sDateOutput lUnixDateNow = Val(sDateOutput) lDifference = lUnixDateNow - lSeconds lDifference = lDifference * -1 SHELL "`which date` '+%d/%m/%Y %H:%M:%S' --utc --date " & "'" & lDifference & " seconds'" TO sDateOutput RETURN Trim$(sDateOutput) END Regards, Stefano Palmeri From sbungay at ...981... Thu Jul 27 23:26:39 2006 From: sbungay at ...981... (sbungay) Date: Thu, 27 Jul 2006 17:26:39 -0400 Subject: [Gambas-user] New Find dialog... In-Reply-To: <200607271428.27555.gambas@...1...> References: <44C8341A.70009@...981...> <200607271428.27555.gambas@...1...> Message-ID: <44C92F8F.3010704@...981...> 1. It is not intuitive to use. 1.a It is difficult to determine what the icons mean unless you 1.b float the mouse over the icons for a couple of seconds (having to do this is time consuming and annoying) 2. It sucks up valuable screen real-estate and reduces the area for coding even more than it already is. 3. It changes the entire paradigm for Search & replace but in truth it does not improve useability. Just my .02 cents worth. It was late and I was tired when it popped up, now that I have had a second look at it though these arguments stand firm. Benoit Minisini wrote: > On Thursday 27 July 2006 05:33, sbungay wrote: > >> I just did a ctrl+f and got this tool bar thing at the top of the >>editor. This is a replacement for a search & replace dialogue? IMHO is >>is not an improvement. Change it back... pleeeeeease! > > > Do you have some arguments ? > From sbungay at ...981... Thu Jul 27 23:46:44 2006 From: sbungay at ...981... (sbungay) Date: Thu, 27 Jul 2006 17:46:44 -0400 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <200607271429.42384.gambas@...1...> References: <44C83591.70607@...981...> <200607271429.42384.gambas@...1...> Message-ID: <44C93444.5070706@...981...> Discovered that one already. If it absolutely HAS to be done this way (not adviseable) then lets at least try to improve on it. The search list icon looks like it was pulled from an old copy of Mandrake, the search next and search all icons make little sense (form follows function.. right?)...this is not a VCR or DVD player so lets loose that paradigm. I suggest instead that you keep the magnifying-glass as a theme for searching (which you already have with little paw prints around it) so there is some consistency in the interface. Magnyfying glass superimposed over - a list (like a listbox) = Search List. - over a File Icon = Search File. - Over a Gant Chart = Search Project Now, make a few different sizes of these. At 1600 by 1200 the icons are incredibly small on my laptop screen. At 1280 by 1024 they are readable on my 17 inch LCD... but just barely. I like to work in the highest resolution possible so I have as much screen realestate as I can (yes it can be hard on the eyes (especially if using an old out of focus CRT LOL :)). The blue Arrows for swapping information between boxes? what were your thoughts behind that? I agree it might come in handy, but only if you entered the data in the wrong place (which I have had happen perhaps all of one-time when using a more conventional S&R dialogue in another visually based BASIC that we all know and love. Also suggest that if ctrl+f pops up the gui tool then it could also remove it when it is visible. Esc works too, but this is not something that is modal, so you're not exactly escaping from anything, and in the greater context of the IDE pressing Esc to arbitrarily remove the search toolbar doesn't make much intuitive sense. Steve :) Benoit Minisini wrote: > On Thursday 27 July 2006 05:40, sbungay wrote: > >> Now that this gawdawful search & replace tool bar thing is at the top >>of my editor window I can't seem to get rid of it. It's sucking up >>valuable screen space and is cluttering up the IDE. >> > > > Press the ESCAPE key. > From sbungay at ...981... Thu Jul 27 23:59:57 2006 From: sbungay at ...981... (sbungay) Date: Thu, 27 Jul 2006 17:59:57 -0400 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C8A330.1060608@...679...> References: <44C8341A.70009@...981...> <44C8A330.1060608@...679...> Message-ID: <44C9375D.1080302@...981...> Glad you like it Mike. Yes it works well. The "show list feature"is indeed brilliant... and that is something I will probably grow fond of. Overall I can live with it, but I don't have to like it, then again it is nicer to live with something you like, so I made a few suggestions.. I'm sure others can come up with better ideas than I. I am working on a fairly big project now and I can tell you that having to click on that little find-previous button with the mouse is starting to get old really fast. User Interface design is not so much a science as an art... and I don't know art but I know what I like. Mike Keehan wrote: > sbungay wrote: > >> I just did a ctrl+f and got this tool bar thing at the top of the >>editor. This is a replacement for a search & replace dialogue? IMHO is >>is not an improvement. Change it back... pleeeeeease! >> > > > Well I disagree, sbungay. > > I think it works really well - takes up very little space, has simple > Find and Replace buttons, and the Show List feature is brilliant. > > The only thing I miss is the highlighting of all matches in the code, > but I can certainly live without that. > > It will take some time to try it out properly in a project, but my > first impression is that it is a very good replacement. > > Mike > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jul 25 22:58:56 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 25 Jul 2006 22:58:56 +0200 Subject: [Gambas-user] Release of gambas 1.9.35 Message-ID: <200607252258.56295.gambas@...1...> Hi all, I continue my work on the Development Environment in this release. But you get two important bug fixes in the interpreter too! * The Development Environment Find dialog was redesigned. * The automatic completion is less aggressive. * A form can be reloaded. * The GTK component got a GridView control. * Reading and writing a string into a stream without specifying the length now work correctly. * Temporary files are now correctly removed when the interpreter terminates. This last fix is important, otherwise your /tmp directory will be full of void temporary directories in /tmp/gambas.$USER_ID/$PROCESS_ID/. I had thousands of them, almost one for each possible process ID! Here is the full changelog: --8<--------------------------------------------------------------------------- CONFIGURATION & INSTALLATION * The README.HOWTO-PACKAGE-GAMBAS file has been updated. Please read it carefully if you make binary packages of the development version! * This version should compile without errors with the very last version of gcc. DEVELOPMENT ENVIRONMENT * BUG: Clicking on a menu inside the form editor now opens the editor inside the event handler as before. * BUG: Changing the stacking order of controls keeps the selection handles on top. * NEW: The new logo is used in more places. * BUG: You can select the default color in the color dialog again without crashing the IDE. * NEW: The automatic completion ignores string contents and comments now. * BUG: The automatic completion is less aggressive. * NEW: The find dialog were replaced by a find panel with toolbars. * NEW: The result of a global project search is now displayed directly in the project tree. * NEW: When debugging, selecting an expression in the editor displays its value in the message bar. * NEW: You can reload a form now. * BUG: The mascot came back. * NEW: A new highlight theme, named 'Amethyst'. INTERPRETER * NEW: GB.Loop() is a new interpreter API that allows a component to call the default event loop to implement its own one. * NEW: Object.Count is a static method that returns how many times an object is referenced. * BUG: Comparing objects now work in all cases. * NEW: A component now can export a GB_SIGNAL() function that will be called by the interpreter in specific situations. At the moment, the following signals are implemented: GB_SIGNAL_DEBUG_BREAK (the program is stopped in the debugger), GB_SIGNAL_DEBUG_CONTINUE (the program is running), and GB_SIGNAL_DEBUG_FORWARD (the program will run step by step). * NEW: String.InStr() and String.RInStr() are two new string search functions that deals with UTF-8. * BUG: Randomize() works now when the seed is specified * BUG: Reading and writing a string into a stream without specifying the length now work correctly. * BUG: Temporary files are now correctly removed when the interpreter terminates. GB.QT COMPONENT * NEW: Arrangement by row and column now take the Expand property into account. * BUG: ToolButton now raises its Click event according to its toggle status. * BUG: Select events of ListBox, ListView, TreeView and ColumnView are now posted, so that its behaviour is more logical. * NEW: Action class is now called only when a control is effectively associated with an action. * BUG: A close embedded window automatically activates its parent window. * NEW: Forms now accept keyboard focus when clicked. This is experimental and may be removed in the future. * NEW: Show and Hide events are not sent anymore if they come from the window manager. This is experimental too! * BUG: Some fixes in the Action class. GB.FORM COMPONENT * NEW: Some cosmetic changes in the SidePanel control. GB.FORM.MDI COMPONENT * NEW: A ToolBar child having the Expand property set now makes the toolbar as large as possible. * NEW: ToolBar can have an action now. GB.SETTINGS COMPONENT * BUG: The default settings file directory is now automatically created. GB.GTK COMPONENT * NEW: Arrangement by row and column now take the Expand property into account. * NEW: The GridView control was implemented. --8<--------------------------------------------------------------------------- Regards, -- Benoit Minisini From rohnny at ...1248... Thu Jul 27 09:20:03 2006 From: rohnny at ...1248... (R. Stormo) Date: Thu, 27 Jul 2006 00:20:03 -0700 (PDT) Subject: [Gambas-user] Workspace In-Reply-To: <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> Message-ID: <5516441.post@...1379...> In version .35 I still can't use workspace. How far is it to this will work again? Like to take in use the new version but without this I can't. -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5516441 Sent from the gambas-user forum at Nabble.com. From gambas at ...1... Fri Jul 28 00:38:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 00:38:08 +0200 Subject: [Gambas-user] Release of gambas 1.9.35 In-Reply-To: <200607252258.56295.gambas@...1...> References: <200607252258.56295.gambas@...1...> Message-ID: <200607280038.08336.gambas@...1...> On Tuesday 25 July 2006 22:58, Benoit Minisini wrote: > Hi all, > > I continue my work on the Development Environment in this release. But you > get two important bug fixes in the interpreter too! > > ... I get this mail back only now... Don't worry guys, it seems that SourceForge mailing-lists have their own way of life during the summer... -- Benoit Minisini From leonardo at ...1237... Fri Jul 28 00:34:23 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 28 Jul 2006 00:34:23 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <200607211834.03405.sirfabien@...626...> References: <44BF9D16.30005@...1237...> <200607201931.20558.sirfabien@...626...> <200607202115.01253.ronstk@...239...> <200607211834.03405.sirfabien@...626...> Message-ID: <44C93F6F.4020303@...1237...> Fabien Bodard ha scritto: > > no ! > public TYPE tutype > mystring as string[32] > mySTaticarray[12] as integer > end type > public TYPE montype > mystring as string[32] > mySTaticarray[12] as integer > mytutipe[3] as tutype > end type > > > > dim myudt as UDT.Montype > > mydut.mystring="hello" > myudt.mystringarray[0]="coucou" > myudt.mytutipe.mystring = "word" > > > or > > TYPE StringData > Name as string * 10 > FirstName as string *10 > END TYPE > dim myString data as stringdata > Read #file, MystringData, TypeLen(MyStingData) 'who is = to 20 > > in the file : > 'Bodard Fabien ' > > now i can draw a function in gambas like : > FileRead(File as stream, type as type, n) > (chhht!! it's fread in c in fact) > > but i like the idea to have the capability to load ad save binary data in one > time like in C. I was trying to convert this code in _real_ Gambas code but I didn't... Maybe was this a VB example? I cannot find the Type construct in Gambas... -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From gambas at ...1... Fri Jul 28 00:39:30 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 00:39:30 +0200 Subject: [Gambas-user] Workspace In-Reply-To: <5516441.post@...1379...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> Message-ID: <200607280039.30527.gambas@...1...> On Thursday 27 July 2006 09:20, R. Stormo wrote: > In version .35 I still can't use workspace. How far is it to this will work > again? > Like to take in use the new version but without this I can't. > What do you mean exactly by "I can't use it"? -- Benoit Minisini From gambas at ...1... Fri Jul 28 00:43:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 00:43:10 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C9375D.1080302@...981...> References: <44C8341A.70009@...981...> <44C8A330.1060608@...679...> <44C9375D.1080302@...981...> Message-ID: <200607280043.10350.gambas@...1...> On Thursday 27 July 2006 23:59, sbungay wrote: > Glad you like it Mike. Yes it works well. The "show list feature"is > indeed brilliant... and that is something I will probably grow fond of. > Overall I can live with it, but I don't have to like it, then again it > is nicer to live with something you like, so I made a few suggestions.. > I'm sure others can come up with better ideas than I. > I am working on a fairly big project now and I can tell you that > having to click on that little find-previous button with the mouse is > starting to get old really fast. > User Interface design is not so much a science as an art... and I > don't know art but I know what I like. > > Mike Keehan wrote: > > sbungay wrote: > >> I just did a ctrl+f and got this tool bar thing at the top of the > >>editor. This is a replacement for a search & replace dialogue? IMHO is > >>is not an improvement. Change it back... pleeeeeease! > > > > Well I disagree, sbungay. > > > > I think it works really well - takes up very little space, has simple > > Find and Replace buttons, and the Show List feature is brilliant. > > > > The only thing I miss is the highlighting of all matches in the code, > > but I can certainly live without that. > > > > It will take some time to try it out properly in a project, but my > > first impression is that it is a very good replacement. > > > > Mike > > Did Mike's mail sent on the mailing-list? I didn't get it... Anyway, I can't remove the new find & replace panel for just one people. I must wait for other people telling me what they think about it. I did that for the following reasons: 1) I dislike the dialog on front of the editor. 2) I wanted to copy Firefox :-) 3) There is a technical problem with tool windows in the Qt library, even if I found a workaround. And I don't know if can have tool windows in the GTK component (I think I can, but I'm not sure at the moment). You don't have to use the mouse for doing most of the find tasks. You can use the keyboard: - CTRL+F to open the find panel. - ESC to close it. - F3 to search forward. - SHIFT+F3 to search backward. Regards, -- Benoit Minisini From gambas at ...1... Fri Jul 28 00:51:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 00:51:57 +0200 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <44C93444.5070706@...981...> References: <44C83591.70607@...981...> <200607271429.42384.gambas@...1...> <44C93444.5070706@...981...> Message-ID: <200607280051.57781.gambas@...1...> On Thursday 27 July 2006 23:46, sbungay wrote: > Discovered that one already. > If it absolutely HAS to be done this way (not adviseable) then lets > at least try to improve on it. > The search list icon looks like it was pulled from an old copy of > Mandrake, No, it comes from the KDE Crystal icon theme. > the search next and search all icons make little sense (form > follows function.. right?)... KDE uses them, at least for "search next". > this is not a VCR or DVD player so lets > loose that paradigm. Anyway, I agree, but I didn't had the time to make new icons for that. It is difficult, as no icon exist for these actions in the Crystal theme, and it's very hard to make new icons when you don't have the corresponding SVG files. > I suggest instead that you keep the > magnifying-glass as a theme for searching (which you already have with > little paw prints around it) so there is some consistency in the interface. > > Magnyfying glass superimposed over > - a list (like a listbox) = Search List. > - over a File Icon = Search File. > - Over a Gant Chart = Search Project I will see... > > Now, make a few different sizes of these. At 1600 by 1200 the icons > are incredibly small on my laptop screen. At 1280 by 1024 they are > readable on my 17 inch LCD... but just barely. LOL! I thought you were angry about the new Find panel because you were working on a small resolution. > I like to work in the > highest resolution possible so I have as much screen realestate as I can > (yes it can be hard on the eyes (especially if using an old out of > focus CRT LOL :)). The problem of icon sizes is more complex than just making icons bigger. This problem has been solved by KDE and GTK, and so I must design a common Gambas interface for them. This problem is related to the "stock" icons we were talking on another thread on the developer mailing-list. I think the solution is having special relative paths that actually points at predefined icons, and that some of these relative paths return toolbar icons whose size is define by the user. > The blue Arrows for swapping information between boxes? what were > your thoughts behind that? I thought "replace". > I agree it might come in handy, but only if > you entered the data in the wrong place (which I have had happen perhaps > all of one-time when using a more conventional S&R dialogue in another > visually based BASIC that we all know and love. > Also suggest that if ctrl+f pops up the gui tool then it could also > remove it when it is visible. This is possible. But if you hit CTRL+F, this is because you want to search something, don't you? > Esc works too, but this is not something > that is modal, so you're not exactly escaping from anything, and in the > greater context of the IDE pressing Esc to arbitrarily remove the search > toolbar doesn't make much intuitive sense. I want ESC to be the magic key that cleans the screen :-) > > Steve :) > > Benoit Minisini wrote: > > On Thursday 27 July 2006 05:40, sbungay wrote: > >> Now that this gawdawful search & replace tool bar thing is at the top > >>of my editor window I can't seem to get rid of it. It's sucking up > >>valuable screen space and is cluttering up the IDE. > > > > Press the ESCAPE key. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Benoit Minisini From stefanopalmeri at ...152... Fri Jul 28 01:58:34 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 28 Jul 2006 01:58:34 +0200 Subject: [Gambas-user] new icons Message-ID: <200607280158.34567.stefanopalmeri@...152...> Hi, all. Hi, Benoit. Gambas2 comes with new icons from KDE Crystal icon theme. The Crystal theme icon is from Everaldo.com, isn't it? From gambas at ...1... Fri Jul 28 02:18:36 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 02:18:36 +0200 Subject: [Gambas-user] new icons In-Reply-To: <200607280158.34567.stefanopalmeri@...152...> References: <200607280158.34567.stefanopalmeri@...152...> Message-ID: <200607280218.36152.gambas@...1...> On Friday 28 July 2006 01:58, Stefano Palmeri wrote: > Hi, all. Hi, Benoit. > > Gambas2 comes with new icons from KDE Crystal icon theme. > > The Crystal theme icon is from Everaldo.com, isn't it? > > >From http://www.everaldo.com/legal.html : > > "No icon image or any other graphics found in this site may be use under > any circumstance, in any situation nor in any media without prior consent > of the author via email." > > I'm not a lawyer and I'm asking if we can use those crystal icons in our > project without the permission od Everaldo Coelho. > > Benoit, did you ask some permission to use the crystal icon set? > > Please, could you clear it? > > Regards, > > Stefano Palmeri > Oops. No, I didn't know that. The problem is that at the moment these icons are inside the project, so OK, that is bad. But this is temporary: after, they will be taken directly from the KDE directories (or GNOME directory, depending on which desktop environment is detected). So what will be the situation? When you make a KDE application with the KDE libraries, you will get automatically these icons. Do you have to ask each time? Regards, -- Benoit Minisini From stefanopalmeri at ...152... Fri Jul 28 02:25:40 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 28 Jul 2006 02:25:40 +0200 Subject: [Gambas-user] new icons In-Reply-To: <200607280218.36152.gambas@...1...> References: <200607280158.34567.stefanopalmeri@...152...> <200607280218.36152.gambas@...1...> Message-ID: <200607280225.40413.stefanopalmeri@...152...> Alle 02:18, venerd? 28 luglio 2006, Benoit Minisini ha scritto: > So what will be the situation? When you make a KDE application with the KDE > libraries, you will get automatically these icons. Do you have to ask each > time? > > Regards, > > -- > Benoit Minisini Uhm... this is the question... Good night. Stefano Palmeri From gambas at ...1... Fri Jul 28 02:33:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 02:33:15 +0200 Subject: [Gambas-user] new icons In-Reply-To: <200607280158.34567.stefanopalmeri@...152...> References: <200607280158.34567.stefanopalmeri@...152...> Message-ID: <200607280233.15894.gambas@...1...> On Friday 28 July 2006 01:58, Stefano Palmeri wrote: > Hi, all. Hi, Benoit. > > Gambas2 comes with new icons from KDE Crystal icon theme. > > The Crystal theme icon is from Everaldo.com, isn't it? > > >From http://www.everaldo.com/legal.html : > > "No icon image or any other graphics found in this site may be use under > any circumstance, in any situation nor in any media without prior consent > of the author via email." > > I'm not a lawyer and I'm asking if we can use those crystal icons in our > project without the permission od Everaldo Coelho. > > Benoit, did you ask some permission to use the crystal icon set? > > Please, could you clear it? > > Regards, > > Stefano Palmeri > Actually this is not so clear. I downloaded the crystal icons from the site, and they are outdated. I used the icons provided with KDE 3.4, and they are differents. Note that I have drawn some icons myself too. I will wait until I make the stock icon system in Gambas. Then I will see... Regards, -- Benoit Minisini From stefanopalmeri at ...152... Fri Jul 28 02:40:01 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 28 Jul 2006 02:40:01 +0200 Subject: [Gambas-user] new icons In-Reply-To: <200607280233.15894.gambas@...1...> References: <200607280158.34567.stefanopalmeri@...152...> <200607280233.15894.gambas@...1...> Message-ID: <200607280240.01196.stefanopalmeri@...152...> Alle 02:33, venerd? 28 luglio 2006, Benoit Minisini ha scritto: > I downloaded the crystal icons from the site, and they are outdated. I used > the icons provided with KDE 3.4, and they are differents. Note that I have > drawn some icons myself too. To be more clear: my message about new icons *was not* in any way against you or Gambas :-) we all love Gambas!!! It was just to know something about the icons permissions, because I knew the legal notice on Everaldo site and I was a bit surprised of not finding any special license or note in Gambas2 source. Regards, Stefano Palmeri From sourceforge-raindog2 at ...94... Fri Jul 28 03:04:56 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 27 Jul 2006 21:04:56 -0400 Subject: [Gambas-user] new icons In-Reply-To: <200607280240.01196.stefanopalmeri@...152...> References: <200607280158.34567.stefanopalmeri@...152...> <200607280233.15894.gambas@...1...> <200607280240.01196.stefanopalmeri@...152...> Message-ID: <200607272104.56580.sourceforge-raindog2@...94...> On Thu July 27 2006 20:40, Stefano Palmeri wrote: > It was just to know something about the icons permissions, > because I knew the legal notice on Everaldo site and I was > a bit surprised of not finding any special license or note > in Gambas2 source. Oh look, it's a FAQ! http://kde-artists.org/node/109 Maybe Everaldo's distribution of the icons is restrictively licensed, but the KDE distribution of them is LGPL. Since Gambas is distributed under the GPL, and he got the icons from KDE, Benoit has nothing to worry about. Rob From stefanopalmeri at ...152... Fri Jul 28 03:21:40 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Fri, 28 Jul 2006 03:21:40 +0200 Subject: [Gambas-user] new icons In-Reply-To: <200607272104.56580.sourceforge-raindog2@...94...> References: <200607280158.34567.stefanopalmeri@...152...> <200607280240.01196.stefanopalmeri@...152...> <200607272104.56580.sourceforge-raindog2@...94...> Message-ID: <200607280321.41208.stefanopalmeri@...152...> Alle 03:04, venerd? 28 luglio 2006, Rob Kudla ha scritto: > Oh look, it's a FAQ! > > http://kde-artists.org/node/109 > Ok! Thanks. Now it's clear. I continue to think that the legal notice on Everaldo.com could lead to a misunderstanding... Saluti, Stefano From sbungay at ...981... Fri Jul 28 03:36:02 2006 From: sbungay at ...981... (sbungay) Date: Thu, 27 Jul 2006 21:36:02 -0400 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <200607280051.57781.gambas@...1...> References: <44C83591.70607@...981...> <200607271429.42384.gambas@...1...> <44C93444.5070706@...981...> <200607280051.57781.gambas@...1...> Message-ID: <44C96A02.1090509@...981...> . . . Older messages stuff removed to save space.. >Benoit Minisini wrote: > > I want ESC to be the magic key that cleans the screen :-) > > LOL! I like magic buttons... can I have one that makes everything easier... gambas itself is a really good start! Steve :) >>Steve :) >> >>Benoit Minisini wrote: >> >>>On Thursday 27 July 2006 05:40, sbungay wrote: >>> >>>> Now that this gawdawful search & replace tool bar thing is at the top >>>>of my editor window I can't seem to get rid of it. It's sucking up >>>>valuable screen space and is cluttering up the IDE. >>> >>>Press the ESCAPE key. >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share >>your opinions on IT & business topics through brief surveys -- and earn >>cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sourceforge-raindog2 at ...94... Fri Jul 28 03:35:47 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 27 Jul 2006 21:35:47 -0400 Subject: [Gambas-user] new icons In-Reply-To: <200607280321.41208.stefanopalmeri@...152...> References: <200607280158.34567.stefanopalmeri@...152...> <200607272104.56580.sourceforge-raindog2@...94...> <200607280321.41208.stefanopalmeri@...152...> Message-ID: <200607272135.47856.sourceforge-raindog2@...94...> On Thu July 27 2006 21:21, Stefano Palmeri wrote: > I continue to think that the legal notice > on Everaldo.com could lead to a misunderstanding... It already has.... but at least it shouldn't lead to any legal threats. Rob From sbungay at ...981... Fri Jul 28 03:42:55 2006 From: sbungay at ...981... (sbungay) Date: Thu, 27 Jul 2006 21:42:55 -0400 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <200607280051.57781.gambas@...1...> References: <44C83591.70607@...981...> <200607271429.42384.gambas@...1...> <44C93444.5070706@...981...> <200607280051.57781.gambas@...1...> Message-ID: <44C96B9F.7010607@...981...> Benoit Minisini wrote: > > LOL! I thought you were angry about the new Find panel because you were > working on a small resolution. > > Not angry... just perplexed at a change that on the surface does not seem to present anything new & useful but rather just makes things more complex, harder to read & harder to use. In time we can get used to anything.. look at Windoze! From gambas at ...1... Wed Jul 26 10:10:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 26 Jul 2006 10:10:23 +0200 Subject: [Gambas-user] Release of gambas 1.9.35 Message-ID: <200607261010.23730.gambas@...1...> Hi all, I continue my work on the Development Environment in this release. But you get two important bug fixes in the interpreter too! * The Development Environment Find dialog was redesigned. * The automatic completion is less aggressive. * A form can be reloaded. * The GTK component got a GridView control. * Reading and writing a string into a stream without specifying the length now work correctly. * Temporary files are now correctly removed when the interpreter terminates. This last fix is important, otherwise your /tmp directory will be full of void temporary directories in /tmp/gambas.$USER_ID/$PROCESS_ID/. I had thousands of them, almost one for each possible process ID! Here is the full changelog: --8<--------------------------------------------------------------------------- CONFIGURATION & INSTALLATION * The README.HOWTO-PACKAGE-GAMBAS file has been updated. Please read it carefully if you make binary packages of the development version! * This version should compile without errors with the very last version of gcc. DEVELOPMENT ENVIRONMENT * BUG: Clicking on a menu inside the form editor now opens the editor inside the event handler as before. * BUG: Changing the stacking order of controls keeps the selection handles on top. * NEW: The new logo is used in more places. * BUG: You can select the default color in the color dialog again without crashing the IDE. * NEW: The automatic completion ignores string contents and comments now. * BUG: The automatic completion is less aggressive. * NEW: The find dialog were replaced by a find panel with toolbars. * NEW: The result of a global project search is now displayed directly in the project tree. * NEW: When debugging, selecting an expression in the editor displays its value in the message bar. * NEW: You can reload a form now. * BUG: The mascot came back. * NEW: A new highlight theme, named 'Amethyst'. INTERPRETER * NEW: GB.Loop() is a new interpreter API that allows a component to call the default event loop to implement its own one. * NEW: Object.Count is a static method that returns how many times an object is referenced. * BUG: Comparing objects now work in all cases. * NEW: A component now can export a GB_SIGNAL() function that will be called by the interpreter in specific situations. At the moment, the following signals are implemented: GB_SIGNAL_DEBUG_BREAK (the program is stopped in the debugger), GB_SIGNAL_DEBUG_CONTINUE (the program is running), and GB_SIGNAL_DEBUG_FORWARD (the program will run step by step). * NEW: String.InStr() and String.RInStr() are two new string search functions that deals with UTF-8. * BUG: Randomize() works now when the seed is specified * BUG: Reading and writing a string into a stream without specifying the length now work correctly. * BUG: Temporary files are now correctly removed when the interpreter terminates. GB.QT COMPONENT * NEW: Arrangement by row and column now take the Expand property into account. * BUG: ToolButton now raises its Click event according to its toggle status. * BUG: Select events of ListBox, ListView, TreeView and ColumnView are now posted, so that its behaviour is more logical. * NEW: Action class is now called only when a control is effectively associated with an action. * BUG: A close embedded window automatically activates its parent window. * NEW: Forms now accept keyboard focus when clicked. This is experimental and may be removed in the future. * NEW: Show and Hide events are not sent anymore if they come from the window manager. This is experimental too! * BUG: Some fixes in the Action class. GB.FORM COMPONENT * NEW: Some cosmetic changes in the SidePanel control. GB.FORM.MDI COMPONENT * NEW: A ToolBar child having the Expand property set now makes the toolbar as large as possible. * NEW: ToolBar can have an action now. GB.SETTINGS COMPONENT * BUG: The default settings file directory is now automatically created. GB.GTK COMPONENT * NEW: Arrangement by row and column now take the Expand property into account. * NEW: The GridView control was implemented. --8<--------------------------------------------------------------------------- Regards, -- Benoit Minisini From rohnny at ...1248... Fri Jul 28 07:55:33 2006 From: rohnny at ...1248... (R. Stormo) Date: Thu, 27 Jul 2006 22:55:33 -0700 (PDT) Subject: [Gambas-user] Workspace In-Reply-To: <200607280039.30527.gambas@...1...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> <200607280039.30527.gambas@...1...> Message-ID: <5534122.post@...1379...> I get "unknown identifier Workspace". This was gone in version .32. This example was working in .31. http://forum.stormweb.no/index.php/topic,24.0.html I have a prosject that I use every day and can't switch to new version because of this -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5534122 Sent from the gambas-user forum at Nabble.com. From rporticio at ...43... Thu Jul 27 09:22:22 2006 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 27 Jul 2006 00:22:22 -0700 (PDT) Subject: [Gambas-user] got postgres devel packages Message-ID: <20060727072222.1874.qmail@...1037...> dear friends, got the postgresql-devel-7.3.4-3.rhl9.i386.rpm package for redhat 9 http://linux.maruhn.com/sec/postgresql-devel.html and got it running using the database example in gambas 1.0.16 thanks for the advice. another problem i have is in using the datareport example. when i try to run it a dioalog box appears stating "The program has stopped unexpectedly by raising signal #11" i send a bug report to gambas at ...1529...,sourceforge.net. i believe our friends will have a solution on this once they have time to attend to it. thanks again. ps. during our software freedom day here in legazpi city, philippines last July 24 i introduced gambas for two hours as an open source soffware alternative to microsoft visual basic using the website of gambas as my visual aid. many students mostly visual basic programmers were amazed of its capability upon seeing the different examples and the source codes. i hope many will patronize gambas from our place. ramon --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Fri Jul 28 11:15:14 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 11:15:14 +0200 Subject: [Gambas-user] Workspace In-Reply-To: <5534122.post@...1379...> References: <5303815.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> Message-ID: <200607281115.15078.gambas@...1...> On Friday 28 July 2006 07:55, R. Stormo wrote: > I get "unknown identifier Workspace". This was gone in version .32. > This example was working in .31. > http://forum.stormweb.no/index.php/topic,24.0.html > > I have a prosject that I use every day and can't switch to new version > because of this > > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no The Workspace is now in gb.form.mdi. Did you check this component? -- Benoit Minisini From gambas at ...1... Fri Jul 28 11:19:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 11:19:39 +0200 Subject: [Gambas-user] got postgres devel packages In-Reply-To: <20060727072222.1874.qmail@...1037...> References: <20060727072222.1874.qmail@...1037...> Message-ID: <200607281119.39667.gambas@...1...> On Thursday 27 July 2006 09:22, Ramon Orticio wrote: > dear friends, > > got the postgresql-devel-7.3.4-3.rhl9.i386.rpm package for redhat 9 > http://linux.maruhn.com/sec/postgresql-devel.html and got it running using > the database example in gambas 1.0.16 > > thanks for the advice. > > another problem i have is in using the datareport example. when i try to > run it a dioalog box appears stating "The program has stopped unexpectedly > by raising signal #11" i send a bug report to gambas at ...1529...,sourceforge.net. > i believe our friends will have a solution on this once they have time > to attend to it. I didn't succeed in reproduce that. So do that: 1) Go to the directory of the sources of this example. $ cd /path/to/database/example 2) Run the interpreter into the debugger. $ gdb gbx ... (gdb) run -p ... *crash* 3) Get the backtrace. (gdb) bt ... 4) Send me this backtrace. > > thanks again. > > ps. > > during our software freedom day here in legazpi city, philippines last July > 24 i introduced gambas for two hours as an open source soffware > alternative to microsoft visual basic using the website of gambas as my > visual aid. many students mostly visual basic programmers were amazed of > its capability upon seeing the different examples and the source codes. i > hope many will patronize gambas from our place. > Wow. Cool! Regards, -- Benoit Minisini From rolf.frogs at ...221... Fri Jul 28 12:10:31 2006 From: rolf.frogs at ...221... (rolf) Date: Fri, 28 Jul 2006 12:10:31 +0200 Subject: [Gambas-user] Release of gambas 1.9.35 In-Reply-To: <200607252258.56295.gambas@...1...> References: <200607252258.56295.gambas@...1...> Message-ID: <200607281210.31402.rolf.frogs@...221...> Hi Benoit Minisini, just download 1.9.35, compiled and test with my project and found the following problem. In my function Form_Open I set the text of the greeting window as usual. The result can be seen in the attached picture. It seems, that the problem comes from the resize events - if I do not resize the text label with the (seen overlayed) text, every thing is fine - as in 1.9.31 the program was under development. So it seems, the resizing of the form is not complete when the form is open or is done twice. HTH to find the problem (perhaps the order of the events have change) or get a workaround. Fine regards Rolf Schmidt -------------- next part -------------- A non-text attachment was scrubbed... Name: hv-screen.jpg Type: image/jpeg Size: 66603 bytes Desc: not available URL: From gambas at ...1... Fri Jul 28 12:23:48 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 12:23:48 +0200 Subject: [Gambas-user] Release of gambas 1.9.35 In-Reply-To: <200607281210.31402.rolf.frogs@...221...> References: <200607252258.56295.gambas@...1...> <200607281210.31402.rolf.frogs@...221...> Message-ID: <200607281223.48571.gambas@...1...> On Friday 28 July 2006 12:10, rolf wrote: > Hi Benoit Minisini, > > just download 1.9.35, compiled and test with my project and found the > following problem. > > In my function Form_Open I set the text of the greeting window as usual. > The result can be seen in the attached picture. > > It seems, that the problem comes from the resize events - if I do not > resize the text label with the (seen overlayed) text, every thing is fine - > as in 1.9.31 the program was under development. So it seems, the resizing > of the form is not complete when the form is open or is done twice. > > HTH to find the problem (perhaps the order of the events have change) or > get a workaround. > > Fine regards > Rolf Schmidt I see, but I don't understand the problem. Can you send me some code? -- Benoit Minisini From rolf.frogs at ...221... Fri Jul 28 14:29:27 2006 From: rolf.frogs at ...221... (rolf) Date: Fri, 28 Jul 2006 14:29:27 +0200 Subject: [Gambas-user] Problem with Label, centered form and text in 1.9.35 Message-ID: <200607281429.27512.rolf.frogs@...221...> Hi Gambasinos, I compiled Gambas 1.9.35 under Debian Testing - all requiered libs are installed with aptitude - and have the following problem. A form is started maximized with border for resize. The form has a text label with a centered text and the resize method resizes the label too. At first start I get the text written twice evtl. partly overlayed. I send this as a bug report to Benoit, but he can't verify this behavior with the attached example. Can someone else test the program to help finding the reason. Thank you BTW. The problem does not exists in version 1.9.31 -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tgz Type: application/x-tgz Size: 1029 bytes Desc: not available URL: From mike_keehan at ...679... Fri Jul 28 14:59:56 2006 From: mike_keehan at ...679... (Mike Keehan) Date: Fri, 28 Jul 2006 13:59:56 +0100 Subject: [Gambas-user] Problem with Label, centered form and text in 1.9.35 In-Reply-To: <200607281429.27512.rolf.frogs@...221...> References: <200607281429.27512.rolf.frogs@...221...> Message-ID: <44CA0A4C.3030901@...679...> rolf wrote: > Hi Gambasinos, > > I compiled Gambas 1.9.35 under Debian Testing - all requiered libs are > installed with aptitude - and have the following problem. > > A form is started maximized with border for resize. The form has a text label > with a centered text and the resize method resizes the label too. At first > start I get the text written twice evtl. partly overlayed. > > I send this as a bug report to Benoit, but he can't verify this behavior with > the attached example. > > Can someone else test the program to help finding the reason. > Thank you > > BTW. The problem does not exists in version 1.9.31 > > I get the same effect. When I first start your program in Gambas, the word 'Test' appears twice, one version about 33% from left side, the second I think is in the middle. If I just switch to another virtual desktop and switch back again, there is only one copy of 'Test' in the middle (where it should be). I'm running libqt 3.3.6 on Xorg 7.1.1, and Gambas 1.9.35. Mike From rporticio at ...43... Thu Jul 27 10:26:23 2006 From: rporticio at ...43... (Ramon Orticio) Date: Thu, 27 Jul 2006 01:26:23 -0700 (PDT) Subject: [Gambas-user] error in compiling gambas2-1.9.33 Message-ID: <20060727082623.24631.qmail@...1304...> dear friends, i tried to compile gambas2-1.9.33 using redhat9 distro to have a peek of this development version. i followed the redhat.readme instructions i.e. ./configure --with-qt-includes=/home/raport/qt/include --with-qt-libraries=/home/raport/qt/lib --with-moc=/home/raport/qt/bin --prefix=/usr/local/gambas after make i have this error gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/pcre/ -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c regexp.c -fPIC -DPIC -o .libs/regexp.o regexp.c:356: `PCRE_NO_AUTO_CAPTURE' undeclared here (not in a function) regexp.c:356: initializer element is not constant regexp.c:356: (near initialization for `CRegexpDesc[17].val2') regexp.c:356: initializer element is not constant regexp.c:356: (near initialization for `CRegexpDesc[17]') regexp.c:357: `PCRE_NO_UTF8_CHECK' undeclared here (not in a function) regexp.c:357: initializer element is not constant regexp.c:357: (near initialization for `CRegexpDesc[18].val2') regexp.c:357: initializer element is not constant regexp.c:357: (near initialization for `CRegexpDesc[18]') regexp.c:358: initializer element is not constant regexp.c:358: (near initialization for `CRegexpDesc[19]') regexp.c:359: initializer element is not constant regexp.c:359: (near initialization for `CRegexpDesc[20]') regexp.c:360: initializer element is not constant regexp.c:360: (near initialization for `CRegexpDesc[21]') regexp.c:361: initializer element is not constant regexp.c:361: (near initialization for `CRegexpDesc[22]') regexp.c:362: initializer element is not constant regexp.c:362: (near initialization for `CRegexpDesc[23]') regexp.c:363: initializer element is not constant regexp.c:363: (near initialization for `CRegexpDesc[24]') regexp.c:364: initializer element is not constant regexp.c:364: (near initialization for `CRegexpDesc[25]') regexp.c:365: `PCRE_ERROR_MATCHLIMIT' undeclared here (not in a function) regexp.c:365: initializer element is not constant regexp.c:365: (near initialization for `CRegexpDesc[26].val2') regexp.c:365: initializer element is not constant regexp.c:365: (near initialization for `CRegexpDesc[26]') regexp.c:366: `PCRE_ERROR_CALLOUT' undeclared here (not in a function) regexp.c:366: initializer element is not constant regexp.c:366: (near initialization for `CRegexpDesc[27].val2') regexp.c:366: initializer element is not constant regexp.c:366: (near initialization for `CRegexpDesc[27]') regexp.c:367: `PCRE_ERROR_BADUTF8' undeclared here (not in a function) regexp.c:367: initializer element is not constant regexp.c:367: (near initialization for `CRegexpDesc[28].val2') regexp.c:367: initializer element is not constant regexp.c:367: (near initialization for `CRegexpDesc[28]') regexp.c:369: initializer element is not constant regexp.c:369: (near initialization for `CRegexpDesc[29]') regexp.c:374: initializer element is not constant regexp.c:374: (near initialization for `CRegexpDesc[30]') regexp.c:375: initializer element is not constant regexp.c:375: (near initialization for `CRegexpDesc[31]') regexp.c:376: initializer element is not constant regexp.c:376: (near initialization for `CRegexpDesc[32]') regexp.c:378: initializer element is not constant regexp.c:378: (near initialization for `CRegexpDesc[33]') make[4]: *** [regexp.lo] Error 1 make[4]: Leaving directory `/home/raport/gambas/gb.pcre/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/raport/gambas/gb.pcre' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/raport/gambas/gb.pcre' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/raport/gambas' make: *** [all] Error 2 thanks for any help ramon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From rohnny at ...1248... Fri Jul 28 16:38:33 2006 From: rohnny at ...1248... (R. Stormo) Date: Fri, 28 Jul 2006 07:38:33 -0700 (PDT) Subject: [Gambas-user] Workspace In-Reply-To: <200607281115.15078.gambas@...1...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> <200607281115.15078.gambas@...1...> Message-ID: <5540864.post@...1379...> Hi Benoit. Thanks alot, now the example is compiling but every child screen is maximized so I do not see the other screens. What parameter to use without stretch/maximize child forms to mdi form.? -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5540864 Sent from the gambas-user forum at Nabble.com. From sirfabien at ...626... Fri Jul 28 17:33:42 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Fri, 28 Jul 2006 17:33:42 +0200 Subject: [Gambas-user] Unsigned int In-Reply-To: <44C93F6F.4020303@...1237...> References: <44BF9D16.30005@...1237...> <200607211834.03405.sirfabien@...626...> <44C93F6F.4020303@...1237...> Message-ID: <200607281733.43108.sirfabien@...626...> Le Vendredi 28 Juillet 2006 00:34, Leonardo Miliani a ?crit?: > Fabien Bodard ha scritto: > > no ! > > public TYPE tutype > > mystring as string[32] > > mySTaticarray[12] as integer > > end type > > public TYPE montype > > mystring as string[32] > > mySTaticarray[12] as integer > > mytutipe[3] as tutype > > end type > > > > > > > > dim myudt as UDT.Montype > > > > mydut.mystring="hello" > > myudt.mystringarray[0]="coucou" > > myudt.mytutipe.mystring = "word" > > > > > > or > > > > TYPE StringData > > Name as string * 10 > > FirstName as string *10 > > END TYPE > > dim myString data as stringdata > > Read #file, MystringData, TypeLen(MyStingData) 'who is = to 20 > > > > in the file : > > 'Bodard Fabien ' > > > > now i can draw a function in gambas like : > > FileRead(File as stream, type as type, n) > > (chhht!! it's fread in c in fact) > > > > but i like the idea to have the capability to load ad save binary data in > > one time like in C. > > I was trying to convert this code in _real_ Gambas code but I didn't... > Maybe was this a VB example? I cannot find the Type construct in Gambas... Sorry it was concept exploration....Not real features... not at this time... just a dream... maybe benoit will anwser to my query sniff :'( From gambas at ...1... Fri Jul 28 18:18:14 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 18:18:14 +0200 Subject: [Gambas-user] Problem with Label, centered form and text in 1.9.35 In-Reply-To: <44CA0A4C.3030901@...679...> References: <200607281429.27512.rolf.frogs@...221...> <44CA0A4C.3030901@...679...> Message-ID: <200607281818.14249.gambas@...1...> On Friday 28 July 2006 14:59, Mike Keehan wrote: > rolf wrote: > > Hi Gambasinos, > > > > I compiled Gambas 1.9.35 under Debian Testing - all requiered libs are > > installed with aptitude - and have the following problem. > > > > A form is started maximized with border for resize. The form has a text > > label with a centered text and the resize method resizes the label too. > > At first start I get the text written twice evtl. partly overlayed. > > > > I send this as a bug report to Benoit, but he can't verify this behavior > > with the attached example. > > > > Can someone else test the program to help finding the reason. > > Thank you > > > > BTW. The problem does not exists in version 1.9.31 > > I get the same effect. > > When I first start your program in Gambas, the word 'Test' appears > twice, one version about 33% from left side, the second I think is in > the middle. > > If I just switch to another virtual desktop and switch back again, > there is only one copy of 'Test' in the middle (where it should be). > > I'm running libqt 3.3.6 on Xorg 7.1.1, and Gambas 1.9.35. > > Mike > I don't have the problem. Why??? :-( -- Benoit Minisini From gambas at ...1... Fri Jul 28 18:02:38 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 18:02:38 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: References: Message-ID: <200607281802.38792.gambas@...1...> On Wednesday 26 July 2006 07:48, Timothy Marshal-Nichols wrote: > > 1. You may have a constructor and destructor in the object and want to > control when they are executed. Or even if the are executed - say if the > object was just used on one form that is a dialog. This is even more true > if your object calls on resources outside of Gambas. In Gambas, a class has an initializer function named "_init", and its contrary named "_exit". If you really need "singletons", i.e. class that you instanciate only once, the keyword "CREATE" tells Gambas that the class can create an hidden instance when the class name is used like an object reference. > > 2. Good programming languages 'encourage good programming practice' rather > than force the ideas the language developer on the language user. There > should be no penalty for using the language in a way not intended by the > language developer. There is no penalty in making a useless dynamic class just for using dynamic methods instead of static ones, except the memory taken by the single instance needed to call the methods. > This is why C and C++ have always been more popular > then Pascal. Both the C and Pascal languages were developed by people who > were influenced by the ideas of structured programming that were around at > the time. Both wanted to get away from the GOTO style of programming of > languages like COBOL. C took the first approach. C rewarded you for good > programming practice - Pascal forced you. This is one reason why you use > C/C++ to develop Gambas and not Pascal! > I use C/C++ because they are the language to use when developing interpreters and using libraries on Linux. And the big problem with Pascal is that you have to type many boring keywords and ';' to do simple things :-) Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Jul 25 21:42:39 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 25 Jul 2006 15:42:39 -0400 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251112.06177.gambas@...1...> References: <44C448F3.2070101@...981...> <200607251022.28263.rolf.frogs@...221...> <200607251112.06177.gambas@...1...> Message-ID: <200607251542.39354.sourceforge-raindog2@...94...> On Tue July 25 2006 05:12, Benoit Minisini wrote: > Maybe Rob should you exume gb.posix? It is really a POSIX > thing there! > I didn't remember what you put in that component, but maybe I > didn't take it because there were too few things in it for > making a component. I'll try to dust it off this weekend. I had a whole list of functions I planned to implement (mostly taken from the Perl POSIX module's man page) but only had the time ones implemented at the time, so I'm sure that's why you didn't take it. Rob From gambas at ...1... Fri Jul 28 18:59:48 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 18:59:48 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607251542.39354.sourceforge-raindog2@...94...> References: <44C448F3.2070101@...981...> <200607251112.06177.gambas@...1...> <200607251542.39354.sourceforge-raindog2@...94...> Message-ID: <200607281859.48992.gambas@...1...> On Tuesday 25 July 2006 21:42, Rob Kudla wrote: > On Tue July 25 2006 05:12, Benoit Minisini wrote: > > Maybe Rob should you exume gb.posix? It is really a POSIX > > thing there! > > I didn't remember what you put in that component, but maybe I > > didn't take it because there were too few things in it for > > making a component. > > I'll try to dust it off this weekend. I had a whole list of > functions I planned to implement (mostly taken from the Perl > POSIX module's man page) but only had the time ones implemented > at the time, so I'm sure that's why you didn't take it. > > Rob > Tell me before. Maybe some functions are useless in Gambas. Regards, -- Benoit Minisini From ronstk at ...239... Fri Jul 28 19:19:08 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 19:19:08 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <200607280043.10350.gambas@...1...> References: <44C8341A.70009@...981...> <44C9375D.1080302@...981...> <200607280043.10350.gambas@...1...> Message-ID: <200607281919.08893.ronstk@...239...> On Friday 28 July 2006 00:43, Benoit Minisini wrote: > On Thursday 27 July 2006 23:59, sbungay wrote: > > Glad you like it Mike. Yes it works well. The "show list feature"is > > indeed brilliant... and that is something I will probably grow fond of. > > Overall I can live with it, but I don't have to like it, then again it > > is nicer to live with something you like, so I made a few suggestions.. > > I'm sure others can come up with better ideas than I. > > I am working on a fairly big project now and I can tell you that > > having to click on that little find-previous button with the mouse is > > starting to get old really fast. > > User Interface design is not so much a science as an art... and I > > don't know art but I know what I like. > > > > Mike Keehan wrote: > > > sbungay wrote: > > >> I just did a ctrl+f and got this tool bar thing at the top of the > > >>editor. This is a replacement for a search & replace dialogue? IMHO is > > >>is not an improvement. Change it back... pleeeeeease! > > > > > > Well I disagree, sbungay. > > > > > > I think it works really well - takes up very little space, has simple > > > Find and Replace buttons, and the Show List feature is brilliant. > > > > > > The only thing I miss is the highlighting of all matches in the code, > > > but I can certainly live without that. > > > > > > It will take some time to try it out properly in a project, but my > > > first impression is that it is a very good replacement. > > > > > > Mike > > > > > Did Mike's mail sent on the mailing-list? I didn't get it... > > Anyway, I can't remove the new find & replace panel for just one people. I > must wait for other people telling me what they think about it. Ring, Ring... I'm one of the other people. Just finished a reply to Mike with my why. > > I did that for the following reasons: > > 1) I dislike the dialog on front of the editor. Me too, But why was the form always on top? That has puzzled me a long time and still does. > > 2) I wanted to copy Firefox :-) gambas != VB, :) Why then copy FireFox? It is even less related to programming as VB. > > 3) There is a technical problem with tool windows in the Qt library, even if I > found a workaround. And I don't know if can have tool windows in the GTK > component (I think I can, but I'm not sure at the moment). I do not understand. The S&R was/is a Form and is supported by qt/gtk. Why then a 'tool window'? > > You don't have to use the mouse for doing most of the find tasks. You can use > the keyboard: > > - CTRL+F to open the find panel. > - ESC to close it. > - F3 to search forward. > - SHIFT+F3 to search backward. > > Regards, > Ron (without searchlist :( ) From ronstk at ...239... Fri Jul 28 19:33:58 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 19:33:58 +0200 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <200607280051.57781.gambas@...1...> References: <44C83591.70607@...981...> <44C93444.5070706@...981...> <200607280051.57781.gambas@...1...> Message-ID: <200607281933.58257.ronstk@...239...> On Friday 28 July 2006 00:51, Benoit Minisini wrote: > > that is modal, so you're not exactly escaping from anything, and in the > > greater context of the IDE pressing Esc to arbitrarily remove the search > > ? toolbar doesn't make much intuitive sense. > > I want ESC to be the magic key that cleans the screen :-) Is this not a dangerous way? The Esc is (mis)used so many times, not only in or special gambas. Beside it has a bug. It does not 'cleans the screen' :) > > > > > Steve :) > The toolbar button is a toggle button I found Using the CTRL-F to toggle is more easy/logical to me and the toggle button in the toolbar is working this way. Less code to find out if the ESC key is used with Form-Editor/Code-Editor/Console/Search&Replace or as cancel in etc... Fighter for 'Freedom to the ESC key'. Big :) Ron From gambas at ...1... Thu Jul 27 11:29:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 27 Jul 2006 11:29:09 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C8341A.70009@...981...> References: <44C8341A.70009@...981...> Message-ID: <200607271129.10087.gambas@...1...> On Thursday 27 July 2006 05:33, sbungay wrote: > I just did a ctrl+f and got this tool bar thing at the top of the > editor. This is a replacement for a search & replace dialogue? IMHO is > is not an improvement. Change it back... pleeeeeease! Do you have some arguments ? -- Benoit Minisini From ronstk at ...239... Fri Jul 28 19:58:25 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 19:58:25 +0200 Subject: [Gambas-user] How do I turn it off!!! In-Reply-To: <44C96B9F.7010607@...981...> References: <44C83591.70607@...981...> <200607280051.57781.gambas@...1...> <44C96B9F.7010607@...981...> Message-ID: <200607281958.25795.ronstk@...239...> On Friday 28 July 2006 03:42, sbungay wrote: > > Benoit Minisini wrote: > > > > LOL! I thought you were angry about the new Find panel because you were > > working on a small resolution. > > > > > Not angry... just perplexed at a change that on the surface does not > seem to present anything new & useful but rather just makes things more > complex, harder to read & harder to use. In time we can get used to > anything.. look at Windoze! > Interesting statement. Partial you are right but do not forget there is really improvement. I started using gambas 0.46 almost 4 years back. Visual changes are made the time passed and did improve gambas. Same with VB1,2,3 and so on till VB6 I have used as last version. Adding the 'anything new & useful' you mentioned require many times that visual changes happen too, and not everyone did like them. The recent changes of the icons is not new. It happens at least 3 times before. It is because the handling of icons inside gambas has improved and it should test the improvement is working the way Benoit wishes. Changes are the icon file formats/sizes/color-dept/scale etc.. Or do you like to be bound to 16x16 pixel in 16 color and only ico format? For the end user it looks only the eye candy is changed.. look at Windoze. Even for Windows that has happen in time, internal improvements (yes they exists) are reflected in the eye candy. Icon sets changes in Qt/KDE and Gtk/Gnome has been there also. What would be useless is copy the 'WindowsXP Teletubby' background to a dish with gambas as background to the workspace. (Hmm, smells good) To finish > Not angry... just perplexed at a change that on the surface does not > seem to present anything new & useful but rather just makes things more > complex, harder to read & harder to use. In time we can get used to There is 'anything new & useful', the handling of icons. We will be able in nearby future to use easy our own icon sets or/and use the icons we already have using KDE or Gnome themes standard in our program without to do much work for it. All the same theme/style we like. Ron From gambas at ...1... Fri Jul 28 20:09:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 20:09:37 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <200607281919.08893.ronstk@...239...> References: <44C8341A.70009@...981...> <200607280043.10350.gambas@...1...> <200607281919.08893.ronstk@...239...> Message-ID: <200607282009.37125.gambas@...1...> On Friday 28 July 2006 19:19, Ron Onstenk wrote: > On Friday 28 July 2006 00:43, Benoit Minisini wrote: > > On Thursday 27 July 2006 23:59, sbungay wrote: > > > Glad you like it Mike. Yes it works well. The "show list feature"is > > > indeed brilliant... and that is something I will probably grow fond of. > > > Overall I can live with it, but I don't have to like it, then again it > > > is nicer to live with something you like, so I made a few suggestions.. > > > I'm sure others can come up with better ideas than I. > > > I am working on a fairly big project now and I can tell you that > > > having to click on that little find-previous button with the mouse is > > > starting to get old really fast. > > > User Interface design is not so much a science as an art... and I > > > don't know art but I know what I like. > > > > > > Mike Keehan wrote: > > > > sbungay wrote: > > > >> I just did a ctrl+f and got this tool bar thing at the top of the > > > >>editor. This is a replacement for a search & replace dialogue? IMHO > > > >> is is not an improvement. Change it back... pleeeeeease! > > > > > > > > Well I disagree, sbungay. > > > > > > > > I think it works really well - takes up very little space, has simple > > > > Find and Replace buttons, and the Show List feature is brilliant. > > > > > > > > The only thing I miss is the highlighting of all matches in the code, > > > > but I can certainly live without that. > > > > > > > > It will take some time to try it out properly in a project, but my > > > > first impression is that it is a very good replacement. > > > > > > > > Mike > > > > Did Mike's mail sent on the mailing-list? I didn't get it... > > > > Anyway, I can't remove the new find & replace panel for just one people. > > I must wait for other people telling me what they think about it. > > Ring, Ring... > I'm one of the other people. > Just finished a reply to Mike with my why. > > > I did that for the following reasons: > > > > 1) I dislike the dialog on front of the editor. > > Me too, But why was the form always on top? > That has puzzled me a long time and still does. > > > 2) I wanted to copy Firefox :-) > > gambas != VB, :) > Why then copy FireFox? It is even less related to programming as VB. It is a joke! > > > 3) There is a technical problem with tool windows in the Qt library, even > > if I found a workaround. And I don't know if can have tool windows in the > > GTK component (I think I can, but I'm not sure at the moment). > > I do not understand. The S&R was/is a Form and is supported by qt/gtk. > Why then a 'tool window'? > I wanted the search not to be in a form nor a tool window. > > You don't have to use the mouse for doing most of the find tasks. You can > > use the keyboard: > > > > - CTRL+F to open the find panel. > > - ESC to close it. > > - F3 to search forward. > > - SHIFT+F3 to search backward. > > > > Regards, > > Ron (without searchlist :( ) Actually the search list is there. The result is just displayed inside the project tree. Regards, -- Benoit Minisini From gambas at ...1... Fri Jul 28 20:17:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Jul 2006 20:17:43 +0200 Subject: [Gambas-user] Workspace In-Reply-To: <5540864.post@...1379...> References: <5303815.post@...1379...> <200607281115.15078.gambas@...1...> <5540864.post@...1379...> Message-ID: <200607282017.43777.gambas@...1...> On Friday 28 July 2006 16:38, R. Stormo wrote: > Hi Benoit. > > Thanks alot, now the example is compiling but every child screen is > maximized so I do not see the other screens. What parameter to use without > stretch/maximize child forms to mdi form.? > > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no The Workspace in gb.form.mdi always maximize his forms. I disliked the old Workspace, and it was confusing the user. If you want a Windows-like workspace, look at the component made by Fabien Bodard. It is not in the sources yet. Regards, -- Benoit Minisini From ronstk at ...239... Fri Jul 28 20:15:14 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 20:15:14 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <200607282009.37125.gambas@...1...> References: <44C8341A.70009@...981...> <200607281919.08893.ronstk@...239...> <200607282009.37125.gambas@...1...> Message-ID: <200607282015.14219.ronstk@...239...> On Friday 28 July 2006 20:09, Benoit Minisini wrote: > Actually the search list is there. The result is just displayed inside the > project tree. > I found the dots by accident. :) My point to make the list was the view of related information on the search The line number was less importand, more a extra gift as leftover of testing the listview correctness. See my reply to Mike (when it arrives) Not using WaterFox, Ron From ronstk at ...239... Fri Jul 28 20:46:06 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 20:46:06 +0200 Subject: [Gambas-user] Workspace In-Reply-To: <5534122.post@...1379...> References: <5303815.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> Message-ID: <200607282046.06351.ronstk@...239...> On Friday 28 July 2006 07:55, R. Stormo wrote: > > I get "unknown identifier Workspace". This was gone in version .32. > This example was working in .31. > http://forum.stormweb.no/index.php/topic,24.0.html > > I have a prosject that I use every day and can't switch to new version > because of this > I did try to help Fabian but there is silence. I could not continue due other 'printing' job has stolen my time :( The mda version has some problems during edit when used in gambas as replacement for the mdi. The basics works, it has to do with form.activate events. Ron From ronstk at ...239... Fri Jul 28 19:07:19 2006 From: ronstk at ...239... (Ron Onstenk) Date: Fri, 28 Jul 2006 19:07:19 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <44C8A330.1060608@...679...> References: <44C8341A.70009@...981...> <44C8A330.1060608@...679...> Message-ID: <200607281907.19892.ronstk@...239...> On Thursday 27 July 2006 13:27, Mike Keehan wrote: > sbungay wrote: > > I just did a ctrl+f and got this tool bar thing at the top of the > > editor. This is a replacement for a search & replace dialogue? IMHO is > > is not an improvement. Change it back... pleeeeeease! > > > > Well I disagree, sbungay. > > I think it works really well - takes up very little space, has simple > Find and Replace buttons, and the Show List feature is brilliant. And that 'Show List feature' is missing now. I implemented it the way sbungay so liked from UltraEdit where it was my favourite tool too. In the List you can see, special if Find is done on partial word, if the line counts for doing thing or not. It is not a word finder but bunch of characters finder. I wish I was able then to use the regexpr also. I did use it after quick and dirty edit a bunch of code to find more correct names for sub/function/variable and if a replace should not give conflicting/bad new names after the replace. (independed if this is the correct way of programming or not) Suppose I want to know where I did use the names 'thename', 'thenose' and 'thenick' and want to replace to 'thisname', 'thisnode' and 'thisnick' Visual in the list I see I have it 3 times, one of the words, with search for 'then'. Click in the list on the 3 lines and edit. The solution Benoit made is a nice place to inform where it is used but not how and the relation in what. The old Listview way is more informative for do something yes or no and that was the reason to implement it for me. I agree with sbungay and wish the Search/Find and Replace back in a separate form and not always on top as the last versions with SDI, because it then always is just over the code where the searched word is. > > The only thing I miss is the highlighting of all matches in the code, > but I can certainly live without that. And that is just the information in the listview, nice and compact and when search in project nice grouped in sections. Do you want then all files are opened and scroll in every openfile to find the word you searched for? This is if you look in the source code of the IDE to find hints of code... Well, the best is try it and you understand the searchlist is the way to go. > > It will take some time to try it out properly in a project, but my > first impression is that it is a very good replacement. For the look, yes but in practice ? > > Mike For small projects, low class/form count, the marking in the project tree is not absolute bad, if the hits are a few. For me it is the information that is lost this way. gambas2.1.9.35, Ron From leonardo at ...1237... Fri Jul 28 22:24:21 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 28 Jul 2006 22:24:21 +0200 Subject: [Gambas-user] error in compiling gambas2-1.9.33 In-Reply-To: <20060727082623.24631.qmail@...1304...> References: <20060727082623.24631.qmail@...1304...> Message-ID: <44CA7275.9070302@...1237...> Ramon Orticio ha scritto: > dear friends, > > i tried to compile gambas2-1.9.33 using redhat9 distro > to have a peek of this development version. i followed > the redhat.readme instructions i.e. > > > ./configure --with-qt-includes=/home/raport/qt/include > --with-qt-libraries=/home/raport/qt/lib > --with-moc=/home/raport/qt/bin > --prefix=/usr/local/gambas > > after make i have this error > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/pcre/ > -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g Tried to configure without any particular option (only ./configure)? -- Ciao. Leo Visita il mio sito personale: www.leonardomiliani.com e-mail: leonardo at ...1237... From sirfabien at ...626... Fri Jul 28 17:03:18 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Fri, 28 Jul 2006 17:03:18 +0200 Subject: [Gambas-user] [Gambas-devel] gb.form.mda-0.20 Message-ID: <200607281703.18944.sirfabien@...626...> This is a rewritted mdi emulator. To Benoit : I think this not so speed than the tab strip... In fact i prefer the tab strip ;) If you want to test it under the ide just put hWorkspace.AlwayMaximized to true in the _New procedure. Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.form.mda-0.2.tar.gz Type: application/x-tgz Size: 29487 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------- next part -------------- _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From rohnny at ...1248... Sat Jul 29 08:07:44 2006 From: rohnny at ...1248... (R. Stormo) Date: Fri, 28 Jul 2006 23:07:44 -0700 (PDT) Subject: [Gambas-user] Workspace In-Reply-To: <200607282017.43777.gambas@...1...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> <200607281115.15078.gambas@...1...> <5540864.post@...1379...> <200607282017.43777.gambas@...1...> Message-ID: <5551303.post@...1379...> What about an option that says it belong to , and here list the forms? This I think is very confusing, because every form are now main form, without any titlebar, close button are the mainform, so when I close the window the program shut down. Labels and buttons are placed as they should, but because of high resolution on screen most of the screen are blank. Also not able to use several windows up at once and arange them. How would gimp looked like if it was coded with this, no forms to arrange. Where to get hold of fabien component? -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5551303 Sent from the gambas-user forum at Nabble.com. From stefanopalmeri at ...152... Sat Jul 29 17:24:28 2006 From: stefanopalmeri at ...152... (Stefano Palmeri) Date: Sat, 29 Jul 2006 17:24:28 +0200 Subject: [Gambas-user] Problem with Label, centered form and text in 1.9.35 In-Reply-To: <200607281429.27512.rolf.frogs@...221...> References: <200607281429.27512.rolf.frogs@...221...> Message-ID: <200607291724.29013.stefanopalmeri@...152...> Alle 14:29, venerd? 28 luglio 2006, rolf ha scritto: > Hi Gambasinos, > > I compiled Gambas 1.9.35 under Debian Testing - all requiered libs are > installed with aptitude - and have the following problem. > > A form is started maximized with border for resize. The form has a text >label > with a centered text and the resize method resizes the label too. At first > start I get the text written twice evtl. partly overlayed. > > I send this as a bug report to Benoit, but he can't verify this behavior >with > the attached example. > > Can someone else test the program to help finding the reason. > Thank you > > BTW. The problem does not exists in version 1.9.31 > Hi, Rolf. I tested your example and I experienced the same problem. My Gambas2 version is 1.9.34 KDE is 3.4.2 QT is 3.3.2 Also, I noticed that if you set maximized=False instead of True in the form properties, and then you add this two lines in Form_Open(): ME.Width = Desktop.Width ME.Height = Desktop.Height the problem goes away. Regards, Stefano Palmeri Stupid post scriptum: as another temporary workaround I made this: PUBLIC SUB Form_Resize() Label1.Text = "" Label1.Width = ME.Width - 20 Label1.Text = "Test" END From ronstk at ...239... Sat Jul 29 17:38:26 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 29 Jul 2006 17:38:26 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607282046.06351.ronstk@...239...> References: <5303815.post@...1379...> <5534122.post@...1379...> <200607282046.06351.ronstk@...239...> Message-ID: <200607291738.26643.ronstk@...239...> On Friday 28 July 2006 20:46, Ron Onstenk wrote: > On Friday 28 July 2006 07:55, R. Stormo wrote: > > > > I get "unknown identifier Workspace". This was gone in version .32. > > This example was working in .31. > > http://forum.stormweb.no/index.php/topic,24.0.html > > > > I have a prosject that I use every day and can't switch to new version > > because of this > > > > I did try to help Fabian but there is silence. > I could not continue due other 'printing' job has stolen my time :( > > The mda version has some problems during edit when used in > gambas as replacement for the mdi. > The basics works, it has to do with form.activate events. > > Ron > The updated version arrived much later then this message was send :( Fabien has released his second version jul-27 at 17:30 or so. ================= First a Warning. ===================== If you want to play safe do not read the remaining part. This is really for testing/developing a new version of the workspace as the gb.form.mdi is. ======================================================== If you want to try You need to get it from the mail list. Look for [Gambas-user] [Gambas-devel] gb.form.mda-0.20 unpack the archive and place it in the source tree /home/ron/src/gambas2-1.9.35/comp/src where also the gb.form.mdi is. Then edit in /home/ron/src/gambas2-1.9.35/comp/src/order the text line from gb.settings gb.info gb.form gb.form.mdi gb.db.form to gb.settings gb.info gb.form gb.form.mda gb.form.mdi gb.db.form Add the attached file (copy in text at end) into the gb.form.mda directory as gb.form.mda.component file. go to the root /home/ron/src/gambas2-1.9.35/ where the source is installed and type 'make install' again. This will update the installed version and leave the original IDE as-is. -------------------------------------------------------- Then the way I continue for usage: Copy the /home/ron/src/gambas2-1.9.35/app/src/gambas2 to /home/ron/src/gambas2 Open with the original installed gambas version 'existing project' and go to the copied location. In project->components choose gb.form.mda instead of gb.form.mdi Only one of them should be selected!! Do a normal 'make executable' and place a symlink from the result gambas2.gambas on your desktop. When you start this symlink it should be you want. You can use gambas as always but with modified workspace. -------------------------------------------------------- Bugs: As always with every software they can/will be there. The previous had a few. After edit on a form and go to the code or property sheet it could happen on pressing the Delete key you by accident deleted a control on the form. Also the 'cut/paste' and 'copy/paste' did not work always the first 'past' action. This has happen to me :( I'm sure Fabien has a look at this issues after my report. I found for this version after 'maximise' I need sometimes two times to press the restore button to go the restore state. -------------------------------------------------------- Do not complain to Benoit, give correcting hints to Fabien. --------------------------------------------------------- Adding the .mda to the existing install does not hurt the official gambas version. When you find problems in your program try first with the original version to see it is related to the .mda or it is a gambas general problem. --------------------------------------------------------- Note from Benoit: He prefer to use the .mda in a personal ne project for testing. He is/was not unwilling to merge it with the current existing .mdi version but with strong conditions. (this on forehand from reactions in past) --------------------------------------------------------- Happy computing, Ron ======================================================== gb.form.mda.component file: [Component] Key=gb.form.mda Name=Multi Document Interface Name[fr]=Interface Multi Documents Author=Fabien Bodard Need=Form [Special] Control=Workspace -------------- next part -------------- [Component] Key=gb.form.mda Name=Multi Document Interface Name[fr]=Interface Multi Documents Author=Fabien Bodard Need=Form [Special] Control=Workspace From timothy.marshal-nichols at ...247... Sat Jul 29 17:42:59 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Sat, 29 Jul 2006 16:42:59 +0100 Subject: [Gambas-user] Unix Date conversion In-Reply-To: <200607281802.38792.gambas@...1...> Message-ID: Thanks 8-{)} Timothy Marshal-Nichols > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit > Minisini > Sent: Friday, 28 July 2006 17:03 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Unix Date conversion > > > On Wednesday 26 July 2006 07:48, Timothy Marshal-Nichols wrote: > > > > 1. You may have a constructor and destructor in the object and want to > > control when they are executed. Or even if the are executed - say if the > > object was just used on one form that is a dialog. This is even > more true > > if your object calls on resources outside of Gambas. > > In Gambas, a class has an initializer function named "_init", and > its contrary > named "_exit". But "_exit" does not appear to *ever* get called. If you add: STATIC PUBLIC SUB _exit() PRINT "Static Destructor" END to a class you never see the text printed! So how can you use this method? (Slipped of the subject of UNIX data a bit.) > > If you really need "singletons", i.e. class that you instanciate > only once, > the keyword "CREATE" tells Gambas that the class can create an hidden > instance when the class name is used like an object reference. > > > > > 2. Good programming languages 'encourage good programming > practice' rather > > than force the ideas the language developer on the language user. There > > should be no penalty for using the language in a way not intended by the > > language developer. > > There is no penalty in making a useless dynamic class just for > using dynamic > methods instead of static ones, except the memory taken by the single > instance needed to call the methods. > > > This is why C and C++ have always been more popular > > then Pascal. Both the C and Pascal languages were developed by > people who > > were influenced by the ideas of structured programming that > were around at > > the time. Both wanted to get away from the GOTO style of programming of > > languages like COBOL. C took the first approach. C rewarded you for good > > programming practice - Pascal forced you. This is one reason why you use > > C/C++ to develop Gambas and not Pascal! > > > > I use C/C++ because they are the language to use when developing > interpreters > and using libraries on Linux. > > And the big problem with Pascal is that you have to type many > boring keywords > and ';' to do simple things :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Sat Jul 29 18:11:10 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 29 Jul 2006 18:11:10 +0200 Subject: [Gambas-user] Completion report Message-ID: <200607291811.10395.ronstk@...239...> About the completion I did try a quick simple test. It did work correct ATM. Will find out later when working on project again. One point, I see some names (user variable) in upper and lower case because the are somewhere entered that way. I assume once in the global section at start of the file and once for the declaration in the Function/Sub. I'm thinking on different colour or bold if inside the function/sub. Using colour may be the better to signal the difference between inside the Sub, Class-Module, Form and Component objects. Of course when it is possible. Groetjes, Ron From ronstk at ...239... Sat Jul 29 18:13:35 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 29 Jul 2006 18:13:35 +0200 Subject: [Gambas-user] New Find dialog... In-Reply-To: <200607282009.37125.gambas@...1...> References: <44C8341A.70009@...981...> <200607281919.08893.ronstk@...239...> <200607282009.37125.gambas@...1...> Message-ID: <200607291813.35287.ronstk@...239...> On Friday 28 July 2006 20:09, Benoit Minisini wrote: > > Ron (without searchlist :( ) > > Actually the search list is there. The result is just displayed inside the > project tree. > > Regards, > > -- > Benoit Minisini > When pressed the golden Star I get the line number marks it the project tree. Should it not be a toggle button? It was a checkbox as option. Now I can't remove the line number marks or should 'ESC' working? :) .... Try it yourself Ron. Yes boss, I will do it Benoit. .... Oops, yes it did but then the whole search is gone. Toggle,toggle, Ron From rohnny at ...1248... Sat Jul 29 19:39:24 2006 From: rohnny at ...1248... (R. Stormo) Date: Sat, 29 Jul 2006 10:39:24 -0700 (PDT) Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607291738.26643.ronstk@...239...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> <200607282046.06351.ronstk@...239...> <200607291738.26643.ronstk@...239...> Message-ID: <5556623.post@...1379...> Thanks for the info. I have found the posting by fabien. But can't see any attchment. Is there someplace else where I can download it.? Or could you post it on http://forum.stormweb.no as a post or as PM. -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5556623 Sent from the gambas-user forum at Nabble.com. From sirfabien at ...626... Sat Jul 29 22:10:48 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 29 Jul 2006 22:10:48 +0200 Subject: [Gambas-user] [Gambas-devel] gb.form.mda-0.20 Message-ID: <200607292210.48499.gambas-devel-bounces@lists.sourceforge.net> This is a rewritted mdi emulator. To Benoit : I think this not so speed than the tab strip... In fact i prefer the tab strip ;) If you want to test it under the ide just put hWorkspace.AlwayMaximized to true in the _New procedure. Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.form.mda-0.2.tar.gz Type: application/x-tgz Size: 29487 bytes Desc: not available URL: From ronstk at ...239... Sat Jul 29 22:21:27 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sat, 29 Jul 2006 22:21:27 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <5556623.post@...1379...> References: <5303815.post@...1379...> <200607291738.26643.ronstk@...239...> <5556623.post@...1379...> Message-ID: <200607292221.27913.ronstk@...239...> On Saturday 29 July 2006 19:39, R. Stormo wrote: > > Thanks for the info. I have found the posting by fabien. But can't see any > attchment. Is there someplace else where I can download it.? > > Or could you post it on http://forum.stormweb.no as a post or as PM. > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no On the original mail list at sourceforge. http://www.nabble.com is stripping attachments as far i know. Ron From sirfabien at ...626... Sat Jul 29 23:01:52 2006 From: sirfabien at ...626... (Fabien Bodard) Date: Sat, 29 Jul 2006 23:01:52 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607291738.26643.ronstk@...239...> References: <5303815.post@...1379...> <200607282046.06351.ronstk@...239...> <200607291738.26643.ronstk@...239...> Message-ID: <200607292301.53115.sirfabien@...626...> > -------------------------------------------------------- > Bugs: > As always with every software they can/will be there. > The previous had a few. > After edit on a form and go to the code or property sheet > it could happen on pressing the Delete key you by accident > deleted a control on the form. the problem came because i can't capture the _Activate event from the embedded windows, i wait for a Benoit soluce ... > Also the 'cut/paste' and 'copy/paste' did not work always > the first 'past' action. same problem > This has happen to me :( > I'm sure Fabien has a look at this issues after my report. > > I found for this version after 'maximise' I need sometimes > two times to press the restore button to go the restore state. > > > -------------------------------------------------------- > Do not complain to Benoit, give correcting hints to Fabien. > > --------------------------------------------------------- > Adding the .mda to the existing install does not hurt the official gambas > version. When you find problems in your program try first with the original > version to see it is related to the .mda or it is a gambas general problem. > > > --------------------------------------------------------- > Note from Benoit: > He prefer to use the .mda in a personal ne project for testing. > He is/was not unwilling to merge it with the current existing > .mdi version but with strong conditions. > (this on forehand from reactions in past) > > --------------------------------------------------------- > Happy computing, > > Ron > > > ======================================================== > gb.form.mda.component file: > > [Component] > Key=gb.form.mda > Name=Multi Document Interface > Name[fr]=Interface Multi Documents > Author=Fabien Bodard > Need=Form > > [Special] > Control=Workspace From sbungay at ...981... Sun Jul 30 07:37:20 2006 From: sbungay at ...981... (sbungay) Date: Sun, 30 Jul 2006 01:37:20 -0400 Subject: [Gambas-user] Exposing Properties of a class.. Message-ID: <44CC4590.7000900@...981...> I was trying to write a class object to encapsulate functionality and expose properties. What I want to do is expose a property write to accept a value, which then takes that value and uses it to populate other variables which are exposed through property reads. To this end I did something like this... '-------------- Code example --------------- PROPERTY ExposedProperty AS INTEGER PROPERTY READ Result AS INTEGER PRIVATE mValue as INTEGER. PRIVATE mResult as INTEGER PUBLIC SUB ExposedProperty_Write(Value AS INTEGER) mValue = Value mResult = Process(mValue) END PUBLIC Function Result_Read() AS Integer RETURN (mResult) END PRIVATE FUNCTION Process(Value AS INTEGER) AS INTEGER RETURN (Value * 2) END '----------------- Now in VB I would have done it something like this... (I haven't sparked up VB in awhile so forgive me if the syntax is not 100% accurate, hopefully the idea comes across...) Private mValue AS Integer Private mResult AS Integer PUBLIC Property Let ExposedProperty(Value AS INTEGER) mValue = Value mResult = Process(mValue) END SUB Public Property GET Result() as INTEGER Result = mResult END SUB Private Function Process(Value as Integer) AS INTEGER Process=Value * 2 END Function How can I do in gambas what I know is possible in in VB? Steve. From rohnny at ...1248... Sun Jul 30 08:34:05 2006 From: rohnny at ...1248... (R. Stormo) Date: Sat, 29 Jul 2006 23:34:05 -0700 (PDT) Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607292221.27913.ronstk@...239...> References: <5303815.post@...1379...> <6324a42a0607141422p531775c6gf643061f0a30ec4d@...627...> <5516441.post@...1379...> <200607280039.30527.gambas@...1...> <5534122.post@...1379...> <200607282046.06351.ronstk@...239...> <200607291738.26643.ronstk@...239...> <5556623.post@...1379...> <200607292221.27913.ronstk@...239...> Message-ID: <5561086.post@...1379...> Maybee I do not understand or are on the wrong place. I use nabble to watch postings. This because sourceforge is slow and often down. I have also looked again at http://sourceforge.net/mailarchive/forum.php?forum=gambas-devel and there is no attchment here either. -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Workspace-tf1935747.html#a5561086 Sent from the gambas-user forum at Nabble.com. From ronstk at ...239... Sun Jul 30 10:59:34 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 30 Jul 2006 10:59:34 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <5561086.post@...1379...> References: <5303815.post@...1379...> <200607292221.27913.ronstk@...239...> <5561086.post@...1379...> Message-ID: <200607301059.34565.ronstk@...239...> On Sunday 30 July 2006 08:34, R. Stormo wrote: > > Maybee I do not understand or are on the wrong place. I use nabble to watch > postings. This because sourceforge is slow and often down. I have also > looked again at > http://sourceforge.net/mailarchive/forum.php?forum=gambas-devel and there is > no attchment here either. > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no Did you get my email to rohnny X stormweb.no ? Try else this one and use show all to see the files: http://82.171.66.79/www/dir.php?DirPath=ftp/downloads/develop/gambas/contrib/fabien/mda or: http://82.171.66.79/www/ftp/downloads/develop/gambas/contrib/fabien/mda/gb.form.mda-0.2.tar.gz http://82.171.66.79/www/ftp/downloads/develop/gambas/contrib/fabien/mda/gb.form.mda.component http://82.171.66.79/www/ftp/downloads/develop/gambas/contrib/fabien/mda/order Ron From ronstk at ...239... Sun Jul 30 11:29:32 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 30 Jul 2006 11:29:32 +0200 Subject: [Gambas-user] Exposing Properties of a class.. In-Reply-To: <44CC4590.7000900@...981...> References: <44CC4590.7000900@...981...> Message-ID: <200607301129.32568.ronstk@...239...> On Sunday 30 July 2006 07:37, sbungay wrote: > PROPERTY ExposedProperty AS INTEGER ' need Let & Get > PROPERTY READ Result AS INTEGER ' need only Get > > PRIVATE mValue as INTEGER. > PRIVATE mResult as INTEGER PUBLIC Function ExposedProperty_Read() AS INTEGER ' the VB get return mValue end > > PUBLIC SUB ExposedProperty_Write(Value AS INTEGER) ' the VB Let > ? ? mValue = Value > ? ? mResult = Process(mValue) > END > > PUBLIC Function Result_Read() AS Integer > ? ? RETURN (mResult) > END > > PRIVATE FUNCTION Process(Value AS INTEGER) AS INTEGER > ? ?RETURN (Value * 2) > END Ron From sbungay at ...981... Sun Jul 30 15:20:05 2006 From: sbungay at ...981... (sbungay) Date: Sun, 30 Jul 2006 09:20:05 -0400 Subject: [Gambas-user] Exposing Properties of a class.. In-Reply-To: <200607301129.32568.ronstk@...239...> References: <44CC4590.7000900@...981...> <200607301129.32568.ronstk@...239...> Message-ID: <44CCB205.2050804@...981...> Hello ROn! Here is the actual code. The error message I am getting @ compile time is; "A property function can not be public at line 56 in class "ClassUnixDateFunctions.class". It appears that everything is correct.. a few hundred more eyes looking it over is always helpful. :) PROPERTY UnixTimeStamp AS Integer PROPERTY READ MonthNumber AS Integer PROPERTY READ MonthName AS String PROPERTY READ DayOfMonth AS Integer PROPERTY READ Year AS Integer PROPERTY READ JulianDate AS Integer PRIVATE mUnixTimeStamp AS Integer PRIVATE mMonthNumber AS Integer PRIVATE mMonthName AS String PRIVATE mDayOfMOnth AS Integer PRIVATE mYear AS Integer PRIVATE mJulianDate AS Integer CONST cSecondsInADay AS Integer = 86400 CONST cDaysInAYear AS Float = 365.25 CONST cJan AS Integer = 1 CONST cFeb AS Integer = 2 CONST cMar AS Integer = 3 CONST cApr AS Integer = 4 CONST cMay AS Integer = 5 CONST cJun AS Integer = 6 CONST cJul AS Integer = 7 CONST cAug AS Integer = 8 CONST cSep AS Integer = 9 CONST cOct AS Integer = 10 CONST cNov AS Integer = 11 CONST cDecember AS Integer = 12 CONST cJanDays AS Integer = 31 CONST cFebDays AS Integer = 28 CONST cMarDays AS Integer = 31 CONST cAprDays AS Integer = 30 CONST cMayDays AS Integer = 31 CONST cJunDays AS Integer = 30 CONST cJulDays AS Integer = 31 CONST cAugDays AS Integer = 31 CONST cSepDays AS Integer = 30 CONST cOctDays AS Integer = 31 CONST cNovDays AS Integer = 30 CONST cDecDays AS Integer = 31 ' Only need one property to be set to set things in action. PUBLIC SUB UnixTimeStamp_Write(Value AS Integer) mUnixTimeStamp = Value mYear = TimeStampToYear(Value) mJulianDate = TimeStampToJulianDay(Value) mDayOfMOnth = JulianDateTOMonthDay(mJulianDate) mMonthNumber = JulianDateToMonthNumber(mJulianDate) mMonthName = MonthNumberToMonthName(mMonthNumber) END PUBLIC FUNCTION UnixTimeStamp_Read() AS Integer RETURN (mUnixTimeStamp) END PUBLIC FUNCTION Year_Read() AS Integer RETURN (mYear) END PUBLIC FUNCTION JulianDate_Read() AS Integer RETURN (mJulianDate) END PUBLIC FUNCTION DayOfMonth_Read() AS Integer RETURN (mDayOfMonth) END PUBLIC FUNCTION MonthNumber_Read() AS Integer RETURN (mMonthNumber) END PUBLIC FUNCTION MonthName_Read() AS String RETURN (mMonthName) END ------------- SNIP -------------------- Ron Onstenk wrote: > On Sunday 30 July 2006 07:37, sbungay wrote: > > >>PROPERTY ExposedProperty AS INTEGER ' need Let & Get >>PROPERTY READ Result AS INTEGER ' need only Get >> >>PRIVATE mValue as INTEGER. >>PRIVATE mResult as INTEGER > > > PUBLIC Function ExposedProperty_Read() AS INTEGER ' the VB get > return mValue > end > >>PUBLIC SUB ExposedProperty_Write(Value AS INTEGER) ' the VB Let >> mValue = Value >> mResult = Process(mValue) >>END >> >>PUBLIC Function Result_Read() AS Integer >> RETURN (mResult) >>END >> >>PRIVATE FUNCTION Process(Value AS INTEGER) AS INTEGER >> RETURN (Value * 2) >>END > > > Ron > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Sun Jul 30 16:04:27 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 30 Jul 2006 16:04:27 +0200 Subject: [Gambas-user] Exposing Properties of a class.. In-Reply-To: <44CCB205.2050804@...981...> References: <44CC4590.7000900@...981...> <200607301129.32568.ronstk@...239...> <44CCB205.2050804@...981...> Message-ID: <200607301604.27348.ronstk@...239...> On Sunday 30 July 2006 15:20, sbungay wrote: > Hello ROn! > Here is the actual code. The error message I am getting @ compile > time is; > > "A property function can not be public at line 56 in class > "ClassUnixDateFunctions.class". I expect that is the line with: > PUBLIC SUB UnixTimeStamp_Write(Value AS Integer) > > It appears that everything is correct.. a few hundred more eyes > looking it over is always helpful. :) > > For the remaining code it looks to me OK. However I have seen once the same error here to. I have forgotten the solution I made, the bad thing is not documented in the class where it happen. OK I did cut and paste the code It is exact what the error say's For all the entries you use a PROPERTY the associated SUB/Function should in the executing code be PRIVATE instead PUBLIC. As far I know it could be PUBLIC or PRIVATE in the prehistory of gambas. Now it is the logical PRIVATE only. PROPERTY is the exported PUBLIC name. I hope to be correct with this statement :) Ron From sbungay at ...981... Sun Jul 30 17:28:40 2006 From: sbungay at ...981... (sbungay) Date: Sun, 30 Jul 2006 11:28:40 -0400 Subject: [Gambas-user] Exposing Properties of a class.. In-Reply-To: <200607301604.27348.ronstk@...239...> References: <44CC4590.7000900@...981...> <200607301129.32568.ronstk@...239...> <44CCB205.2050804@...981...> <200607301604.27348.ronstk@...239...> Message-ID: <44CCD028.1000600@...981...> Right On Ron! I would never have GUESSED that, I assumed (always a bad thing) that the declaration of the property was private and the keywords PUBLIC and PRIVATE were used to expose the functions or subs, which makes sense... but this works.. I'll have to document this a little better than it is. Thank you. Steve. Ron Onstenk wrote: > On Sunday 30 July 2006 15:20, sbungay wrote: > >> Hello ROn! >> Here is the actual code. The error message I am getting @ compile >>time is; >> >>"A property function can not be public at line 56 in class >>"ClassUnixDateFunctions.class". > > > I expect that is the line with: > > PUBLIC SUB UnixTimeStamp_Write(Value AS Integer) > > >> It appears that everything is correct.. a few hundred more eyes >>looking it over is always helpful. :) >> >> > > > For the remaining code it looks to me OK. > However I have seen once the same error here to. > I have forgotten the solution I made, the bad thing is not > documented in the class where it happen. > > OK I did cut and paste the code > It is exact what the error say's > For all the entries you use a PROPERTY the associated SUB/Function > should in the executing code be PRIVATE instead PUBLIC. > > As far I know it could be PUBLIC or PRIVATE in the prehistory of gambas. > Now it is the logical PRIVATE only. PROPERTY is the exported PUBLIC name. > > I hope to be correct with this statement :) > > Ron > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Sun Jul 30 16:44:33 2006 From: ronstk at ...239... (Ron Onstenk) Date: Sun, 30 Jul 2006 16:44:33 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607292301.53115.sirfabien@...626...> References: <5303815.post@...1379...> <200607291738.26643.ronstk@...239...> <200607292301.53115.sirfabien@...626...> Message-ID: <200607301644.34058.ronstk@...239...> On Saturday 29 July 2006 23:01, Fabien Bodard wrote: > > > -------------------------------------------------------- > > Bugs: > > As always with every software they can/will be there. > > The previous had a few. > > After edit on a form and go to the code or property sheet > > it could happen on pressing the Delete key you by accident > > deleted a control on the form. > the problem came because i can't capture the _Activate event from the embedded > windows, i wait for a Benoit soluce ... Do we not have it already? He is doing for the activate event the actions need in the .mdi I will look to it. > > Also the 'cut/paste' and 'copy/paste' did not work always > > the first 'past' action. > same problem > > This has happen to me :( > > I'm sure Fabien has a look at this issues after my report. > > Found related bug. With two editors open, to 'Activate' you need to click on the title bar. I found me editing in a form that was not Activated (blue title) but a grayed one. Ron From bjornst at ...1530... Sun Jul 30 21:34:21 2006 From: bjornst at ...1530... (=?iso-8859-1?q?Bj=F8rn_Steensrud?=) Date: Sun, 30 Jul 2006 21:34:21 +0200 Subject: [Gambas-user] Importing VB projects - FRX files Message-ID: <200607302134.23641.bjornst@...1530...> Having just installed gambas2-1.9.35 on SUSe 10.1 I thought I would give the VBS import a shot, once I found that it had to be done as root. Unfortunately, winicontoppm from netpbm-10.26.22-12 segfaults on the frx files from an old VB project, I believe it's VB 5 or some such. What experience is there in running this tool? I'll try to comment out the references and move the files out of the way to see what happens - this is a medium-size project involving a system for cat shows, registering clubs, cats, owners, producing catalogs and a whole lot of other documents. Needed to liberate the cat fancy in this country from Windows! :-) Bj?rn From gambas at ...1... Sun Jul 30 22:18:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Jul 2006 22:18:28 +0200 Subject: [Gambas-user] Workspace (- Update) In-Reply-To: <200607292301.53115.sirfabien@...626...> References: <5303815.post@...1379...> <200607291738.26643.ronstk@...239...> <200607292301.53115.sirfabien@...626...> Message-ID: <200607302218.28656.gambas@...1...> On Saturday 29 July 2006 23:01, Fabien Bodard wrote: > > -------------------------------------------------------- > > Bugs: > > As always with every software they can/will be there. > > The previous had a few. > > After edit on a form and go to the code or property sheet > > it could happen on pressing the Delete key you by accident > > deleted a control on the form. > > the problem came because i can't capture the _Activate event from the > embedded windows, i wait for a Benoit soluce ... > I think I have one... -- Benoit Minisini From gambas at ...1... Sun Jul 30 22:20:54 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Jul 2006 22:20:54 +0200 Subject: [Gambas-user] Completion report In-Reply-To: <200607291811.10395.ronstk@...239...> References: <200607291811.10395.ronstk@...239...> Message-ID: <200607302220.54579.gambas@...1...> On Saturday 29 July 2006 18:11, Ron Onstenk wrote: > About the completion I did try a quick simple test. > It did work correct ATM. > Will find out later when working on project again. > > One point, I see some names (user variable) in upper and lower case > because the are somewhere entered that way. > > I assume once in the global section at start of the file > and once for the declaration in the Function/Sub. > I'm thinking on different colour or bold if inside the function/sub. > > Using colour may be the better to signal the difference between > inside the Sub, Class-Module, Form and Component objects. > Of course when it is possible. > > Groetjes, > > Ron > Sorry, I don't really understand what you mean. What do you want to distinguish in the completion list exactly? -- Benoit Minisini From ronstk at ...239... Mon Jul 31 01:21:31 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 31 Jul 2006 01:21:31 +0200 Subject: [Gambas-user] Completion report In-Reply-To: <200607302220.54579.gambas@...1...> References: <200607291811.10395.ronstk@...239...> <200607302220.54579.gambas@...1...> Message-ID: <200607310121.31841.ronstk@...239...> On Sunday 30 July 2006 22:20, Benoit Minisini wrote: > On Saturday 29 July 2006 18:11, Ron Onstenk wrote: > > About the completion I did try a quick simple test. > > It did work correct ATM. > > Will find out later when working on project again. > > > > One point, I see some names (user variable) in upper and lower case > > because the are somewhere entered that way. > > > > I assume once in the global section at start of the file > > and once for the declaration in the Function/Sub. > > I'm thinking on different colour or bold if inside the function/sub. > > > > Using colour may be the better to signal the difference between > > inside the Sub, Class-Module, Form and Component objects. > > Of course when it is possible. > > > > Groetjes, > > > > Ron > > > > Sorry, I don't really understand what you mean. What do you want to > distinguish in the completion list exactly? > The kind of the items in the list, as class, module, variable or control name and possible where as global in file or the function/sub routine. ----------------------------- module: XYZ public vMod as variant ----------------------------- class: itwo public cDat as date public iTwO as integer ----------------------------- Class: KLM public iGlobal as integer public cdat as string public itwo as string public SUB DoShow() dim iSub as integer dim iTwo as integer ItWotextBox1.value=itw____Completion opens ----------------------------- When completion opens in SUB DoShow i see: iGlobal ' in this file header (KLM) iSub ' in this file in this sub (KLM) iTwo ' in this file in this sub (KLM) itwo ' where does this live? (itwo) iTwO ' outside this file (itwo) ItWoBox ' in red means a contol name cDat ' outside this file (itwo) cdat ' in this file (KLM) vMod ' outside this file and in a class (XYZ) OK, in fact I see in above list only the 4 items start with itw (mixed case) but where and what is it? 1) in the file/sub-routine as variable ? 2) is the name of other class ? 3) is something else, a control name ? This makes me to assume there is difference for the 3 itwo but what?? If you say 'itwo' is a keyword to select and no difference to select one of them, because pressing a '.' or '[' or '(' or ' ' after it shows something more, the next keyword if that exists, it make no sense to me to see all variations of itwo in mixed case if they are in the code. if not completionlist.exist(keyword,gb.text) then 'case insensitive completionlist.Add(keyword) else ' no add to list while it is already end if Colorize and bold can help to select the correct one for variable, class name or module name but..... Shit, color/bold can't be done in the control used for the list. Maybe a space and between () or [] some reference itwo (L) ' local var in sub/func iTwO (G) ' global var in file ItWo (R) ' routine in file itwO (M) ' external modulename iTWO (C) ' external classname iTWo (F) ' control on form I prefer [L] itwo [F] iTWO and sorted by that reference. Just a idea after seen many dubbles names in the completion list and knowing they are different things in my project. Ron From ronstk at ...239... Mon Jul 31 01:28:08 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 31 Jul 2006 01:28:08 +0200 Subject: [Gambas-user] Workspace (outdated) In-Reply-To: <5551303.post@...1379...> References: <5303815.post@...1379...> <200607282017.43777.gambas@...1...> <5551303.post@...1379...> Message-ID: <200607310128.08554.ronstk@...239...> Special for R. Stormo I got this mail back from ISP as undeliverable. Error in TO, my fault :( On Saturday 29 July 2006 08:07, R. Stormo wrote: > > What about an option that says it belong to , and here list the forms? > This I think is very confusing, because every form are now main form, > without any titlebar, close button are the mainform, so when I close the > window the program shut down. > Labels and buttons are placed as they should, but because of high resolution > on screen most of the screen are blank. Also not able to use several windows > up at once and arange them. > > How would gimp looked like if it was coded with this, no forms to arrange. > > Where to get hold of fabien component? > > > -- > R. Stormo > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no Fabien has released his second version jul-27 at 17:30 or so. ================= First a Warning. ===================== If you want to play safe do not read the remaining part. This is really for testing/developing a new version of the workspace as the gb.form.mdi is. ======================================================== If you want to try You need to get it from the mail list. Look for [Gambas-user] [Gambas-devel] gb.form.mda-0.20 unpack the archive and place it in the source tree /home/ron/src/gambas2-1.9.35/comp/src where also the gb.form.mdi is. Then edit in /home/ron/src/gambas2-1.9.35/comp/src/order the text line from gb.settings gb.info gb.form gb.form.mdi gb.db.form to gb.settings gb.info gb.form gb.form.mda gb.form.mdi gb.db.form Add the attached file (copy in text at end) into the gb.form.mda directory as gb.form.mda.component file. go to the root /home/ron/src/gambas2-1.9.35/ where the source is installed and type 'make install' again. This will update the installed version and leave the original IDE as-is. -------------------------------------------------------- Then the way I continue for usage: Copy the /home/ron/src/gambas2-1.9.35/app/src/gambas2 to /home/ron/src/gambas2 Open with the original installed gambas version 'existing project' and go to the copied location. In project->components choose gb.form.mda instead of gb.form.mdi Only one of them should be selected!! Do a normal 'make executable' and place a symlink from the result gambas2.gambas on your desktop. When you start this symlink it should be you want. You can use gambas as always but with modified workspace. -------------------------------------------------------- Bugs: As always with every software they can/will be there. The previous had a few. After edit on a form and go to the code or property sheet it could happen on pressing the Delete key you by accident deleted a control on the form. Also the 'cut/paste' and 'copy/paste' did not work always the first 'past' action. This has happen to me :( I'm sure Fabien has a look at this issues after my report. I found for this version after 'maximise' I need sometimes two times to press the restore button to go the restore state. -------------------------------------------------------- Do not complain to Benoit, give correcting hints to Fabien. --------------------------------------------------------- Adding the .mda to the existing install does not hurt the official gambas version. When you find problems in your program try first with the original version to see it is related to the .mda or it is a gambas general problem. --------------------------------------------------------- Note from Benoit: He prefer to use the .mda in a personal ne project for testing. He is/was not unwilling to merge it with the current existing .mdi version but with strong conditions. (this on forehand from reactions in past) --------------------------------------------------------- Happy computing, Ron ======================================================== gb.form.mda.component file: [Component] Key=gb.form.mda Name=Multi Document Interface Name[fr]=Interface Multi Documents Author=Fabien Bodard Need=Form [Special] Control=Workspace -------------- next part -------------- [Component] Key=gb.form.mda Name=Multi Document Interface Name[fr]=Interface Multi Documents Author=Fabien Bodard Need=Form [Special] Control=Workspace From ronstk at ...239... Mon Jul 31 01:43:43 2006 From: ronstk at ...239... (Ron Onstenk) Date: Mon, 31 Jul 2006 01:43:43 +0200 Subject: [Gambas-user] PRB: Found some bugs? Message-ID: <200607310143.43475.ronstk@...239...> When I'm on a form and select a control. With the rightmouse button choose to add an event. In this case control 'panTitle' and not used event 'MousDown' The associated public sub is add at the end of the code. However I found: PUBLIC SUB lblTitle_MouseDown() Activate EN PUBLIC SUB panTitle_MouseDown() END D It is inserted 1 character before the end and split the last END to EN & D and i'm 100% sure the cursor was not at that place. -------------------------------------------------------------------------- With search 1: When I Search for a keyword and use the search list the markup in the project tree shows them in the 'Form' instead of the 'Class' folder. Strange effect to click on that mark in a form and see the class :) --------------------------------------------------- With search 2: Selecting a keyword/sentence and press the Search (loupe) button I was expecting the keyword in the search input box. Now we must copy/paste the keyword/sentence Would be nice to have the same behaviour as the old Find for this. sleep well in western-europe, Ron From rporticio at ...43... Mon Jul 31 03:20:51 2006 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 30 Jul 2006 18:20:51 -0700 (PDT) Subject: [Gambas-user] DataReportExample backtrace re: program stopped unexpectedly raising signal #11 Message-ID: <20060731012051.48090.qmail@...1039...> benoit, may i submit to you the backtrace which you asked me to send you. i hope what i did per your instructions is correct. [raport at ...40... DataReportExample]$ gdb gbx GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) run -p Starting program: /usr/bin/gbx -p [New Thread 1074069632 (LWP 31840)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074069632 (LWP 31840)] 0x40f1e629 in KCmdLineArgs::count() const () from /usr/lib/libkdecore.so.4 (gdb) bt #0 0x40f1e629 in KCmdLineArgs::count() const () from /usr/lib/libkdecore.so.4 #1 0x40f1b5c8 in KCmdLineArgs::qt_argv() () from /usr/lib/libkdecore.so.4 #2 0x40e8ae07 in KApplication::KApplication(bool, bool) () from /usr/lib/libkdecore.so.4 #3 0x402c7dec in hook_main (argc=0xbfffe540, argv=0xbfffe584) at main.cpp:126 #4 0x0805db84 in main (argc=1, argv=0xbfffe584) at gbx.c:231 #5 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) by the way what's happeninng here, thanks again. ramon --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbungay at ...981... Mon Jul 31 06:32:04 2006 From: sbungay at ...981... (sbungay) Date: Mon, 31 Jul 2006 00:32:04 -0400 Subject: [Gambas-user] User Defined Types..(UDT) Message-ID: <44CD87C4.1020300@...981...> Are there plans to implement these in the future? From rporticio at ...43... Mon Jul 31 05:48:18 2006 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 30 Jul 2006 20:48:18 -0700 (PDT) Subject: [Gambas-user] error in gambas2-1.9.33 Message-ID: <20060731034818.87936.qmail@...1304...> dear friends, i have already a gambas-1.0.16 running in in my computer with redhat 9 distribution. at present i have to resolve some program stoppage in the datareportexample and i have submitted already the bactrace as recommended by bennoit. i tried to install gambas2-1.9.33 in the same computer to have glimpse of the new developments in gambas. there were some errors such as in pcre files but i resolved it by updating the development packages. however this error is persistent despite updating the qt.kde development package. may i submit this to you for possible solution. make[5]: Entering directory `/home/raport/gambas2/gb.qt.kde/src/html' if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/raport/qt/include -D_REENTRANT -I/usr/include/kde/ -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT CWebBrowser.lo -MD -MP -MF ".deps/CWebBrowser.Tpo" -c -o CWebBrowser.lo CWebBrowser.cpp; \then mv -f ".deps/CWebBrowser.Tpo" ".deps/CWebBrowser.Plo"; else rm -f ".deps/CWebBrowser.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/raport/qt/include -D_REENTRANT -I/usr/include/kde/ -pipe -Wall -fno-exceptions -Wno-unused-value -g -Os -fno-omit-frame-pointer -MT CWebBrowser.lo -MD -MP -MF .deps/CWebBrowser.Tpo -c CWebBrowser.cpp -fPIC -DPIC -o .libs/CWebBrowser.o CWebBrowser.cpp: In function `void CWEBBROWSER_print(void*, void*)': CWebBrowser.cpp:274: no matching function for call to `KHTMLView::print(bool)' /usr/include/kde/khtmlview.h:144: candidates are: void KHTMLView::print() make[5]: *** [CWebBrowser.lo] Error 1 make[5]: Leaving directory `/home/raport/gambas2/gb.qt.kde/src/html' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/raport/gambas2/gb.qt.kde/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/raport/gambas2/gb.qt.kde' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/raport/gambas2/gb.qt.kde' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/raport/gambas2' make: *** [all] Error 2 i configured it using the suggestion inreadme.redhat file i.e. ./configure --with-qt-includes=/home/raport/qt/include --with-qt-libraries=/home/raport/qt/lib --with-moc=/home/raport/qt/bin --prefix=/usr/local/gambas2 likewise, would it be possible to have two gambas installations in one computer - one the stable and the other the development version ? thanks for any adivice. ramon --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe1962 at ...626... Mon Jul 31 06:04:27 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Mon, 31 Jul 2006 00:04:27 -0400 Subject: [Gambas-user] error in gambas2-1.9.33 In-Reply-To: <20060731034818.87936.qmail@...1304...> References: <20060731034818.87936.qmail@...1304...> Message-ID: <6c208f950607302104v46f52d52p3c750b2e55df7371@...627...> On 7/30/06, Ramon Orticio wrote: > dear friends, > > > likewise, would it be possible to have two gambas installations in one > computer - one the stable and the other the development version ? > Yes, I have 1.0.15 and 1.9.32 set up on my VectorLinux install, since I have some apps I'm developing that I haven't ported to the development version yet. Regards, Joe1962 From rporticio at ...43... Mon Jul 31 08:22:30 2006 From: rporticio at ...43... (Ramon Orticio) Date: Sun, 30 Jul 2006 23:22:30 -0700 (PDT) Subject: [Gambas-user] program has stopped unexpectedly raising signal #11 Message-ID: <20060731062230.54965.qmail@...1034...> dear friends, i copied DataReportExample using gambas1.0.16 and disabled the gb.qt.kde and gb.qt.kde.html components and when i ran it the startup form Fconn popped up successfully without the error signal (program has stopped unexpectedly by rasing signal #11). however the entire program will not run because of the disabled components. i also copied the database example which is running well. i included the two above-mentioned components using the properties in the menu bar and run the same program which then resulted to the error message. i think there is something wrong with the said components i.e gb.qt.kde.html and gb.qt.kde which possibly might be the cause of the error in installing gambas2-1.9.33 that i already reported earlier. what possibly would be the remedy for this problem? i am using redhat 9 distro. i also downloaded and installed qt-x11-free-3.3.3.tar.bz2 using the following commands $ cd qt $ ./configure -thread --prefix=/home/raport/qt $ export LD_LIBRARY_PATH=/home/raport/qt/lib $ /usr/bin/gmake $ su ... $ /usr/bin/gmake -n install $ exit thanks for your concern. ramon --------------------------------- See the all-new, redesigned Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Jul 31 12:44:36 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 12:44:36 +0200 Subject: [Gambas-user] program has stopped unexpectedly raising signal #11 In-Reply-To: <20060731062230.54965.qmail@...1034...> References: <20060731062230.54965.qmail@...1034...> Message-ID: <200607311244.36229.gambas@...1...> On Monday 31 July 2006 08:22, Ramon Orticio wrote: > dear friends, > > i copied DataReportExample using gambas1.0.16 and disabled the gb.qt.kde > and gb.qt.kde.html components and when i ran it the startup form Fconn > popped up successfully without the error signal (program has stopped > unexpectedly by rasing signal #11). however the entire program will not run > because of the disabled components. > > i also copied the database example which is running well. i included the > two above-mentioned components using the properties in the menu bar and run > the same program which then resulted to the error message. > > i think there is something wrong with the said components i.e > gb.qt.kde.html and gb.qt.kde which possibly might be the cause of the > error in installing gambas2-1.9.33 that i already reported earlier. > > what possibly would be the remedy for this problem? > > i am using redhat 9 distro. i also downloaded and installed > qt-x11-free-3.3.3.tar.bz2 using the following commands > > $ cd qt > $ ./configure -thread --prefix=/home/raport/qt > $ export LD_LIBRARY_PATH=/home/raport/qt/lib > $ /usr/bin/gmake > $ su > ... > $ /usr/bin/gmake -n install > $ exit > > > thanks for your concern. > > ramon > > On gambas 1.0.16, the program crashes during initialization inside the KDE library. In gambas 1.9.33, the program does not compile because I used an API that does not exits in your version of KDE. Which version of KDE do you use? Maybe you will have to upgrade there too! Regards, -- Benoit Minisini From gambas at ...1... Mon Jul 31 12:45:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 12:45:10 +0200 Subject: [Gambas-user] User Defined Types..(UDT) In-Reply-To: <44CD87C4.1020300@...981...> References: <44CD87C4.1020300@...981...> Message-ID: <200607311245.10433.gambas@...1...> On Monday 31 July 2006 06:32, sbungay wrote: > Are there plans to implement these in the future? > Yes. But I don't know when exactly... -- Benoit Minisini From gambas at ...1... Mon Jul 31 14:29:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 14:29:10 +0200 Subject: [Gambas-user] Unix Date conversion In-Reply-To: References: Message-ID: <200607311429.10501.gambas@...1...> On Saturday 29 July 2006 17:42, Timothy Marshal-Nichols wrote: > > But "_exit" does not appear to *ever* get called. If you add: > > STATIC PUBLIC SUB _exit() > PRINT "Static Destructor" > END > > to a class you never see the text printed! So how can you use this method? > > (Slipped of the subject of UNIX data a bit.) > Actually you are right. I disabled _exit() and _free() when the class is written in Gambas. I disabled _free(), because it was executed in a context where not everything is possible: the object is being destroyed, but what happens if you reference it again? And what happens is an error is raised inside _free()? And so on... I disabled _exit(), for about the same reasons, as _exit() is for class what _free() is for objects. I have no solution at the moment for this bad non symmetrical design :-( Regards, -- Benoit Minisini From sbungay at ...981... Mon Jul 31 19:19:27 2006 From: sbungay at ...981... (sbungay) Date: Mon, 31 Jul 2006 13:19:27 -0400 Subject: [Gambas-user] Database Administrator Message-ID: <44CE3B9F.2010701@...981...> This tool suddenly stopped working. It presents a grey blank window. I can add a new server or have it scan for database servers and the greyness remains. Bug? From gambas at ...1... Mon Jul 31 20:27:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 20:27:47 +0200 Subject: [Gambas-user] Database Administrator In-Reply-To: <44CE3B9F.2010701@...981...> References: <44CE3B9F.2010701@...981...> Message-ID: <200607312027.47939.gambas@...1...> On Monday 31 July 2006 19:19, sbungay wrote: > This tool suddenly stopped working. It presents a grey blank window. > I can add a new server or have it scan for database servers and the > greyness remains. Bug? > Which version of gambas do you use? Do you have a screenshot? -- Benoit Minisini From sbungay at ...981... Mon Jul 31 22:13:55 2006 From: sbungay at ...981... (sbungay) Date: Mon, 31 Jul 2006 16:13:55 -0400 Subject: [Gambas-user] Database Administrator In-Reply-To: <200607312027.47939.gambas@...1...> References: <44CE3B9F.2010701@...981...> <200607312027.47939.gambas@...1...> Message-ID: <44CE6483.8010902@...981...> V 1.9.35 Snapshot attached. Benoit Minisini wrote: > On Monday 31 July 2006 19:19, sbungay wrote: > >> This tool suddenly stopped working. It presents a grey blank window. >>I can add a new server or have it scan for database servers and the >>greyness remains. Bug? >> > > > Which version of gambas do you use? Do you have a screenshot? > -------------- next part -------------- A non-text attachment was scrubbed... Name: DeadDatabaseManager.png Type: image/png Size: 140244 bytes Desc: not available URL: From Karl.Reinl at ...9... Mon Jul 31 22:06:00 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 31 Jul 2006 22:06:00 +0200 Subject: [Gambas-user] Database Administrator In-Reply-To: <44CE3B9F.2010701@...981...> References: <44CE3B9F.2010701@...981...> Message-ID: <1154376361.5312.12.camel@...1496...> Am Montag, den 31.07.2006, 13:19 -0400 schrieb sbungay: Salut, first I thought it is the GDM (gambas databasemanager) but it is a tool you'v writen. Why you send a screenshot and not the project... suddenly stoped working ... what ??? a do while True loop also stops the work. Please, if you have problems with project writen by your self, send the source-code, or if that is toooooooo secret don't write. But : 'This tool suddenly stopped working.' serves nothing to nobody. Sorry for my bad english , german and so on, but not for my anger. Amicalment Charlie > This tool suddenly stopped working. It presents a grey blank window. > I can add a new server or have it scan for database servers and the > greyness remains. Bug? > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jul 31 22:21:42 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 22:21:42 +0200 Subject: [Gambas-user] Database Administrator In-Reply-To: <1154376361.5312.12.camel@...1496...> References: <44CE3B9F.2010701@...981...> <1154376361.5312.12.camel@...1496...> Message-ID: <200607312221.42434.gambas@...1...> On Monday 31 July 2006 22:06, Charlie Reinl wrote: > Am Montag, den 31.07.2006, 13:19 -0400 schrieb sbungay: > Salut, > > first I thought it is the GDM (gambas databasemanager) > but it is a tool you'v writen. > No, it is the gambas database manager, unless Steve has made a program with exactly the same title :-) -- Benoit Minisini From Karl.Reinl at ...9... Mon Jul 31 22:33:09 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 31 Jul 2006 22:33:09 +0200 Subject: [Gambas-user] Database Administrator In-Reply-To: <200607312221.42434.gambas@...1...> References: <44CE3B9F.2010701@...981...> <1154376361.5312.12.camel@...1496...> <200607312221.42434.gambas@...1...> Message-ID: <1154377990.8885.5.camel@...1496...> Am Montag, den 31.07.2006, 22:21 +0200 schrieb Benoit Minisini: Salut Beno?t, this time I don't understand you! 'No, it is the gambas database manager' means it is the 'gambas database manager' 'unless Steve has made a program with ...' means that it is NOT the 'gambas database manager' am I right ? So I keep on to say : do while true/loop freece a project Amicalment Charlie > exactly the same title > On Monday 31 July 2006 22:06, Charlie Reinl wrote: > > Am Montag, den 31.07.2006, 13:19 -0400 schrieb sbungay: > > Salut, > > > > first I thought it is the GDM (gambas databasemanager) > > but it is a tool you'v writen. > > > > No, it is the gambas database manager, unless Steve has made a program with > exactly the same title :-) > From gambas at ...1... Mon Jul 31 23:44:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 Jul 2006 23:44:15 +0200 Subject: [Gambas-user] An open question Message-ID: <200607312344.16147.gambas@...1...> How can I reliably detect that a Gambas program run on a KDE desktop or on a GNOME desktop? If anyone has a clue... -- Benoit Minisini