[Gambas-user] found some problems in gabmas2
Salut, The first is easy to reproduce: - working with gambas-DBmanager if you navigate by keys to an empty field, which is not to fill ('length' behind 'Float') the app crash. Same if you press in such a field any key. Second : in the IDE Some times my apps don't start (the form don't raise) after pressing F5. [Stop] in toolbar is active. Happens after several starts by F5. Third : Is more a question in printer.Setup() if I opt for 'Print range' and make 'From page' = 1 and 'To page' = 1, ( there are 2 pages) who controls that ? If that should be done by gambas2, it don't work. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease=Ubuntu 8.04.3 LTS [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.17.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 - gambas --- gbx-1.0.17 /usr/bin/gbx - gambas2 -- 2.17.0 Revision: 2381 /usr/local/bin/gbx2 - gambas3 -- 2.99.0 Revision: 2381 /usr/local/bin/gbx3 -- Amicalment Charlie -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
I don't know which Mysql driver gambas use, but you need to add it to the dep list of the deb to be sure when you install the dep it install the mysql driver too 2009/10/5 Robert JUHASZ robert1juh...@gmail.com: Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi 2009/10/1 Charlie Reinl karl.re...@fen-net.de Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: Hello, I'm not very far from being able to test my first Gambas application. It works from the IDE, also the executable on my PC. I try to make a package to test it on a virgin ubuntu but I haven't succeeded. I got an error message like that: - Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... sh: fakeroot: not found The package build has failed. Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. - Is there anything misiing from my system, I made a mistake or is this a bug? Thanks for your help. Robi Salut Robi, I think you have to install fakeroot -- Amicalment Charlie -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Cordially. Small Eric Quotations of the days: --- I have no special talents. I am only passionately curious -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
I had the same problem. Solution: download that package.deb and distribute with your application. Add a little install.sh who installs both .debs and all is ok. 2009/10/5 Petit Eric surfz...@gmail.com I don't know which Mysql driver gambas use, but you need to add it to the dep list of the deb to be sure when you install the dep it install the mysql driver too 2009/10/5 Robert JUHASZ robert1juh...@gmail.com: Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi 2009/10/1 Charlie Reinl karl.re...@fen-net.de Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: Hello, I'm not very far from being able to test my first Gambas application. It works from the IDE, also the executable on my PC. I try to make a package to test it on a virgin ubuntu but I haven't succeeded. I got an error message like that: - Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... sh: fakeroot: not found The package build has failed. Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. - Is there anything misiing from my system, I made a mistake or is this a bug? Thanks for your help. Robi Salut Robi, I think you have to install fakeroot -- Amicalment Charlie -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Cordially. Small Eric Quotations of the days: --- I have no special talents. I am only passionately curious -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Jorge Carrión a écrit : I had the same problem. Solution: download that package.deb and distribute with your application. Add a little install.sh who installs both .debs and all is ok. Fortunately, you don't need that under Debian; you have 2 solutions: * For a small number of dependencies, you have special fields in the package that each address a list: Null, Suggest, Recommend Depend, Depend oblige the depending package(s) to be installed at the same time of yours (solution that Petit Eric told you about), * For a large number of dependencies, you can create an emty meta-package that only contains the needeed links as described above. HTH JY -- The most important service rendered by the press is that of educating people to approach printed matter with distrust. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Hi, It's no more just a packaging problem, even Gambas doesn't start up. After re-installing gambas it gives the same error message (ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library..). It is very embarrasseing as I don't know what to do now. If I reinstall ubuntu + gambas, probably will run again, but I don't know why it happened and how to avoid it to come back. By the way, once I installed someting (like gambas itself or my application) how can I uninstall it? I can't see them in the Synaptick Package Manager. :-( Robi 2009/10/5, Benoît Minisini gam...@users.sourceforge.net: Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi If you want your project to depend on the mysql driver, you must explicitely check it in the project property dialog, provided that your gambas version is high enough (= 2.14). Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TextEdit copyPaste and removal of hyper tags
Benoît Minisini wrote: Thanks for replying. Why don't you use the Text property instead, that normally returns the text without the tags? No it doesn't (?). By 'Text property' I assume you mean TextEdit.Text. TextEdit.Text will contain tags as soon as the control gets edited or TextEdit.text is assigned. That's fine, it's what it's supposed to do. I use the tags, but I also want to extract the plain text (with all UTF-8 codes preserved). New example. For the purpose of this example I pasted the comment “abc” into the TextEdit control and then clicked 'Button1'. I added PRINTs for stuff I thought interesting. PUBLIC SUB Button1_Click() ' “abc” TextEdit1.SelectAll() TextEdit1.Copy() PRINT Clipboard.Paste() PRINT TextEdit1.Text PRINT Clipboard.Type PRINT Clipboard.format PRINT Clipboard.formats[0] PRINT Clipboard.formats[1] PRINT Clipboard.formats[2] PRINT Clipboard.formats[3] END Console: ?abc? htmlheadmeta name=qrichtext content=1 //headbody style=font-size:12pt;font-family:Helvetica p“abc”/p /body/html 1 text/plain text/plain;charset=UTF-8 text/plain;charset=ISO-10646-UCS-2 text/plain application/x-qrichtext ?abc? is the copypaste output. Next is 'TextEdit1.Text' (with tags). 1 belongs to Clipboard.Type etc ... Did you look at all the different format that could be stored in the clipboard after .Copy() and before .Paste()? I looked at Clipboard (gb.qt) documentation again. This time I noticed that Clipboard Paste offers the optional argument Format. Sounds promising but doesn't appear to do what I want. I edited the example above and tried each of the four mime types to see what would happen: Clipboard.Paste(text/plain;charset=UTF-8) Clipboard.Paste(text/plain;charset=ISO-10646-UCS-2) Clipboard.Paste(text/plain) Clipboard.Paste(application/x-qrichtext) The first two produces no printout while the last two produces the same printout as plain Clipboard.Paste() i.e. the printout: ?abc?. In the original post I indicated that special character ö 'works' with CopyPaste. Well, sort of. The UTF-8 code for ö hex C3 B6 gets transformed to dec 246. Which had me headscratching until I found that 246 is HTML code for ö. See http://personalwebs.oakland.edu/~grossman/ascii.codes.html here . So either 'clipboard.paste' or 'textedit.copy', transforms from UTF-8 to HTML code. Maybe I will find some time to make a new rich text editor control based on a Qt 4 widget for Gambas 3. Anyway, I don't see a lot of solutions for your problem! I can always parse 'TextEdit.Text' and remove tags 'manually'. I'm fine with that. 'TextArea' control behaves the same. So whatever it is is common to TextEdit and TextArea. stderr -- View this message in context: http://www.nabble.com/TextEdit-copy-Paste-and-removal-of-hyper-tags-tp25666934p25751932.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user