From whoknowz at ...626... Mon Mar 1 04:10:36 2010 From: whoknowz at ...626... (Ahmed Nashith) Date: Sun, 28 Feb 2010 19:10:36 -0800 (PST) Subject: [Gambas-user] Invitation to connect on LinkedIn Message-ID: <360206412.3079325.1267413036092.JavaMail.app@...2325...> LinkedIn ------------Ahmed Nashith souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Joan Luc?, I'd like to add you to my professional network on LinkedIn. - Ahmed Accepter l'invitation de Ahmed Nashith http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I568293109_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVc34Pej8Udzl9bTtKcjp9p7xRbPkTcPkVc30Ncj4LrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de Ahmed Nashith http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I568293109_3/0PnPAMcjcVczwSdkALqnpPbOYWrSlI/svi/ ------------------------------------------ SAVEZ-VOUS que votre profil LinkedIn vous permet de contr?ler votre image professionnelle sur le Web?? Si vous le rendez "public", votre profil LinkedIn appara?tra quand un internaute effectuera une recherche en ligne sur votre nom. Soignez votre image sur le Web?! http://www.linkedin.com/e/ewp/inv-22/ ------ (c) 2010, LinkedIn Corporation From nando_f at ...951... Mon Mar 1 08:12:49 2010 From: nando_f at ...951... (nando) Date: Mon, 1 Mar 2010 02:12:49 -0500 Subject: [Gambas-user] Invitation to connect on LinkedIn In-Reply-To: <360206412.3079325.1267413036092.JavaMail.app@...2325...> References: <360206412.3079325.1267413036092.JavaMail.app@...2325...> Message-ID: <20100301071233.M13543@...951...> The invitation went to everyone on the list. ---------- Original Message ----------- From: Ahmed Nashith To: Joan Luc? Lab?rda Sent: Sun, 28 Feb 2010 19:10:36 -0800 (PST) Subject: [Gambas-user] Invitation to connect on LinkedIn > LinkedIn > ------------Ahmed Nashith souhaite se connecter ? vous sur LinkedIn : > ------------------------------------------ > > Joan Luc?, > > I'd like to add you to my professional network on LinkedIn. > > - Ahmed > > Accepter l'invitation de Ahmed Nashith > http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I568293109_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVc34Pej8Udzl9bTtKcjp9p7xRbPkTcPkVc30Ncj4LrCBxbOYWrSlI/EML_comm_afe/ > > Voir l'invitation de Ahmed Nashith > http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I568293109_3/0PnPAMcjcVczwSdkALqnpPbOYWrSlI/svi/ > > ------------------------------------------ > SAVEZ-VOUS que votre profil LinkedIn vous permet de contr?ler votre image > professionnelle sur le Web ? Si vous le rendez "public", votre profil LinkedIn > appara?tra quand un internaute effectuera une recherche en ligne sur votre nom. > Soignez votre image sur le Web ! http://www.linkedin.com/e/ewp/inv-22/ > > ------ > (c) 2010, LinkedIn Corporation > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From peter.talken at ...1879... Mon Mar 1 13:26:42 2010 From: peter.talken at ...1879... (Peter Landgren) Date: Mon, 1 Mar 2010 13:26:42 +0100 Subject: [Gambas-user] Compile problem with 2.0 svn Message-ID: <201003011326.43556.peter.talken@...1879...> Hi, Did svn up and tried to compile Gambas 2 as usual, but make runs into error: Making all in gbx make[4]: Entering directory `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT - I/usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/include/ -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. make[4]: *** [gb_la-gbx_c_class.lo] Fel 63 make[4]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' make[3]: *** [all-recursive] Fel 1 make[3]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' make[2]: *** [all] Fel 2 make[2]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' make[1]: *** [all-recursive] Fel 1 make[1]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0' make: *** [all] Fel 2 I have libtool 2.2.6b installed. Any hint? I did the same with Gambas 3 and it compiled without any problem /Peter Landgren From gambas at ...1... Mon Mar 1 15:55:18 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Mar 2010 15:55:18 +0100 Subject: [Gambas-user] Compile problem with 2.0 svn In-Reply-To: <201003011326.43556.peter.talken@...1879...> References: <201003011326.43556.peter.talken@...1879...> Message-ID: <201003011555.18761.gambas@...1...> > Hi, > Did svn up and tried to compile Gambas 2 as usual, but make runs into > error: > > Making all in gbx > make[4]: Entering directory > `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' /bin/sh ../libtool > --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe > -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g > -Os -I../share -D_REENTRANT - > I/usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/include/ -O0 -MT > gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o > gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c > libtool: Version mismatch error. This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > libtool: and run autoconf again. > make[4]: *** [gb_la-gbx_c_class.lo] Fel 63 > make[4]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' > make[3]: *** [all-recursive] Fel 1 > make[3]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' > make[2]: *** [all] Fel 2 > make[2]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' > make[1]: *** [all-recursive] Fel 1 > make[1]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0' > make: *** [all] Fel 2 > > I have libtool 2.2.6b installed. > > Any hint? > > I did the same with Gambas 3 and it compiled without any problem > > /Peter Landgren > Did you try a ./reconf before? -- Beno?t Minisini From peter.talken at ...1879... Mon Mar 1 16:00:36 2010 From: peter.talken at ...1879... (Peter Landgren) Date: Mon, 1 Mar 2010 16:00:36 +0100 Subject: [Gambas-user] Compile problem with 2.0 svn In-Reply-To: <201003011555.18761.gambas@...1...> References: <201003011326.43556.peter.talken@...1879...> <201003011555.18761.gambas@...1...> Message-ID: <201003011600.37354.peter.talken@...1879...> Den Monday 01 March 2010 15.55.18 skrev Beno?t Minisini: > > Hi, > > Did svn up and tried to compile Gambas 2 as usual, but make runs into > > error: > > > > Making all in gbx > > make[4]: Entering directory > > `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' /bin/sh ../libtool > > --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO > > -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char > > -fvisibility=hidden -g -Os -I../share -D_REENTRANT - > > I/usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/include/ -O0 -MT > > gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o > > gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c > > libtool: Version mismatch error. This is libtool 2.2.6, but the > > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > > libtool: and run autoconf again. > > make[4]: *** [gb_la-gbx_c_class.lo] Fel 63 > > make[4]: Leaving directory > > `/home/progdev/SVN-projekt/gambas2/2.0/main/gbx' make[3]: *** > > [all-recursive] Fel 1 > > make[3]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' > > make[2]: *** [all] Fel 2 > > make[2]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0/main' > > make[1]: *** [all-recursive] Fel 1 > > make[1]: Leaving directory `/home/progdev/SVN-projekt/gambas2/2.0' > > make: *** [all] Fel 2 > > > > I have libtool 2.2.6b installed. > > > > Any hint? > > > > I did the same with Gambas 3 and it compiled without any problem > > > > /Peter Landgren > > Did you try a ./reconf before? yes, I ran this script: ./reconf-all ./configure -C make su -c "make install" exit /Peter From gambas at ...1... Mon Mar 1 16:23:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 1 Mar 2010 16:23:35 +0100 Subject: [Gambas-user] Release of Gambas 2.20 Message-ID: <201003011623.35159.gambas@...1...> Hi, Here is a new release of the stable version. This release fixes a lot of bugs in the interpreter, the development environment, the GUI components... Most noteworthy are: * The Debian and Ubuntu packaging should work correctly now. * RDir() handles too long paths correctly. * The CR / NL input conversion flags is cleared when initializing a serial port. * Using gb.desktop made the interpreter crash at exit in some cases. * In gb.qt, TreeView.Count and ColumnView.Count now return the number of items in the view like in gb.gtk, not just the number of root items. * ComboBox now raises the Click event when it gets its first element, because that element is automatically selected. Beware that the two previous changes may introduce a little backward incompatibility in your projects! The full changelog then: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Always correctly round control coordinates in the form editor when the form Scaled property is set. * BUG: Clicking on the "About component" button in the project property dialog cannot crash anymore. * BUG: Fix the packager for Debian and Ubuntu distributions. [INTERPRETER] * BUG: Never display newlines inside error message, the debugger does not like them. * BUG: Correctly detect out of memory errors when creating big arrays. * BUG: Use the system maximum path length constant, not ours. * BUG: Do not crash if a RDir() finds a too long path. * BUG: Fix string charset conversion routine API. * BUG: DateAdd() now does not fail anymore when substracting months up to January. * BUG: Allow a dynamic class to inherit a native static class without crashing. [COMPILER] * BUG: Use the system maximum path length constant, not ours. * BUG: Allow INHERITS to be followed by any identifier. [INFORMER] * BUG: Use the system maximum path length constant, not ours. [GB.DEBUG] * BUG: Use the system maximum path length constant, not ours. [GB.DESKTOP] * BUG: Prevent gb.desktop from being unloaded by the interpreter. Otherwise there is a risk that the libxtst library is unloaded before the libx11 library, which leads to a crash. [GB.FORM] * BUG: Clicking inside the FontChooser style ListBox now always works correctly. * BUG: Right and bottom SidePanels now shrink as expected when their parent container has no arrangement. * BUG: In DateChooser, switching to February works now, when there is 28 days in February and the current day is greater or equal than 29. [GB.GTK] * BUG: Prevent a crash when creating an Image or a Picture with incorrect constructor arguments. * BUG: Move the window before showing it, so that it does not flicker. * BUG: When a modal window is running, only it can be closing from the window manager close button. * BUG: Popup menus now grab events correctly. * BUG: Store last event time for all low-level events, not just for mouse events. * BUG: Dialog.OpenFile does not use Dialog.Path as default file anymore if Dialog.Path is a directory. * BUG: Modal windows are really modal. * BUG: Try to prevent a possible crash in event management. * BUG: Fix the Key[] array accessor, so that it (almost) works like gb.qt. [GB.NET] * BUG: Clear the CR / NL input conversion flags when initializing a serial port. [GB.PDF] * BUG: PdfDocument.Find() now works correctly. * BUG: PDF indexes should be read correctly now. [GB.QT] * BUG: Setting MovieBox Path property to NULL does not fail anymore. * BUG: Do not try to reparent a window in its Show() method when it is already visible. * BUG: Remove debugging messages. * BUG: Fix a possible crash in the MovieBox class due to the previous changes. * BUG: TreeView.Count and ColumnView.Count now return the number of items in the view like in gb.gtk, not just the number of root items. * BUG: Ignore disabled tab when using the mouse wheel on TabStrip. * BUG: Some text alignment flags were not correctly detected. * BUG: The ComboBox now raises its click event when it gets its first element, because that element is automatically selected. * BUG: Fix an infinite recursion in previous commit. [GB.SDL.SOUND] * BUG: Music.Pos now returns 0 when the music is stopped, and not the position of the last pause. [GB.XML.RPC] * BUG: Use CR+LF as end-of-line in the XML/RPC server. ------------------------------------------------------------------------------- Enjoy it! -- Beno?t Minisini From bill at ...2351... Mon Mar 1 21:20:45 2010 From: bill at ...2351... (Bill Richman) Date: Mon, 01 Mar 2010 14:20:45 -0600 Subject: [Gambas-user] Release of Gambas 2.20 In-Reply-To: <201003011623.35159.gambas@...1...> References: <201003011623.35159.gambas@...1...> Message-ID: <4B8C219D.6040807@...2350...> Thanks, Benoit. I just installed it and it seems to work fine. I appreciate all your hard work. :-) -Bill Bill Richman - Lincoln, Nebraska Tilter at windmills, maker of pies in the sky, & curmudgeon email: bill at ...2350... web: www.geektrap.com Beno?t Minisini wrote: > Hi, > > Here is a new release of the stable version. > > This release fixes a lot of bugs in the interpreter, the development > environment, the GUI components... Most noteworthy are: > > * The Debian and Ubuntu packaging should work correctly now. > > * RDir() handles too long paths correctly. > > * The CR / NL input conversion flags is cleared when initializing a serial > port. > > * Using gb.desktop made the interpreter crash at exit in some cases. > > * In gb.qt, TreeView.Count and ColumnView.Count now return the number of items > in the view like in gb.gtk, not just the number of root items. > > * ComboBox now raises the Click event when it gets its first element, because > that element is automatically selected. > > Beware that the two previous changes may introduce a little backward > incompatibility in your projects! > > The full changelog then: > > ------------------------------------------------------------------------------- > > [DEVELOPMENT ENVIRONMENT] > * BUG: Always correctly round control coordinates in the form editor when > the form Scaled property is set. > * BUG: Clicking on the "About component" button in the project property > dialog cannot crash anymore. > * BUG: Fix the packager for Debian and Ubuntu distributions. > > [INTERPRETER] > * BUG: Never display newlines inside error message, the debugger does not > like them. > * BUG: Correctly detect out of memory errors when creating big arrays. > * BUG: Use the system maximum path length constant, not ours. > * BUG: Do not crash if a RDir() finds a too long path. > * BUG: Fix string charset conversion routine API. > * BUG: DateAdd() now does not fail anymore when substracting months up to > January. > * BUG: Allow a dynamic class to inherit a native static class without > crashing. > > [COMPILER] > * BUG: Use the system maximum path length constant, not ours. > * BUG: Allow INHERITS to be followed by any identifier. > > [INFORMER] > * BUG: Use the system maximum path length constant, not ours. > > [GB.DEBUG] > * BUG: Use the system maximum path length constant, not ours. > > [GB.DESKTOP] > * BUG: Prevent gb.desktop from being unloaded by the interpreter. Otherwise > there is a risk that the libxtst library is unloaded before the libx11 > library, which leads to a crash. > > [GB.FORM] > * BUG: Clicking inside the FontChooser style ListBox now always works > correctly. > * BUG: Right and bottom SidePanels now shrink as expected when their parent > container has no arrangement. > * BUG: In DateChooser, switching to February works now, when there is 28 > days in February and the current day is greater or equal than 29. > > [GB.GTK] > * BUG: Prevent a crash when creating an Image or a Picture with incorrect > constructor arguments. > * BUG: Move the window before showing it, so that it does not flicker. > * BUG: When a modal window is running, only it can be closing from the > window manager close button. > * BUG: Popup menus now grab events correctly. > * BUG: Store last event time for all low-level events, not just for mouse > events. > * BUG: Dialog.OpenFile does not use Dialog.Path as default file anymore if > Dialog.Path is a directory. > * BUG: Modal windows are really modal. > * BUG: Try to prevent a possible crash in event management. > * BUG: Fix the Key[] array accessor, so that it (almost) works like gb.qt. > > [GB.NET] > * BUG: Clear the CR / NL input conversion flags when initializing a serial > port. > > [GB.PDF] > * BUG: PdfDocument.Find() now works correctly. > * BUG: PDF indexes should be read correctly now. > > [GB.QT] > * BUG: Setting MovieBox Path property to NULL does not fail anymore. > * BUG: Do not try to reparent a window in its Show() method when it is > already visible. > * BUG: Remove debugging messages. > * BUG: Fix a possible crash in the MovieBox class due to the previous > changes. > * BUG: TreeView.Count and ColumnView.Count now return the number of items > in the view like in gb.gtk, not just the number of root items. > * BUG: Ignore disabled tab when using the mouse wheel on TabStrip. > * BUG: Some text alignment flags were not correctly detected. > * BUG: The ComboBox now raises its click event when it gets its first > element, because that element is automatically selected. > * BUG: Fix an infinite recursion in previous commit. > > [GB.SDL.SOUND] > * BUG: Music.Pos now returns 0 when the music is stopped, and not the > position of the last pause. > > [GB.XML.RPC] > * BUG: Use CR+LF as end-of-line in the XML/RPC server. > > ------------------------------------------------------------------------------- > > Enjoy it! > > From keithclark at ...2185... Mon Mar 1 22:22:58 2010 From: keithclark at ...2185... (Keith Clark) Date: Mon, 01 Mar 2010 16:22:58 -0500 Subject: [Gambas-user] MySQL and general data issues Message-ID: <1267478578.18718.3.camel@...2186...> I am trying to access some data using the documentation "A Beginner's Guide to Gambas" and I've gotten this far: PUBLIC SUB SearchButton_Click() DIM $Query AS String DIM $Result AS Result DIM iIndex AS Integer DIM hField AS ResultField DatabaseConnection.Connect() $Query = "select products.products_model as ISBN, products_description.products_name AS Title, manufacturers.manufacturers_name AS Author, categories_description.categories_name AS Genre, products.products_quantity AS Quantity FROM products Left join products_description on products.products_id = products_description.products_id Left join manufacturers on products.manufacturers_id = manufacturers.manufacturers_id Left join products_to_categories on products.products_id = products_to_categories.products_id Left join categories_description on products_to_categories.categories_id = categories_description.categories_id where products_description.products_name LIKE '%blue%'" $Result = DatabaseConnection.$Con.Exec($Query) TitleSearchTableView.Rows.count = 0 TitleSearchTableView.Columns.Count = $Result.Fields.Count FOR EACH hField IN $Result.Fields WITH hField TitleSearchTableView.Columns[iIndex].Text = .Name TitleSearchTableView.Columns[iIndex].Width = WidthFromType(TitleSearchTableView, .Type, .Length, .Name) END WITH INC iIndex NEXT But I get an error: Unknown identifier: WidthFromType Not sure what I'm doing wrong here. Maybe just not understanding it well enough yet. Keith From Karl.Reinl at ...2345... Mon Mar 1 23:36:51 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 01 Mar 2010 23:36:51 +0100 Subject: [Gambas-user] MySQL and general data issues In-Reply-To: <1267478578.18718.3.camel@...2186...> References: <1267478578.18718.3.camel@...2186...> Message-ID: <1267483011.6514.7.camel@...40...> Am Montag, den 01.03.2010, 16:22 -0500 schrieb Keith Clark: > I am trying to access some data using the documentation "A Beginner's > Guide to Gambas" and I've gotten this far: > > PUBLIC SUB SearchButton_Click() > > DIM $Query AS String > DIM $Result AS Result > DIM iIndex AS Integer > DIM hField AS ResultField > > DatabaseConnection.Connect() > > $Query = "select products.products_model as ISBN, > products_description.products_name AS Title, > manufacturers.manufacturers_name AS Author, > categories_description.categories_name AS Genre, > products.products_quantity AS Quantity FROM products Left join > products_description on products.products_id = > products_description.products_id Left join manufacturers on > products.manufacturers_id = manufacturers.manufacturers_id Left join > products_to_categories on products.products_id = > products_to_categories.products_id Left join categories_description on > products_to_categories.categories_id = > categories_description.categories_id where > products_description.products_name LIKE '%blue%'" > $Result = DatabaseConnection.$Con.Exec($Query) > TitleSearchTableView.Rows.count = 0 > TitleSearchTableView.Columns.Count = $Result.Fields.Count > FOR EACH hField IN $Result.Fields > WITH hField > TitleSearchTableView.Columns[iIndex].Text = .Name > TitleSearchTableView.Columns[iIndex].Width = > WidthFromType(TitleSearchTableView, .Type, .Length, .Name) > END WITH > INC iIndex > NEXT > > But I get an error: > > Unknown identifier: WidthFromType > > Not sure what I'm doing wrong here. Maybe just not understanding it > well enough yet. > > Keith Salut Keith, you have to look for the function "WidthFromType" which returns the width for the field. Should be in the example. If you can't find it, a workaround could be this: replace : TitleSearchTableView.Columns[iIndex].Width = WidthFromType(TitleSearchTableView, .Type, .Length, .Name) by TitleSearchTableView.Columns[iIndex].Width = 50 Or/and look if you don't have a typo !? -- Amicalement Charlie From keithclark at ...2185... Mon Mar 1 23:55:23 2010 From: keithclark at ...2185... (Keith Clark) Date: Mon, 01 Mar 2010 17:55:23 -0500 Subject: [Gambas-user] MySQL and general data issues In-Reply-To: <1267483011.6514.7.camel@...40...> References: <1267478578.18718.3.camel@...2186...> <1267483011.6514.7.camel@...40...> Message-ID: <1267484123.18718.6.camel@...2186...> On Mon, 2010-03-01 at 23:36 +0100, Charlie Reinl wrote: > Am Montag, den 01.03.2010, 16:22 -0500 schrieb Keith Clark: > > I am trying to access some data using the documentation "A Beginner's > > Guide to Gambas" and I've gotten this far: > > > > PUBLIC SUB SearchButton_Click() > > > > DIM $Query AS String > > DIM $Result AS Result > > DIM iIndex AS Integer > > DIM hField AS ResultField > > > > DatabaseConnection.Connect() > > > > $Query = "select products.products_model as ISBN, > > products_description.products_name AS Title, > > manufacturers.manufacturers_name AS Author, > > categories_description.categories_name AS Genre, > > products.products_quantity AS Quantity FROM products Left join > > products_description on products.products_id = > > products_description.products_id Left join manufacturers on > > products.manufacturers_id = manufacturers.manufacturers_id Left join > > products_to_categories on products.products_id = > > products_to_categories.products_id Left join categories_description on > > products_to_categories.categories_id = > > categories_description.categories_id where > > products_description.products_name LIKE '%blue%'" > > $Result = DatabaseConnection.$Con.Exec($Query) > > TitleSearchTableView.Rows.count = 0 > > TitleSearchTableView.Columns.Count = $Result.Fields.Count > > FOR EACH hField IN $Result.Fields > > WITH hField > > TitleSearchTableView.Columns[iIndex].Text = .Name > > TitleSearchTableView.Columns[iIndex].Width = > > WidthFromType(TitleSearchTableView, .Type, .Length, .Name) > > END WITH > > INC iIndex > > NEXT > > > > But I get an error: > > > > Unknown identifier: WidthFromType > > > > Not sure what I'm doing wrong here. Maybe just not understanding it > > well enough yet. > > > > Keith > > Salut Keith, > > you have to look for the function "WidthFromType" which returns the > width for the field. Should be in the example. > If you can't find it, a workaround could be this: > replace : TitleSearchTableView.Columns[iIndex].Width = > WidthFromType(TitleSearchTableView, .Type, .Length, .Name) > by > TitleSearchTableView.Columns[iIndex].Width = 50 > > Or/and look if you don't have a typo !? > Charlie, Thanks! Got it. Still other issues with it but I'm afraid I'm burned out with learning for today! Keith From kobolds at ...2041... Tue Mar 2 00:01:51 2010 From: kobolds at ...2041... (kobolds) Date: Mon, 1 Mar 2010 15:01:51 -0800 (PST) Subject: [Gambas-user] suggestion of make option Message-ID: <27750271.post@...1379...> this idea is from one of the program I previous used when I compile and make program , there is an option which allow me to include or not include the runtime framework or select which to include into one executable. of course the down side for this is the executable file will be big . \ when I run the executable file , first it will extract the framework dll in the same folder of the executable then run the program. the advantages is 1) I don't need to worry of compatible issue if I have 2 program from different version of framework running in same machine. 2) security issue , some system may allow you only access in one folder . 3) no need install separately runtime framework on client pc in case of server and client environment. I wonder is it possible to implement similar function in gambas ? I personally think that this way is better when deploy program. -- View this message in context: http://old.nabble.com/suggestion-of-make-option-tp27750271p27750271.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Tue Mar 2 09:50:46 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 02 Mar 2010 09:50:46 +0100 Subject: [Gambas-user] Release of Gambas 2.20 In-Reply-To: <201003011623.35159.gambas@...1...> References: <201003011623.35159.gambas@...1...> Message-ID: <4B8CD166.7030709@...221...> Hi Benoit, thank you for the new release! This one let me wonder: > * ComboBox now raises the Click event when it gets its first element, because > that element is automatically selected. > > Beware that the two previous changes may introduce a little backward > incompatibility in your projects! > Before installing it, I wanted to make sure the main Gambas apps on the system will keep on going, so I checked their source codes for Click events of ComboBoxes. I found that where I had used one, there already was a way of stopping the event (or just RETURNing) during the filling of the ComboBox. I do not remember why I did this (older source), but could it be possible this behaviour isn't that new? Regards Rolf From gambas.fr at ...626... Tue Mar 2 14:28:07 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 2 Mar 2010 14:28:07 +0100 Subject: [Gambas-user] suggestion of make option In-Reply-To: <27750271.post@...1379...> References: <27750271.post@...1379...> Message-ID: <6324a42a1003020528oe7c45dbred1e219d25070b0e@...627...> i'm not sure as gambas libs use shared libraries with some compatibilities conditions (ex, qt, gtk) 2010/3/2 kobolds : > > this idea is from one of the program I previous used > > when I compile and make program , there is an option which allow me to > include or not include the runtime framework or select which to include into > one executable. > > of course the down side for this is the executable file will be big . \ > > when I run the executable file , first it will extract ?the framework dll > in the same folder of the executable then run the program. > > the advantages is > 1) I don't need to worry of compatible issue if I have 2 program from > different version of framework running in same machine. > 2) security issue , some system may allow you only access in one folder . > 3) no need install separately runtime framework on client pc in case of > server and client environment. > > > I wonder is it possible to implement similar function in gambas ? I > personally think that this way is better when deploy program. > > > -- > View this message in context: http://old.nabble.com/suggestion-of-make-option-tp27750271p27750271.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Mar 2 17:31:27 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 02 Mar 2010 17:31:27 +0100 Subject: [Gambas-user] Compiling error with 2.20 Message-ID: <4B8D3D5F.8030007@...221...> Meanwhile I tried to compile the new version, but it stops here: CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, LinkAction*)?: CPdfDocument.cpp:183: error: cannot convert ?UGooString*? to ?GooString*? in assignment CPdfDocument.cpp:185: error: no matching function for call to ?PDFDoc::findDest(GooString*&)? /usr/include/poppler/PDFDoc.h:126: note: candidates are: LinkDest* PDFDoc::findDest(UGooString*) make[4]: *** [CPdfDocument.lo] Fehler 1 make[4]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0' make: *** [all] Fehler 2 Any idea how to fix it? Rolf From keithclark at ...2185... Tue Mar 2 21:39:52 2010 From: keithclark at ...2185... (Keith Clark) Date: Tue, 02 Mar 2010 15:39:52 -0500 Subject: [Gambas-user] MySQL and general data issues In-Reply-To: <1267483011.6514.7.camel@...40...> References: <1267478578.18718.3.camel@...2186...> <1267483011.6514.7.camel@...40...> Message-ID: <1267562392.987.19.camel@...2186...> On Mon, 2010-03-01 at 23:36 +0100, Charlie Reinl wrote: > Am Montag, den 01.03.2010, 16:22 -0500 schrieb Keith Clark: > > I am trying to access some data using the documentation "A Beginner's > > Guide to Gambas" and I've gotten this far: > > > > PUBLIC SUB SearchButton_Click() > > > > DIM $Query AS String > > DIM $Result AS Result > > DIM iIndex AS Integer > > DIM hField AS ResultField > > > > DatabaseConnection.Connect() > > > > $Query = "select products.products_model as ISBN, > > products_description.products_name AS Title, > > manufacturers.manufacturers_name AS Author, > > categories_description.categories_name AS Genre, > > products.products_quantity AS Quantity FROM products Left join > > products_description on products.products_id = > > products_description.products_id Left join manufacturers on > > products.manufacturers_id = manufacturers.manufacturers_id Left join > > products_to_categories on products.products_id = > > products_to_categories.products_id Left join categories_description on > > products_to_categories.categories_id = > > categories_description.categories_id where > > products_description.products_name LIKE '%blue%'" > > $Result = DatabaseConnection.$Con.Exec($Query) > > TitleSearchTableView.Rows.count = 0 > > TitleSearchTableView.Columns.Count = $Result.Fields.Count > > FOR EACH hField IN $Result.Fields > > WITH hField > > TitleSearchTableView.Columns[iIndex].Text = .Name > > TitleSearchTableView.Columns[iIndex].Width = > > WidthFromType(TitleSearchTableView, .Type, .Length, .Name) > > END WITH > > INC iIndex > > NEXT > > > > But I get an error: > > > > Unknown identifier: WidthFromType > > > > Not sure what I'm doing wrong here. Maybe just not understanding it > > well enough yet. > > > > Keith > > Salut Keith, > > you have to look for the function "WidthFromType" which returns the > width for the field. Should be in the example. > If you can't find it, a workaround could be this: > replace : TitleSearchTableView.Columns[iIndex].Width = > WidthFromType(TitleSearchTableView, .Type, .Length, .Name) > by > TitleSearchTableView.Columns[iIndex].Width = 50 > > Or/and look if you don't have a typo !? > Ok, I have it working now, but the table view box never shows anything but one long blank cell. I went on to create a fill routine as follows: FOR iRowIndex = 0 TO $Result.Count - 1 $Result.MoveTo(iRowIndex) FOR iColumnIndex = 0 TO $Result.Fields.Count - 1 PRINT "Here is Column" & iColumnIndex PRINT "Here is the data" & Str($Result[TitleSearchTableView.Columns[iColumnIndex].text]) TitleSearchTableView.Data.Text = Str($Result[TitleSearchTableView.Columns[iColumnIndex].text]) NEXT NEXT It seems to be returning the correct number of rows/columns and the correct data, just not in the table view box. From mohareve at ...626... Tue Mar 2 22:44:15 2010 From: mohareve at ...626... (M. Cs.) Date: Tue, 2 Mar 2010 22:44:15 +0100 Subject: [Gambas-user] MySQL and general data issues In-Reply-To: <1267562392.987.19.camel@...2186...> References: <1267478578.18718.3.camel@...2186...> <1267483011.6514.7.camel@...40...> <1267562392.987.19.camel@...2186...> Message-ID: I'm using sqlite, and I think the querry should look like: DIM answer AS Result DIM querry As String ............................... querry="SELECT.........;" answer=YourConnection.Exec(querry) FOR EACH answer do what you want..... NEXT From keithclark at ...2185... Tue Mar 2 22:49:03 2010 From: keithclark at ...2185... (Keith Clark) Date: Tue, 02 Mar 2010 16:49:03 -0500 Subject: [Gambas-user] MySQL and general data issues In-Reply-To: References: <1267478578.18718.3.camel@...2186...> <1267483011.6514.7.camel@...40...> <1267562392.987.19.camel@...2186...> Message-ID: <1267566543.987.22.camel@...2186...> On Tue, 2010-03-02 at 22:44 +0100, M. Cs. wrote: > I'm using sqlite, and I think the querry should look like: > DIM answer AS Result > DIM querry As String > ............................... > > querry="SELECT.........;" > answer=YourConnection.Exec(querry) > FOR EACH answer > > do what you want..... > > NEXT Well, I have this now: PUBLIC $Result AS Result PUBLIC SUB SearchButton_Click() DIM $Query AS String 'DIM $Result AS Result DIM iIndex AS Integer DIM hField AS ResultField DIM iRowIndex AS Integer DIM iColumnIndex AS Integer DatabaseConnection.Connect() $Query = "select products.products_model, products_description.products_name, manufacturers.manufacturers_name, categories_description.categories_name, products.products_quantity FROM products Left join products_description on products.products_id = products_description.products_id Left join manufacturers on products.manufacturers_id = manufacturers.manufacturers_id Left join products_to_categories on products.products_id = products_to_categories.products_id Left join categories_description on products_to_categories.categories_id = categories_description.categories_id where products_description.products_name LIKE '%blue%'" $Result = DatabaseConnection.$Con.Exec($Query) TitleSearchTableView.Rows.count = 0 TitleSearchTableView.Columns.count = $Result.Fields.Count iIndex = 0 'PRINT $Result.Fields.Count 'PRINT $Result.Count FOR EACH hField IN $Result.Fields WITH hField 'PRINT .Name; ": "; .Type; " "; .Length TitleSearchTableView.Columns[iIndex].Text = .Name TitleSearchTableView.Columns[iIndex].Width = WidthFromType(TitleSearchTableView, .Type, .Length, .Name) END WITH INC iIndex NEXT PRINT "Results: " & $Result.Count PRINT "Fields: " & $Result.Fields.Count FOR iRowIndex = 0 TO ($Result.Count - 1) STEP 1 FOR iColumnIndex = 0 TO ($Result.Fields.Count - 1) STEP 1 'PRINT "Here is Column" & iColumnIndex 'PRINT "Here is the data" & Str($Result[TitleSearchTableView.Columns[iColumnIndex].text]) 'TitleSearchTableView.Data.Text = Str($Result[TitleSearchTableView.Columns[iColumnIndex].text]) 'PRINT "Row #: " & iRowIndex PRINT "Row Called:" & iRowIndex PRINT "Column Called:" & iColumnIndex TitleSearchTableView_Data(iRowIndex, iColumnIndex) NEXT NEXT END PUBLIC SUB TitleSearchTableView_Data(Row AS Integer, Column AS Integer) $Result.MoveTo(Row) PRINT Row & "," & Column TitleSearchTableView.Data.Text = Str($Result[TitleSearchTableView.Columns[Column].Text]) END But I get the following in the Console: Results: 72 Fields: 5 Row Called:0 Column Called:0 0,0 -1,-1 So, I have 72 rows of results, each with 5 fields. I call the first 0,0 and the _Data Sub seems to receive it. I'm not sure what the -1,-1 is all about though. From gambas at ...1... Tue Mar 2 23:39:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 2 Mar 2010 23:39:55 +0100 Subject: [Gambas-user] Release of Gambas 2.20 In-Reply-To: <4B8CD166.7030709@...221...> References: <201003011623.35159.gambas@...1...> <4B8CD166.7030709@...221...> Message-ID: <201003022339.55485.gambas@...1...> > Hi Benoit, > > thank you for the new release! > > This one let me wonder: > > * ComboBox now raises the Click event when it gets its first element, > > because that element is automatically selected. > > > > Beware that the two previous changes may introduce a little backward > > incompatibility in your projects! > > Before installing it, I wanted to make sure the main Gambas apps on the > system will keep on going, so I checked their source codes for Click > events of ComboBoxes. > > I found that where I had used one, there already was a way of stopping > the event (or just RETURNing) during the filling of the ComboBox. I do > not remember why I did this (older source), but could it be possible > this behaviour isn't that new? > > Regards > > Rolf > This behaviour is for gb.qt, so that gb.qt and gb.gtk behave the same I think. Do you use gb.qt or gb.gtk? -- Beno?t Minisini From eilert-sprachen at ...221... Wed Mar 3 08:12:51 2010 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Wed, 03 Mar 2010 08:12:51 +0100 Subject: [Gambas-user] Release of Gambas 2.20 In-Reply-To: <201003022339.55485.gambas@...1...> References: <201003011623.35159.gambas@...1...> <4B8CD166.7030709@...221...> <201003022339.55485.gambas@...1...> Message-ID: <4B8E0BF3.2090208@...394...> Am 02.03.2010 23:39, schrieb Beno?t Minisini: >> Hi Benoit, >> >> thank you for the new release! >> >> This one let me wonder: >>> * ComboBox now raises the Click event when it gets its first element, >>> because that element is automatically selected. >>> >>> Beware that the two previous changes may introduce a little backward >>> incompatibility in your projects! >> >> Before installing it, I wanted to make sure the main Gambas apps on the >> system will keep on going, so I checked their source codes for Click >> events of ComboBoxes. >> >> I found that where I had used one, there already was a way of stopping >> the event (or just RETURNing) during the filling of the ComboBox. I do >> not remember why I did this (older source), but could it be possible >> this behaviour isn't that new? >> >> Regards >> >> Rolf >> > > This behaviour is for gb.qt, so that gb.qt and gb.gtk behave the same I think. > Do you use gb.qt or gb.gtk? > I've only got KDE here, not Gnome, so I use gb.qt :-) Rolf -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From eilert-sprachen at ...221... Wed Mar 3 08:46:11 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Mar 2010 08:46:11 +0100 Subject: [Gambas-user] infobot wallonie Message-ID: <4B8E13C3.3040904@...221...> Do others here get these messages by infobot at ...2386... too? Since yesterday, each time I'm posting here I get the message from that system. Regards Rolf From gambas at ...1... Wed Mar 3 09:46:02 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 09:46:02 +0100 Subject: [Gambas-user] Compiling error with 2.20 In-Reply-To: <4B8D3D5F.8030007@...221...> References: <4B8D3D5F.8030007@...221...> Message-ID: <201003030946.02341.gambas@...1...> > Meanwhile I tried to compile the new version, but it stops here: > > CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, > LinkAction*)?: > CPdfDocument.cpp:183: error: cannot convert ?UGooString*? to > ?GooString*? in assignment > CPdfDocument.cpp:185: error: no matching function for call to > ?PDFDoc::findDest(GooString*&)? > /usr/include/poppler/PDFDoc.h:126: note: candidates are: LinkDest* > PDFDoc::findDest(UGooString*) > make[4]: *** [CPdfDocument.lo] Fehler 1 > make[4]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0' > make: *** [all] Fehler 2 > > > Any idea how to fix it? > > Rolf > It seems that you have a too old version of the poppler library (or too recent?). Which version of poppler do you have? $ ls -la /usr/lib/libpoppler* ... -- Beno?t Minisini From eilert-sprachen at ...221... Wed Mar 3 10:16:35 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Mar 2010 10:16:35 +0100 Subject: [Gambas-user] Compiling error with 2.20 In-Reply-To: <201003030946.02341.gambas@...1...> References: <4B8D3D5F.8030007@...221...> <201003030946.02341.gambas@...1...> Message-ID: <4B8E28F3.4010903@...221...> Am 03.03.2010 09:46, schrieb Beno?t Minisini: > ls -la /usr/lib/libpoppler* Too old I guess: lrwxrwxrwx 1 root root 24 26. Jun 2009 /usr/lib/libpoppler-glib.so -> libpoppler-glib.so.1.0.0 lrwxrwxrwx 1 root root 24 26. Jun 2009 /usr/lib/libpoppler-glib.so.1 -> libpoppler-glib.so.1.0.0 -rwxr-xr-x 1 root root 88884 22. Jun 2009 /usr/lib/libpoppler-glib.so.1.0.0 lrwxrwxrwx 1 root root 23 26. Jun 2009 /usr/lib/libpoppler-qt4.so -> libpoppler-qt4.so.1.0.0 lrwxrwxrwx 1 root root 23 26. Jun 2009 /usr/lib/libpoppler-qt4.so.1 -> libpoppler-qt4.so.1.0.0 -rwxr-xr-x 1 root root 322948 22. Jun 2009 /usr/lib/libpoppler-qt4.so.1.0.0 lrwxrwxrwx 1 root root 22 26. Jun 2009 /usr/lib/libpoppler-qt.so -> libpoppler-qt.so.1.0.0 lrwxrwxrwx 1 root root 22 26. Jun 2009 /usr/lib/libpoppler-qt.so.1 -> libpoppler-qt.so.1.0.0 -rwxr-xr-x 1 root root 63688 22. Jun 2009 /usr/lib/libpoppler-qt.so.1.0.0 lrwxrwxrwx 1 root root 19 26. Jun 2009 /usr/lib/libpoppler.so -> libpoppler.so.1.0.0 lrwxrwxrwx 1 root root 19 26. Jun 2009 /usr/lib/libpoppler.so.1 -> libpoppler.so.1.0.0 -rwxr-xr-x 1 root root 1484212 22. Jun 2009 /usr/lib/libpoppler.so.1.0.0 Rolf From gambas at ...1... Wed Mar 3 11:45:57 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 11:45:57 +0100 Subject: [Gambas-user] Compiling error with 2.20 In-Reply-To: <4B8E28F3.4010903@...221...> References: <4B8D3D5F.8030007@...221...> <201003030946.02341.gambas@...1...> <4B8E28F3.4010903@...221...> Message-ID: <201003031145.57912.gambas@...1...> > Am 03.03.2010 09:46, schrieb Beno?t Minisini: > > ls -la /usr/lib/libpoppler* > > Too old I guess: > > lrwxrwxrwx 1 root root 24 26. Jun 2009 /usr/lib/libpoppler-glib.so > -> libpoppler-glib.so.1.0.0 > lrwxrwxrwx 1 root root 24 26. Jun 2009 > /usr/lib/libpoppler-glib.so.1 -> libpoppler-glib.so.1.0.0 > -rwxr-xr-x 1 root root 88884 22. Jun 2009 > /usr/lib/libpoppler-glib.so.1.0.0 > lrwxrwxrwx 1 root root 23 26. Jun 2009 /usr/lib/libpoppler-qt4.so > -> libpoppler-qt4.so.1.0.0 > lrwxrwxrwx 1 root root 23 26. Jun 2009 > /usr/lib/libpoppler-qt4.so.1 -> libpoppler-qt4.so.1.0.0 > -rwxr-xr-x 1 root root 322948 22. Jun 2009 > /usr/lib/libpoppler-qt4.so.1.0.0 > lrwxrwxrwx 1 root root 22 26. Jun 2009 /usr/lib/libpoppler-qt.so > -> libpoppler-qt.so.1.0.0 > lrwxrwxrwx 1 root root 22 26. Jun 2009 /usr/lib/libpoppler-qt.so.1 > -> libpoppler-qt.so.1.0.0 > -rwxr-xr-x 1 root root 63688 22. Jun 2009 > /usr/lib/libpoppler-qt.so.1.0.0 lrwxrwxrwx 1 root root 19 26. Jun > 2009 /usr/lib/libpoppler.so -> libpoppler.so.1.0.0 > lrwxrwxrwx 1 root root 19 26. Jun 2009 /usr/lib/libpoppler.so.1 -> > libpoppler.so.1.0.0 > -rwxr-xr-x 1 root root 1484212 22. Jun 2009 /usr/lib/libpoppler.so.1.0.0 > > > Rolf > What is the result of: $ pkg-config --modversion poppler -- Beno?t Minisini From gambas at ...1... Wed Mar 3 11:50:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 11:50:58 +0100 Subject: [Gambas-user] suggestion of make option In-Reply-To: <27750271.post@...1379...> References: <27750271.post@...1379...> Message-ID: <201003031150.58884.gambas@...1...> > this idea is from one of the program I previous used > > when I compile and make program , there is an option which allow me to > include or not include the runtime framework or select which to include > into one executable. > > of course the down side for this is the executable file will be big . \ > > when I run the executable file , first it will extract the framework dll > in the same folder of the executable then run the program. > > the advantages is > 1) I don't need to worry of compatible issue if I have 2 program from > different version of framework running in same machine. > 2) security issue , some system may allow you only access in one folder . > 3) no need install separately runtime framework on client pc in case of > server and client environment. > > > I wonder is it possible to implement similar function in gambas ? I > personally think that this way is better when deploy program. I don't understand what you are talking about precisely. Do you have a concrete example? -- Beno?t Minisini From gambas at ...1... Wed Mar 3 12:00:20 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 12:00:20 +0100 Subject: [Gambas-user] Compiling error with 2.20 In-Reply-To: <4B8D3D5F.8030007@...221...> References: <4B8D3D5F.8030007@...221...> Message-ID: <201003031200.20538.gambas@...1...> > Meanwhile I tried to compile the new version, but it stops here: > > CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, > LinkAction*)?: > CPdfDocument.cpp:183: error: cannot convert ?UGooString*? to > ?GooString*? in assignment > CPdfDocument.cpp:185: error: no matching function for call to > ?PDFDoc::findDest(GooString*&)? > /usr/include/poppler/PDFDoc.h:126: note: candidates are: LinkDest* > PDFDoc::findDest(UGooString*) > make[4]: *** [CPdfDocument.lo] Fehler 1 > make[4]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0' > make: *** [all] Fehler 2 > > > Any idea how to fix it? > > Rolf > What happens if you replace GooString by UGooString in the line 174? -- Beno?t Minisini From eilert-sprachen at ...221... Wed Mar 3 12:52:32 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 03 Mar 2010 12:52:32 +0100 Subject: [Gambas-user] Compiling error with 2.20 In-Reply-To: <201003031200.20538.gambas@...1...> References: <4B8D3D5F.8030007@...221...> <201003031200.20538.gambas@...1...> Message-ID: <4B8E4D80.5050500@...221...> Am 03.03.2010 12:00, schrieb Beno?t Minisini: >> Meanwhile I tried to compile the new version, but it stops here: >> >> CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, >> LinkAction*)?: >> CPdfDocument.cpp:183: error: cannot convert ?UGooString*? to >> ?GooString*? in assignment >> CPdfDocument.cpp:185: error: no matching function for call to >> ?PDFDoc::findDest(GooString*&)? >> /usr/include/poppler/PDFDoc.h:126: note: candidates are: LinkDest* >> PDFDoc::findDest(UGooString*) >> make[4]: *** [CPdfDocument.lo] Fehler 1 >> make[4]: Leaving directory >> `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf/src' >> make[3]: *** [all-recursive] Fehler 1 >> make[3]: Leaving directory >> `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' >> make[2]: *** [all] Fehler 2 >> make[2]: Leaving directory >> `/home/tester/Downloads/Gambas2/gambas2-2.20.0/gb.pdf' >> make[1]: *** [all-recursive] Fehler 1 >> make[1]: Leaving directory `/home/tester/Downloads/Gambas2/gambas2-2.20.0' >> make: *** [all] Fehler 2 >> >> >> Any idea how to fix it? >> >> Rolf >> > > What happens if you replace GooString by UGooString in the line 174? > Yes, that helps! Now it compiles without errors. Thanks so much! Rolf From gambas.fr at ...626... Wed Mar 3 12:54:25 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Mar 2010 12:54:25 +0100 Subject: [Gambas-user] suggestion of make option In-Reply-To: <201003031150.58884.gambas@...1...> References: <27750271.post@...1379...> <201003031150.58884.gambas@...1...> Message-ID: <6324a42a1003030354i5785aa7am3c428120820bf381@...627...> Le 3 mars 2010 11:50, Beno?t Minisini a ?crit : >> this idea is from one of the program I previous used >> >> when I compile and make program , there is an option which allow me to >> include or not include the runtime framework or select which to include >> into one executable. >> >> of course the down side for this is the executable file will be big . \ >> >> when I run the executable file , first it will extract ?the framework dll >> in the same folder of the executable then run the program. >> >> the advantages is >> 1) I don't need to worry of compatible issue if I have 2 program from >> different version of framework running in same machine. >> 2) security issue , some system may allow you only access in one folder . >> 3) no need install separately runtime framework on client pc in case of >> server and client environment. >> >> >> I wonder is it possible to implement similar function in gambas ? I >> personally think that this way is better when deploy program. > > I don't understand what you are talking about precisely. Do you have a > concrete example? d'embarquer tout dans l'executable ! (runtime libs, etc) > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Wed Mar 3 15:48:06 2010 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Wed, 03 Mar 2010 15:48:06 +0100 Subject: [Gambas-user] Release of Gambas 2.20 In-Reply-To: <201003022339.55485.gambas@...1...> References: <201003011623.35159.gambas@...1...> <4B8CD166.7030709@...221...> <201003022339.55485.gambas@...1...> Message-ID: <4B8E76A6.3000100@...394...> Am 02.03.2010 23:39, schrieb Beno?t Minisini: >> Hi Benoit, >> >> thank you for the new release! >> >> This one let me wonder: >>> * ComboBox now raises the Click event when it gets its first element, >>> because that element is automatically selected. >>> >>> Beware that the two previous changes may introduce a little backward >>> incompatibility in your projects! >> >> Before installing it, I wanted to make sure the main Gambas apps on the >> system will keep on going, so I checked their source codes for Click >> events of ComboBoxes. >> >> I found that where I had used one, there already was a way of stopping >> the event (or just RETURNing) during the filling of the ComboBox. I do >> not remember why I did this (older source), but could it be possible >> this behaviour isn't that new? >> >> Regards >> >> Rolf >> > > This behaviour is for gb.qt, so that gb.qt and gb.gtk behave the same I think. > Do you use gb.qt or gb.gtk? > I installed it and tried the main apps I'm using with it every day. Both started but soon stopped with "Stack overflow" after some clicks. So I will have to repair this before I can use the new release. I reinstalled 2.19 as everyone needs it here. Rolf -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From kobolds at ...2041... Wed Mar 3 16:02:37 2010 From: kobolds at ...2041... (kobolds) Date: Wed, 3 Mar 2010 07:02:37 -0800 (PST) Subject: [Gambas-user] suggestion of make option In-Reply-To: <201003031150.58884.gambas@...1...> References: <27750271.post@...1379...> <201003031150.58884.gambas@...1...> Message-ID: <27769279.post@...1379...> mail you some screen shot . hope you can give me some of your opinion ? I Beno?t Minisini wrote: > >> this idea is from one of the program I previous used >> >> when I compile and make program , there is an option which allow me to >> include or not include the runtime framework or select which to include >> into one executable. >> >> of course the down side for this is the executable file will be big . \ >> >> when I run the executable file , first it will extract the framework dll >> in the same folder of the executable then run the program. >> >> the advantages is >> 1) I don't need to worry of compatible issue if I have 2 program from >> different version of framework running in same machine. >> 2) security issue , some system may allow you only access in one folder . >> 3) no need install separately runtime framework on client pc in case of >> server and client environment. >> >> >> I wonder is it possible to implement similar function in gambas ? I >> personally think that this way is better when deploy program. > > I don't understand what you are talking about precisely. Do you have a > concrete example? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/suggestion-of-make-option-tp27750271p27769279.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Wed Mar 3 16:25:52 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 3 Mar 2010 17:25:52 +0200 Subject: [Gambas-user] suggestion of make option In-Reply-To: <27769279.post@...1379...> References: <27750271.post@...1379...> <201003031150.58884.gambas@...1...> <27769279.post@...1379...> Message-ID: <384d3901003030725o796c3d08pca3728962704efdb@...627...> I think you forgot to attach it... Jussi On Wed, Mar 3, 2010 at 17:02, kobolds wrote: > > mail you some screen shot . hope you can give me some of your opinion ? > > I > > > Beno?t Minisini wrote: >> >>> this idea is from one of the program I previous used >>> >>> when I compile and make program , there is an option which allow me to >>> include or not include the runtime framework or select which to include >>> into one executable. >>> >>> of course the down side for this is the executable file will be big . \ >>> >>> when I run the executable file , first it will extract ?the framework dll >>> in the same folder of the executable then run the program. >>> >>> the advantages is >>> 1) I don't need to worry of compatible issue if I have 2 program from >>> different version of framework running in same machine. >>> 2) security issue , some system may allow you only access in one folder . >>> 3) no need install separately runtime framework on client pc in case of >>> server and client environment. >>> >>> >>> I wonder is it possible to implement similar function in gambas ? I >>> personally think that this way is better when deploy program. >> >> I don't understand what you are talking about precisely. Do you have a >> concrete example? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://old.nabble.com/suggestion-of-make-option-tp27750271p27769279.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Wed Mar 3 16:56:37 2010 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 3 Mar 2010 12:56:37 -0300 Subject: [Gambas-user] Problem opening a Form Message-ID: <201003031256.38177.pinozollo@...626...> Hi, I am adding new code to may project. Since yesterday I am having problems when I introduce new Forms an I try to open them from FMain. E.G. In FMAin: PUBLIC SUB mnuWAC_Click() FWAC.Show() END In FWAC.class: PRIVATE TipoStat AS Integer PUBLIC Bande AS NEW String[50] PUBLIC ListBande AS NEW Collection PUBLIC entn AS Integer PUBLIC nbande AS Integer PUBLIC Continents AS NEW String["Africa", "Asia", "Europe", "Nord America", "South America", "Antartide"] PUBLIC SUB Form_Open() TipoStat = FMain.TStats FillLista() initTable createStats END I get the error: "Wanted Integer got String instead" from the line FWAC.Show() of FMain. This error appeared after having modified few instructions into the SUB initTable which just write headers in a GridWiew table... Before the error was not present and I could see the new form. ---------------------------- An other mastery happened yesterday when I tried to pass an integer parameter to a new form, using the same code that works nicely in other parts of the same project: In FMain.class PUBLIC SUB mnuAll_Click() DIM hForm AS FDXCCStats DIM T AS Integer T = 1 hForm = NEW FDXCCStats(T) FDXCCStats.Show ' <--- gives error "Not enough parameters" END in FDXCCStats.class PUBLIC SUB _new(Tipo AS Integer) TipoStat = Tipo END PUBLIC SUB Form_Open() TipoStat = FMain.TStats FillLista() initTable createStats END In this case the error is "Not enough parameters" at FMain FDXCCStats.Show --------------- What am I doing wrong ? Gambas 2.19 on Debian 5.01 Regards Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From vkan53 at ...2300... Wed Mar 3 16:55:26 2010 From: vkan53 at ...2300... (Vassilis K) Date: Wed, 03 Mar 2010 17:55:26 +0200 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed Message-ID: <1267631726.4562.9.camel@...2376...> Hello again, I just made packages of a small application for Opensuse, Madriva and Fedora. Everything worked fine. But the package building for Debian and Ubuntu did not work! It shows: ............. sh: fakeroot: command not found package building failed Package,MakeDebPackage.531:'dpkg-buildpackage' failed Any ideas why? I'm using Gambas 2.17. on OpenSUSE 11.2 From pinozollo at ...626... Wed Mar 3 18:32:23 2010 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 3 Mar 2010 14:32:23 -0300 Subject: [Gambas-user] infobot wallonie Message-ID: <201003031432.23899.pinozollo@...626...> I have received it !! Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From doriano.blengino at ...1909... Wed Mar 3 18:11:35 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 03 Mar 2010 18:11:35 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <1267631726.4562.9.camel@...2376...> References: <1267631726.4562.9.camel@...2376...> Message-ID: <4B8E9847.602@...1909...> Vassilis K ha scritto: > Hello again, > > I just made packages of a small application for Opensuse, Madriva and > Fedora. Everything worked fine. > > But the package building for Debian and Ubuntu did not work! It shows: > ............. > sh: fakeroot: command not found > One clear advantage of linux over windoze is that linux often explain what went wrong... It seems that "fakeroot" is missing... probably you should install it (the package should be named "fakeroot"?) :-) Regards, Doriano From gambas at ...1... Wed Mar 3 18:46:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 18:46:23 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <4B8E9847.602@...1909...> References: <1267631726.4562.9.camel@...2376...> <4B8E9847.602@...1909...> Message-ID: <201003031846.23826.gambas@...1...> > Vassilis K ha scritto: > > Hello again, > > > > I just made packages of a small application for Opensuse, Madriva and > > Fedora. Everything worked fine. > > > > But the package building for Debian and Ubuntu did not work! It shows: > > ............. > > sh: fakeroot: command not found > > One clear advantage of linux over windoze is that linux often explain > what went wrong... > It seems that "fakeroot" is missing... probably you should install it > (the package should be named "fakeroot"?) > > :-) > > Regards, > Doriano > The problem is worse than that. For example, apparently Mandriva does not make packages for programs needed to make Debian/Ubuntu packages (fakeroot and another one I don't remember). So, concretely, you can't create Ubuntu/Debian packages from Mandriva, unless you compile the needed programs! I don't know if it is true for other rpms distribution, or if the contrary is true (if you can create rpms from Ubuntu/Debian). -- Beno?t Minisini From gambas.fr at ...626... Wed Mar 3 19:56:32 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Mar 2010 19:56:32 +0100 Subject: [Gambas-user] Problem opening a Form In-Reply-To: <201003031256.38177.pinozollo@...626...> References: <201003031256.38177.pinozollo@...626...> Message-ID: <6324a42a1003031056v3cd368bdtbe7f972ac9c18bd0@...627...> TipoStat = FMain.TStats are you sure that TSTATs return an integer ? 2010/3/3 Pino Zollo : > Hi, > I am adding new code to may project. > Since yesterday I am having problems when I introduce new Forms an I try to > open them from FMain. > E.G. > In FMAin: > > PUBLIC SUB mnuWAC_Click() > > ? FWAC.Show() > > END > > In FWAC.class: > > PRIVATE TipoStat AS Integer > PUBLIC Bande AS NEW String[50] > PUBLIC ListBande AS NEW Collection > PUBLIC entn AS Integer > PUBLIC nbande AS Integer > PUBLIC Continents AS NEW String["Africa", "Asia", "Europe", "Nord > America", "South America", "Antartide"] > > PUBLIC SUB Form_Open() > ? ?TipoStat = FMain.TStats > ? ?FillLista() > ? ?initTable > ? ?createStats > END > > I get the error: "Wanted Integer got String instead" from the line > FWAC.Show() of FMain. > > This error appeared after having modified few instructions into the SUB > initTable which just write headers in a GridWiew table... > Before the error was not present and I could see the new form. > > ---------------------------- > > An other mastery happened yesterday when I tried to pass an integer parameter > to a new form, using the same code that works nicely in other parts of the > same project: > > In FMain.class > > PUBLIC SUB mnuAll_Click() > ? DIM hForm AS FDXCCStats > ? DIM T AS Integer > ? ? T = 1 > ? ? hForm = NEW FDXCCStats(T) > ? ? FDXCCStats.Show ? ? ? ? ? ? ? ' <--- gives error "Not enough parameters" > END > > > in ?FDXCCStats.class > > PUBLIC SUB _new(Tipo AS Integer) > ? ?TipoStat = Tipo > END > > PUBLIC SUB Form_Open() > ? ?TipoStat = FMain.TStats > ? ?FillLista() > ? ?initTable > ? ?createStats > END > > In this case the error is "Not enough parameters" at FMain ?FDXCCStats.Show > > --------------- > > What am I doing wrong ? > > Gambas 2.19 on Debian 5.01 > > Regards > > Pino > > -- > > "In the universe there is no time existing as a physical reality, > ?there is no past, no present and no future" > "Time is a mind construction into which one experiences motion" > "Time is a flow of irreversible material changes" > -Davide Fiscaletti > > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A ?71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Wed Mar 3 20:20:13 2010 From: vkan53 at ...2300... (Vassilis K) Date: Wed, 03 Mar 2010 21:20:13 +0200 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed Message-ID: <1267644013.9428.4.camel@...2376...> Ok, I had to use my Desktop (with Ubuntu 9.10) to make the Deb packages !!! It worked fine ! This is another proof of the 2 different distros Theorem ! From ea7dfh at ...2382... Wed Mar 3 20:32:34 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Wed, 03 Mar 2010 20:32:34 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B1837A1.9030109@...1909...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> <4B18206D.8010308@...1909...> <1259874863.6397.23.camel@...40...> <4B1837A1.9030109@...1909...> Message-ID: <4B8EB952.7050405@...2382...> Doriano Blengino escribi?: > Charlie Reinl ha scritto: >> Am Donnerstag, den 03.12.2009, 21:32 +0100 schrieb Doriano Blengino: >> >>> Charlie Reinl ha scritto: >>> >>>> Sorry Dariano, >>>> >>>> no meant, has not changed, even in 2.18.0 Revision: 2447 , the cursor >>>> moves from top left to bottom right and return if using left/right arrow >>>> key, or top to bottom and return if using up/down arrow key. >>>> >>>> Oh, tableview is a gambas written component in gb.form there I think >>>> you find the problem. >>>> >>>> >>> Again, thanks to you two. I will investigate more - but I don't want to >>> peek and poke with gambas sources. >>> >>> Regards, >>> >>> >> Have a look at ChangeLog 2.13 - 14 May 2009 >> >> GB.FORM >> >> * BUG: TableView now handle the Return/Enter key by raising the >> Click event instead of automatically editing the cell, so that >> non-editable cells are not edited by mistake. >> * BUG: The same fix was applied to the way TableView handles arrow >> keys. >> * BUG: The TableView editor now has the same font as the master >> TableView. >> * >> > This is what I mean by "investigating"! > > May be that by correcting a bug, a different one has been generated. In > fact I see many click events, one for every cell visited. This is the > desirable behaviour, if only, a single keypress would generate a single > movement. Sigh. > > This changelog talks about a bug I've never seen - apart from the Return > key one, I think that in versions prior than 2.13 there was nothing > wrong with arrow keys. Well, we can wait for Benoit -or- I could in the > end take a look at gb.form (but I hate to do it). > > Thanks again Charlie, the fog is getting lighter. > > Good night (oder gute nacht, ou bonne nuit? I'm still trying to figure > out what is your real preferred language...), > Hi all I'm still getting this weird behavior when I push Enter or arrow keys in edit mode. TableView goes crazy and all cells are traveled to the end. Was this bug fixed or is it a regression? In the meantime, TableView is still unusable for editing/saving data. (Using Gambas 2.20 SVN 2741 on Ubuntu Karmic) Regards, Jesus From ea7dfh at ...2382... Wed Mar 3 21:23:25 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Wed, 03 Mar 2010 21:23:25 +0100 Subject: [Gambas-user] Problem with tableview when in edit mode In-Reply-To: <4B8EB952.7050405@...2382...> References: <4B17DE04.1070604@...1909...> <82bffccf0912030904n7dc8b456pdcc2137b7b224653@...627...> <4B17F44E.9070703@...1909...> <1259861473.6397.4.camel@...40...> <4B17F9A4.702@...1909...> <1259869708.6397.16.camel@...40...> <4B18206D.8010308@...1909...> <1259874863.6397.23.camel@...40...> <4B1837A1.9030109@...1909...> <4B8EB952.7050405@...2382...> Message-ID: <4B8EC53D.9040600@...2382...> Sorry, I haven't read the whole thread... Now I'm calling Edit from the click event, and no more crazy traveling :-) However, I'm getting a "Combobox is readonly" error when obviously I set the second arg to TRUE: Edit(getList(), TRUE) But this error isn't catched (by the CATCH clause), and program hangs. Furthermore, I'd like to begin editing when user "activates" the control, by double clicking in the desired cell, not directly in a single click. If I use Edit from the _Activate event, all goes wrong again. Is there a workaround to accomplish it? Regards, Jesus > > Hi all > > I'm still getting this weird behavior when I push Enter or arrow keys in > edit mode. TableView goes crazy and all cells are traveled to the end. > Was this bug fixed or is it a regression? > > In the meantime, TableView is still unusable for editing/saving data. > > (Using Gambas 2.20 SVN 2741 on Ubuntu Karmic) > > Regards, > > Jesus From vkan53 at ...2300... Wed Mar 3 21:24:58 2010 From: vkan53 at ...2300... (Vassilis K) Date: Wed, 03 Mar 2010 22:24:58 +0200 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed Message-ID: <1267647898.9428.11.camel@...2376...> Why does Gambas create 2 rpm files one .src and one .noarch? Is it the noarch.rpm file that I have to install ? Why does the .noarch.rpm ask for all the Gambas2.* depedencies in order to be installed? Is it logical to ask for almost all of the components of Gambas? Is this happening in Deb distros too? From gambas at ...1... Wed Mar 3 21:33:10 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 21:33:10 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <1267647898.9428.11.camel@...2376...> References: <1267647898.9428.11.camel@...2376...> Message-ID: <201003032133.10142.gambas@...1...> > Why does Gambas create 2 rpm files one .src and one .noarch? > The .src.rpm is the rpm to install the sources of your project. The .noarch one is the binary rpm with the program only. > Is it the noarch.rpm file that I have to install ? Yes. > > Why does the .noarch.rpm ask for all the Gambas2.* depedencies in order > to be installed? Is it logical to ask for almost all of the components > of Gambas? It should ask for the rpms of the components you checked in the project property dialog only. Isn't it the case? -- Beno?t Minisini From mohareve at ...626... Wed Mar 3 21:48:41 2010 From: mohareve at ...626... (M. Cs.) Date: Wed, 3 Mar 2010 21:48:41 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <201003032133.10142.gambas@...1...> References: <1267647898.9428.11.camel@...2376...> <201003032133.10142.gambas@...1...> Message-ID: > > So, concretely, you can't create Ubuntu/Debian packages from Mandriva, > unless > you compile the needed programs! > More than that, I never did manage to install the requirements for the Mandriva. I'm a big fan of it, although presently using Kubuntu. I'm curious, wheter you (Benoit) or someone else did succeed to met the dependency requirements for creating .DEB packages from within a RPM based distro. Another question. Where can I find the 'tar-1.13' which would let me create Slackware packages? From gambas at ...1... Wed Mar 3 21:54:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 21:54:23 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: References: <1267647898.9428.11.camel@...2376...> <201003032133.10142.gambas@...1...> Message-ID: <201003032154.23516.gambas@...1...> > > So, concretely, you can't create Ubuntu/Debian packages from Mandriva, > > unless > > you compile the needed programs! > > More than that, I never did manage to install the requirements for the > Mandriva. I'm a big fan of it, although presently using Kubuntu. I'm > curious, wheter you (Benoit) or someone else did succeed to met the > dependency requirements for creating .DEB packages from within a RPM based > distro. > > Another question. Where can I find the 'tar-1.13' which would let me create > Slackware packages? Same problem: this is a odd requirement of Slackware. I tried with a normal version of tar (I used a fake symbolic link), and it works. Only a slackware specialist could tell us what is the point with tar-1.13... Is Gambas the only Linux development tool that has a binary packager, and that tries to be distribution-independent? :-) -- Beno?t Minisini From mohareve at ...626... Wed Mar 3 21:59:37 2010 From: mohareve at ...626... (M. Cs.) Date: Wed, 3 Mar 2010 21:59:37 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <201003032154.23516.gambas@...1...> References: <1267647898.9428.11.camel@...2376...> <201003032133.10142.gambas@...1...> <201003032154.23516.gambas@...1...> Message-ID: Yes, and the only one with easy-to-use IDE. In other surroundings you have to edit GUI in a separate file and that makes a hell of coding! From pinozollo at ...626... Wed Mar 3 21:59:03 2010 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 3 Mar 2010 17:59:03 -0300 Subject: [Gambas-user] Problem opening a Form In-Reply-To: <6324a42a1003031056v3cd368bdtbe7f972ac9c18bd0@...627...> References: <201003031256.38177.pinozollo@...626...> <6324a42a1003031056v3cd368bdtbe7f972ac9c18bd0@...627...> Message-ID: <201003031759.04029.pinozollo@...626...> Il mercoled? 3 marzo 2010 15:56:32 hai scritto: > TipoStat = FMain.TStats > > are you sure that TSTATs return an integer ? Well it is so defined in Fmain.class : '----------------------------DXCCStats---- STATIC PUBLIC TStats AS Integer I guess that it is an integer... I made it just as a work-around as I do not succeed in passing parameters any more...see the second part of the message. Salud Pino > > 2010/3/3 Pino Zollo : > > Hi, > > I am adding new code to may project. > > Since yesterday I am having problems when I introduce new Forms an I try > > to open them from FMain. > > E.G. > > In FMAin: > > > > PUBLIC SUB mnuWAC_Click() > > > > ? FWAC.Show() > > > > END > > > > In FWAC.class: > > > > PRIVATE TipoStat AS Integer > > PUBLIC Bande AS NEW String[50] > > PUBLIC ListBande AS NEW Collection > > PUBLIC entn AS Integer > > PUBLIC nbande AS Integer > > PUBLIC Continents AS NEW String["Africa", "Asia", "Europe", "Nord > > America", "South America", "Antartide"] > > > > PUBLIC SUB Form_Open() > > ? ?TipoStat = FMain.TStats > > ? ?FillLista() > > ? ?initTable > > ? ?createStats > > END > > > > I get the error: "Wanted Integer got String instead" from the line > > FWAC.Show() of FMain. > > > > This error appeared after having modified few instructions into the SUB > > initTable which just write headers in a GridWiew table... > > Before the error was not present and I could see the new form. > > > > ---------------------------- > > > > An other mastery happened yesterday when I tried to pass an integer > > parameter to a new form, using the same code that works nicely in other > > parts of the same project: > > > > In FMain.class > > > > PUBLIC SUB mnuAll_Click() > > ? DIM hForm AS FDXCCStats > > ? DIM T AS Integer > > ? ? T = 1 > > ? ? hForm = NEW FDXCCStats(T) > > ? ? FDXCCStats.Show ? ? ? ? ? ? ? ' <--- gives error "Not enough > > parameters" END > > > > > > in ?FDXCCStats.class > > > > PUBLIC SUB _new(Tipo AS Integer) > > ? ?TipoStat = Tipo > > END > > > > PUBLIC SUB Form_Open() > > ? ?TipoStat = FMain.TStats > > ? ?FillLista() > > ? ?initTable > > ? ?createStats > > END > > > > In this case the error is "Not enough parameters" at FMain > > ?FDXCCStats.Show > > > > --------------- > > > > What am I doing wrong ? > > > > Gambas 2.19 on Debian 5.01 > > > > Regards > > > > Pino > > > > -- > > > > "In the universe there is no time existing as a physical reality, > > ?there is no past, no present and no future" > > "Time is a mind construction into which one experiences motion" > > "Time is a flow of irreversible material changes" > > -Davide Fiscaletti > > > > Key ID: 0xF6768208 > > Key fingerprint = B16D 0A7C 5B29 A334 CE6A ?71F6 EAF8 3D88 F676 8208 > > Key server: hkp://wwwkeys.eu.pgp.net > > > > ------------------------------------------------------------------------- > >----- Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Wed Mar 3 22:06:54 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 22:06:54 +0100 Subject: [Gambas-user] Problem opening a Form In-Reply-To: <201003031256.38177.pinozollo@...626...> References: <201003031256.38177.pinozollo@...626...> Message-ID: <201003032206.55042.gambas@...1...> > Hi, > I am adding new code to may project. > Since yesterday I am having problems when I introduce new Forms an I try to > open them from FMain. > E.G. > In FMAin: > > PUBLIC SUB mnuWAC_Click() > > FWAC.Show() > > END > > In FWAC.class: > > PRIVATE TipoStat AS Integer > PUBLIC Bande AS NEW String[50] > PUBLIC ListBande AS NEW Collection > PUBLIC entn AS Integer > PUBLIC nbande AS Integer > PUBLIC Continents AS NEW String["Africa", "Asia", "Europe", "Nord > America", "South America", "Antartide"] > > PUBLIC SUB Form_Open() > TipoStat = FMain.TStats > FillLista() > initTable > createStats > END > > I get the error: "Wanted Integer got String instead" from the line > FWAC.Show() of FMain. > > This error appeared after having modified few instructions into the SUB > initTable which just write headers in a GridWiew table... > Before the error was not present and I could see the new form. > > ---------------------------- > > An other mastery happened yesterday when I tried to pass an integer > parameter to a new form, using the same code that works nicely in other > parts of the same project: > > In FMain.class > > PUBLIC SUB mnuAll_Click() > DIM hForm AS FDXCCStats > DIM T AS Integer > T = 1 > hForm = NEW FDXCCStats(T) > FDXCCStats.Show ' <--- gives error "Not enough > parameters" END > > > in FDXCCStats.class > > PUBLIC SUB _new(Tipo AS Integer) > TipoStat = Tipo > END > > PUBLIC SUB Form_Open() > TipoStat = FMain.TStats > FillLista() > initTable > createStats > END > > In this case the error is "Not enough parameters" at FMain FDXCCStats.Show > > --------------- > > What am I doing wrong ? > > Gambas 2.19 on Debian 5.01 > > Regards > > Pino Please provide your project, and a way to reproduce the problem. If providing the full project is difficult, please try to isolate the problem in a smaller one! Thanks in advance. Regards, -- Beno?t Minisini From jredrejo at ...626... Wed Mar 3 22:40:25 2010 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Wed, 3 Mar 2010 22:40:25 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: References: <1267647898.9428.11.camel@...2376...> <201003032133.10142.gambas@...1...> Message-ID: <8eb28a501003031340k2ae0de82q8eb27076ae985d79@...627...> 2010/3/3 M. Cs. : >> >> So, concretely, you can't create Ubuntu/Debian packages from Mandriva, >> unless >> you compile the needed programs! >> > > More than that, I never did manage to install the requirements for the > Mandriva. I'm a big fan of it, although presently using Kubuntu. I'm > curious, wheter you (Benoit) or someone else did succeed to met the > dependency requirements for creating .DEB packages from within a RPM based > distro. > As rpm based distros don't have the dpkg-dev scripts to make a deb package in the right way, the only option for these cases is making a rpm package, and then, using "alien -d *.rpm" to get the deb one. This is far from perfect, but the resulting deb should work in a Debian based distribution. Regards. > Another question. Where can I find the 'tar-1.13' which would let me create > Slackware packages? > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Wed Mar 3 22:41:34 2010 From: mohareve at ...626... (M. Cs.) Date: Wed, 3 Mar 2010 22:41:34 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: References: <1267647898.9428.11.camel@...2376...> <201003032133.10142.gambas@...1...> <201003032154.23516.gambas@...1...> Message-ID: Well, I've 'Slacked' it! Downloaded tar-1.13, compiled from sources made ln -s /usr/local/bin/tar /usr/bin/tar-1.13 ,and it works. One more thing: is autopackage a distribution-independent package? Is it possible to install the programs on every Linux with this package, if no other binary is available? From pinozollo at ...626... Wed Mar 3 22:45:22 2010 From: pinozollo at ...626... (Pino Zollo) Date: Wed, 3 Mar 2010 18:45:22 -0300 Subject: [Gambas-user] Problem opening a Form In-Reply-To: <6324a42a1003031056v3cd368bdtbe7f972ac9c18bd0@...627...> References: <201003031256.38177.pinozollo@...626...> <6324a42a1003031056v3cd368bdtbe7f972ac9c18bd0@...627...> Message-ID: <201003031845.22814.pinozollo@...626...> Il mercoled? 3 marzo 2010 15:56:32 hai scritto: > TipoStat = FMain.TStats > > are you sure that TSTATs return an integer ? Changed to GAMBAS 2.20 .....the error still bothers.. Removed the line TipoStat = FMain.TStats ....no change ...still error. Commented all the lines in FillLista and initTable and still no change > PUBLIC SUB Form_Open() > ? ?FillLista() > ? ?initTable > ? ?createStats > END Only this remains with all SUBs empty....don't know what to do more... Salud Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From gambas at ...1... Wed Mar 3 22:53:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 3 Mar 2010 22:53:12 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <8eb28a501003031340k2ae0de82q8eb27076ae985d79@...627...> References: <1267647898.9428.11.camel@...2376...> <8eb28a501003031340k2ae0de82q8eb27076ae985d79@...627...> Message-ID: <201003032253.12523.gambas@...1...> > 2010/3/3 M. Cs. : > >> So, concretely, you can't create Ubuntu/Debian packages from Mandriva, > >> unless > >> you compile the needed programs! > > > > More than that, I never did manage to install the requirements for the > > Mandriva. I'm a big fan of it, although presently using Kubuntu. I'm > > curious, wheter you (Benoit) or someone else did succeed to met the > > dependency requirements for creating .DEB packages from within a RPM > > based distro. > > As rpm based distros don't have the dpkg-dev scripts to make a deb > package in the right way, the only option for these cases is making a > rpm package, and then, using "alien -d *.rpm" to get the deb one. This > is far from perfect, but the resulting deb should work in a Debian > based distribution. > > Regards. > Should I do that automatically in the IDE, or let the user do that by hand? -- Beno?t Minisini From Karl.Reinl at ...2345... Wed Mar 3 22:41:57 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 03 Mar 2010 22:41:57 +0100 Subject: [Gambas-user] What are the {} enclosed variables Message-ID: <1267652517.6626.6.camel@...40...> Salut, since a while, from time to time, I have seen things like that. Property {Font} As Font ' (this is out of the gb.report project of gambas3) Can anybody tell me the meaning of {} enclosed variables. I haven't found in doc's. -- Amicalement Charlie From mohareve at ...626... Wed Mar 3 23:01:14 2010 From: mohareve at ...626... (M. Cs.) Date: Wed, 3 Mar 2010 23:01:14 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <201003032253.12523.gambas@...1...> References: <1267647898.9428.11.camel@...2376...> <8eb28a501003031340k2ae0de82q8eb27076ae985d79@...627...> <201003032253.12523.gambas@...1...> Message-ID: I think you should add it as an option to the IDE. The only reason I'm sticked to Kubuntu is its ability to produce all the binaries. I wonder, whether there are some screenshots of the upcoming Gambas3. I'd realy learn about the planned new features in it: shall it be possible to color the columns of a gridview separately, one-by-one, shall there be other visual enhancements... Thanks! From gambas.fr at ...626... Wed Mar 3 23:09:23 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Mar 2010 23:09:23 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <1267652517.6626.6.camel@...40...> References: <1267652517.6626.6.camel@...40...> Message-ID: <6324a42a1003031409x23cc42a1kd3a3295de19215e5@...627...> it's to say to the compiler to not manage that wird as a keyword or a class for exemple Font is a class from gb.qt or gb.gtk if in a personal class you ad a property name like that : PROPERTY Font as Font or PROPERTY Left as Integer the compiler say there is an error and you cant have a property MyClass.Font or MyClass.Left To allow that you need to put the word between {} PROPERTY {font] as Font and yes it's not in the doc 2010/3/3 Charlie Reinl : > Salut, > > since a while, from time to time, I have seen things like that. > > Property {Font} As Font > ? ? ? ?' (this is out of the gb.report project of gambas3) > Can anybody tell me the meaning of {} enclosed variables. > I haven't found in doc's. > > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Mar 3 23:13:33 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Mar 2010 23:13:33 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: References: <1267647898.9428.11.camel@...2376...> <8eb28a501003031340k2ae0de82q8eb27076ae985d79@...627...> <201003032253.12523.gambas@...1...> Message-ID: <6324a42a1003031413r372928f6j253a9c16a9603fe6@...627...> shall it be possible to color the columns of a gridview separately, one-by-one, shall there be other visual enhancements... it's possible since the gambas V1 !! in gambas2 : http://gambasdoc.org/help/comp/gb.qt/.gridviewcell/background From doriano.blengino at ...1909... Wed Mar 3 23:32:28 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 03 Mar 2010 23:32:28 +0100 Subject: [Gambas-user] Debian and Ubuntu package building of Application failed In-Reply-To: <201003031846.23826.gambas@...1...> References: <1267631726.4562.9.camel@...2376...> <4B8E9847.602@...1909...> <201003031846.23826.gambas@...1...> Message-ID: <4B8EE37C.2050708@...1909...> Beno?t Minisini ha scritto: >> Vassilis K ha scritto: >> >>> Hello again, >>> >>> I just made packages of a small application for Opensuse, Madriva and >>> Fedora. Everything worked fine. >>> >>> But the package building for Debian and Ubuntu did not work! It shows: >>> ............. >>> sh: fakeroot: command not found >>> >> One clear advantage of linux over windoze is that linux often explain >> what went wrong... >> It seems that "fakeroot" is missing... probably you should install it >> (the package should be named "fakeroot"?) >> >> :-) >> >> Regards, >> Doriano >> >> > > The problem is worse than that. For example, apparently Mandriva does not make > packages for programs needed to make Debian/Ubuntu packages (fakeroot and > another one I don't remember). > > So, concretely, you can't create Ubuntu/Debian packages from Mandriva, unless > you compile the needed programs! > > I don't know if it is true for other rpms distribution, or if the contrary is > true (if you can create rpms from Ubuntu/Debian). > > I know little about RPMs based distribution. My first distribution was a redhat (2.0? Who remembers...) - the only thing I remember was the mess about .rpm packages. At a certain time, .deb-based distributions were a lot ahead (about packaging); I switched to Debian and I don't regret. At present time, may be that RPM equals or surpasses DEB, I don't know. It seems to me that you can manage rpms from debian distros; at least you can install rpm packages and, strangely enough, it works pretty well. I just tried to make an RPM from a simple gambas project. At first sight, it worked smoothly: two rpms were created, and rpm -qi -p blah blah works. I neglected to try to install them, but it seems to me that it should work... About the couple of programs missing (fakeroot and the other one), it is simply a matter of someone caring to package them and put them online. But I suspect that, instead of trying to converge, too much people want to demonstrate the superiority of one technology over another or, even worse, to make "protectionism". After having read the Debian statute I got illuminated: so I think that if it is difficult to make .deb from an rpm distribution, it is not a debian fault. But it is true that debian policies evolve, and it is difficult (or hard work) to try to follow them. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From rterry at ...1946... Thu Mar 4 00:57:32 2010 From: rterry at ...1946... (richard terry) Date: Thu, 4 Mar 2010 10:57:32 +1100 Subject: [Gambas-user] Dumb question - testing for an empty text box Message-ID: <201003041057.32703.rterry@...1946...> I almost feel embarrassed to ask this having programmed in gambas for so long, but here goes. simplest syntax for testing for no text in a textbox. I currently to if Trim(textbox1.text) = "" then etc. Anything better? Richard From rospolosco at ...152... Thu Mar 4 07:51:22 2010 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 4 Mar 2010 07:51:22 +0100 Subject: [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <201003041057.32703.rterry@...1946...> References: <201003041057.32703.rterry@...1946...> Message-ID: <201003040751.22842.rospolosco@...152...> Il gioved? 4 marzo 2010 00:57:32 richard terry ha scritto: > I almost feel embarrassed to ask this having programmed in gambas for so > long, but here goes. > > simplest syntax for testing for no text in a textbox. > > I currently to > > if Trim(textbox1.text) = "" then > > etc. > > Anything better? > > Richard > It should be: IF NOT Trim(textbox1.text) THEN Stefano > --------------------------------------------------------------------------- >--- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From oceanosoftlapalma at ...626... Thu Mar 4 08:07:57 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 4 Mar 2010 08:07:57 +0100 Subject: [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <201003040751.22842.rospolosco@...152...> References: <201003041057.32703.rterry@...1946...> <201003040751.22842.rospolosco@...152...> Message-ID: I always use for this: If Len(TextBox1.Text) = 0 Then But is the same that wrote Stefano. Regards, Ricardo D?az 2010/3/4 Stefano Palmeri > Il gioved? 4 marzo 2010 00:57:32 richard terry ha scritto: > > I almost feel embarrassed to ask this having programmed in gambas for so > > long, but here goes. > > > > simplest syntax for testing for no text in a textbox. > > > > I currently to > > > > if Trim(textbox1.text) = "" then > > > > etc. > > > > Anything better? > > > > Richard > > > > It should be: > > IF NOT Trim(textbox1.text) THEN > > Stefano > > > > > > > > > --------------------------------------------------------------------------- > >--- Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Thu Mar 4 09:18:53 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 4 Mar 2010 09:18:53 +0100 Subject: [Gambas-user] infobot wallonie In-Reply-To: <4B8E13C3.3040904@...221...> References: <4B8E13C3.3040904@...221...> Message-ID: Not me. Regards, Ricardo D?az 2010/3/3 Rolf-Werner Eilert > Do others here get these messages by infobot at ...2386... too? > > Since yesterday, each time I'm posting here I get the message from that > system. > > Regards > > Rolf > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Thu Mar 4 09:40:50 2010 From: rterry at ...1946... (richard terry) Date: Thu, 4 Mar 2010 19:40:50 +1100 Subject: [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: References: <201003041057.32703.rterry@...1946...> <201003040751.22842.rospolosco@...152...> Message-ID: <201003041940.50939.rterry@...1946...> On Thursday 04 March 2010 18:07:57 Ricardo D?az Mart?n wrote: > I always use for this: > > If Len(TextBox1.Text) = 0 Then But the user could have put ascii 32's in the textbox, so need to to Trim. Richard > > But is the same that wrote Stefano. > > Regards, > Ricardo D?az > > 2010/3/4 Stefano Palmeri > > > Il gioved? 4 marzo 2010 00:57:32 richard terry ha scritto: > > > I almost feel embarrassed to ask this having programmed in gambas for > > > so long, but here goes. > > > > > > simplest syntax for testing for no text in a textbox. > > > > > > I currently to > > > > > > if Trim(textbox1.text) = "" then > > > > > > etc. > > > > > > Anything better? > > > > > > Richard > > > > It should be: > > > > IF NOT Trim(textbox1.text) THEN > > > > Stefano > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > -- > > > > >--- Download Intel® Parallel Studio Eval > > > > > > Try the new software tools for yourself. Speed compiling, find bugs > > > proactively, and fine-tune applications for parallel performance. > > > See why Intel Parallel Studio got high marks during beta. > > > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Thu Mar 4 10:00:20 2010 From: rterry at ...1946... (richard terry) Date: Thu, 4 Mar 2010 20:00:20 +1100 Subject: [Gambas-user] Font selection vaporises gambas3 Message-ID: <201003042000.20521.rterry@...1946...> I was looking at the different fonts in the preference, saw one called 'newspaper', clicked on it > gambas up in smoke, no warning, no sig 11, just disappeared. Can anyone re-produce that. don't worry, it dosn't destroy anthing. Maybe its a kde4.4 thing. Regards richard From doriano.blengino at ...1909... Thu Mar 4 10:19:39 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 04 Mar 2010 10:19:39 +0100 Subject: [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <201003041940.50939.rterry@...1946...> References: <201003041057.32703.rterry@...1946...> <201003040751.22842.rospolosco@...152...> <201003041940.50939.rterry@...1946...> Message-ID: <4B8F7B2B.3030803@...1909...> richard terry ha scritto: > On Thursday 04 March 2010 18:07:57 Ricardo D?az Mart?n wrote: > >> I always use for this: >> >> If Len(TextBox1.Text) = 0 Then >> > > But the user could have put ascii 32's in the textbox, so need to to Trim. > > In effect, a space is different from an empty string... your original question was: > simplest syntax for testing for no text in a textbox. > and a space (ascii 32) *is* text (and in some program, like an editor, it's legitimate to "search for a blank". Apart from that, I would prefer the test -- textbox1.text <> "" -- because it is faster (no call to len()) and clearer, and easier to type and read (no parentheses). Giving that the logic of the application should treat blanks as empty strings, it would be better to clear such fields in the GUI (I know, kind of boring work): if trim(textbox1.text)="" then textbox1.text = "" This operation should be made as soon as possible, just after the user leaves the edited field, to let him know that a field with only a space inside is considered as empty. Probably this is too much care... and sometimes, programs written this way tend to be pedantic. In the end, I think that your original way should be the more correct, but it's personal taste. I love to speak about philosophic things... :-) Regards, Doriano From jscops at ...11... Thu Mar 4 10:53:43 2010 From: jscops at ...11... (Jack) Date: Thu, 04 Mar 2010 10:53:43 +0100 Subject: [Gambas-user] Dumb question - testing for an empty text box In-Reply-To: <201003041057.32703.rterry@...1946...> References: <201003041057.32703.rterry@...1946...> Message-ID: <4B8F8327.4000100@...11...> richard terry a ?crit : > I almost feel embarrassed to ask this having programmed in gambas for so long, > but here goes. > > simplest syntax for testing for no text in a textbox. > > I currently to > > if Trim(textbox1.text) = "" then salut Richard, if isnull(Textbox1.text) is an another way. Jack From robert1juhasz at ...626... Thu Mar 4 12:11:51 2010 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Thu, 4 Mar 2010 12:11:51 +0100 Subject: [Gambas-user] printing issue Message-ID: <68652a0b1003040311i597d75cewa81f57eafa60a1c9@...627...> Hello List, I have a small issue with the printer handling of my application: when I try to print, the list of printers is empty and consequently the OK button is disabled (there are printers installed on the computers). If I click on cancel, the default printer prints out the document. If I print to file it works well. Development computer: Ubuntu 9.10, package made on Gambas 2.19 and 2.20. User computer: Ubuntu 9.10, no gambas installed. I suppose that the code is ok as it worked in the past, however the environment was different (User computer: Ubuntu 9.04, no gambas installed). Is it a known problem with some known solution or can it be my mistake? The printing part of my code is like that: ---------------------------------------------------------- SUB plotOnPrinter() printer.Setup() Draw.Begin(printer) ' here I draw what I wanna print Draw.end END ---------------------------------------------------------- Thanks for your help, Robi From keithclark at ...2185... Thu Mar 4 12:34:52 2010 From: keithclark at ...2185... (Keith Clark) Date: Thu, 04 Mar 2010 06:34:52 -0500 Subject: [Gambas-user] Strange form problem Message-ID: <1267702492.4742.4.camel@...2186...> I have designed a form and all looked great. Suddenly the form no longer looks the same in the design mode compared to the run mode. The objects are no longer in the same places as shown when I'm in programming mode. Not sure what went wrong and if this is maybe a bug? Keith From doriano.blengino at ...1909... Thu Mar 4 12:39:21 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 04 Mar 2010 12:39:21 +0100 Subject: [Gambas-user] printing issue In-Reply-To: <68652a0b1003040311i597d75cewa81f57eafa60a1c9@...627...> References: <68652a0b1003040311i597d75cewa81f57eafa60a1c9@...627...> Message-ID: <4B8F9BE9.6060902@...1909...> Robert JUHASZ ha scritto: > Hello List, > > I have a small issue with the printer handling of my application: when I try > to print, the list of printers is empty and consequently the OK button is > disabled (there are printers installed on the computers). If I click on > cancel, the default printer prints out the document. If I print to file it > works well. > > Development computer: Ubuntu 9.10, package made on Gambas 2.19 and 2.20. > User computer: Ubuntu 9.10, no gambas installed. > It happened to me, on an Ubuntu machine. If I well remember, I deleted the file /etc/printcap which was /not/ containing right informations about the installed printers. There was cups installed but, after an analysis, I discovered that QT searched in printcap instead of the right place. By deleting the file, QT started to search in the right place. I don't have that machine at hands right now, so I only go by memory; you can carefully make some test. I used strace to see what gambas/QT was doing: if you want you can do the same. Please take this words seriously - really I am not sure. Regards, Doriano From rterry at ...1946... Thu Mar 4 12:38:19 2010 From: rterry at ...1946... (richard terry) Date: Thu, 4 Mar 2010 22:38:19 +1100 Subject: [Gambas-user] Strange form problem In-Reply-To: <1267702492.4742.4.camel@...2186...> References: <1267702492.4742.4.camel@...2186...> Message-ID: <201003042238.19446.rterry@...1946...> On Thursday 04 March 2010 22:34:52 Keith Clark wrote: > I have designed a form and all looked great. Suddenly the form no > longer looks the same in the design mode compared to the run mode. The > objects are no longer in the same places as shown when I'm in > programming mode. > > Not sure what went wrong and if this is maybe a bug? > > Keith > > > > --------------------------------------------------------------------------- > --- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user send us the project to have a look, otherwise, can't help you Richard From keithclark at ...2185... Thu Mar 4 12:54:24 2010 From: keithclark at ...2185... (Keith Clark) Date: Thu, 04 Mar 2010 06:54:24 -0500 Subject: [Gambas-user] Strange form problem In-Reply-To: <201003042238.19446.rterry@...1946...> References: <1267702492.4742.4.camel@...2186...> <201003042238.19446.rterry@...1946...> Message-ID: <1267703664.4678.2.camel@...2186...> On Thu, 2010-03-04 at 22:38 +1100, richard terry wrote: > On Thursday 04 March 2010 22:34:52 Keith Clark wrote: > > I have designed a form and all looked great. Suddenly the form no > > longer looks the same in the design mode compared to the run mode. The > > objects are no longer in the same places as shown when I'm in > > programming mode. > > > > Not sure what went wrong and if this is maybe a bug? > > > > Keith > > > send us the project to have a look, otherwise, can't help you > > Richard > Thanks for the response Richard. I will in the future attach my project with my question. I did find my problem with this one though. I somehow inadvertently hit the 'column' selection in the Arrangement function of the form somehow. All is well now. Thanks, Keith From leonardo at ...1237... Thu Mar 4 15:06:48 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 04 Mar 2010 15:06:48 +0100 Subject: [Gambas-user] Gambas 2 SVN & libtool Message-ID: <20100304150648.3e1lmqz7dw0go8os@...2389...> I got an error concerning the version of libtool when I try to compile Gambas2 from SVN: ************************************************************ ALL COMPONENTS WILL BE COMPILED ************************************************************ make all-recursive make[1]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' Making all in main make[2]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make all-recursive make[3]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' Making all in gbx make[4]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -I/usr/lib/libffi-3.0.8/include -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. make[4]: *** [gb_la-gbx_c_class.lo] Error 63 make[4]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' make: *** [all] Error 2 This is the output from libtool: [leo@"hp_host" ~]$ libtool --version ltmain.sh (GNU libtool) 2.2.6b Written by Gordon Matzigkeit , 1996 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di www.gambas-it.org Il portale della comunit? italiana dei programmatori Gambas From eilert-sprachen at ...221... Thu Mar 4 15:48:53 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 04 Mar 2010 15:48:53 +0100 Subject: [Gambas-user] Calendar with colours Message-ID: <4B8FC855.9080903@...221...> Hi (probably Beno?t) Do you know if it is possible to colorize certain days in the calendar somehow to mark holidays for example? Regards Rolf From gambas at ...1... Thu Mar 4 15:55:05 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Mar 2010 15:55:05 +0100 Subject: [Gambas-user] Font selection vaporises gambas3 In-Reply-To: <201003042000.20521.rterry@...1946...> References: <201003042000.20521.rterry@...1946...> Message-ID: <201003041555.05993.gambas@...1...> > I was looking at the different fonts in the preference, saw one called > 'newspaper', clicked on it > gambas up in smoke, no warning, no sig 11, > just disappeared. > > Can anyone re-produce that. don't worry, it dosn't destroy anthing. Maybe > its a kde4.4 thing. > > Regards > > richard > This is apparently a crash: please reproduce it in 'gdb' so that I can get a backtrace, and see if it is a bug in Qt or in Gambas. Regards, -- Beno?t Minisini From gambas at ...1... Thu Mar 4 16:13:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 4 Mar 2010 16:13:12 +0100 Subject: [Gambas-user] Calendar with colours In-Reply-To: <4B8FC855.9080903@...221...> References: <4B8FC855.9080903@...221...> Message-ID: <201003041613.12276.gambas@...1...> > Hi (probably Beno?t) > > Do you know if it is possible to colorize certain days in the calendar > somehow to mark holidays for example? > > Regards > > Rolf > In Gambas 3, DateChooser has a SetDateColor() method. Regards, -- Beno?t Minisini From dosida at ...626... Thu Mar 4 17:51:07 2010 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 4 Mar 2010 09:51:07 -0700 Subject: [Gambas-user] printing issue In-Reply-To: <4B8F9BE9.6060902@...1909...> References: <68652a0b1003040311i597d75cewa81f57eafa60a1c9@...627...> <4B8F9BE9.6060902@...1909...> Message-ID: <82bffccf1003040851i4cedc3d9k8f831e48d799750f@...627...> Hey Robi, As an alternative you could also get a list of the install printers by doing Dim prnList as String SHELL (lpstat -a) to prnList Hope this helps Regards, Dimitris On Thu, Mar 4, 2010 at 4:39 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Robert JUHASZ ha scritto: > > Hello List, > > > > I have a small issue with the printer handling of my application: when I > try > > to print, the list of printers is empty and consequently the OK button is > > disabled (there are printers installed on the computers). If I click on > > cancel, the default printer prints out the document. If I print to file > it > > works well. > > > > Development computer: Ubuntu 9.10, package made on Gambas 2.19 and 2.20. > > User computer: Ubuntu 9.10, no gambas installed. > > > It happened to me, on an Ubuntu machine. > If I well remember, I deleted the file /etc/printcap which was /not/ > containing right informations about the installed printers. There was > cups installed but, after an analysis, I discovered that QT searched in > printcap instead of the right place. By deleting the file, QT started to > search in the right place. > > I don't have that machine at hands right now, so I only go by memory; > you can carefully make some test. I used strace to see what gambas/QT > was doing: if you want you can do the same. Please take this words > seriously - really I am not sure. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Mar 4 18:19:44 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 04 Mar 2010 18:19:44 +0100 Subject: [Gambas-user] Calendar with colours In-Reply-To: <201003041613.12276.gambas@...1...> References: <4B8FC855.9080903@...221...> <201003041613.12276.gambas@...1...> Message-ID: <4B8FEBB0.7060509@...221...> Am 04.03.2010 16:13, schrieb Beno?t Minisini: >> Hi (probably Beno?t) >> >> Do you know if it is possible to colorize certain days in the calendar >> somehow to mark holidays for example? >> >> Regards >> >> Rolf >> > > In Gambas 3, DateChooser has a SetDateColor() method. > > Regards, > Oh, great! I looked it up in the documentation, and it's undocumented yet. Then I even found it exists in Gambas 2 already (at least under qt). Tested it, it works. Thanks for the tip! Rolf From Karl.Reinl at ...2345... Thu Mar 4 19:11:24 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 04 Mar 2010 19:11:24 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <6324a42a1003031409x23cc42a1kd3a3295de19215e5@...627...> References: <1267652517.6626.6.camel@...40...> <6324a42a1003031409x23cc42a1kd3a3295de19215e5@...627...> Message-ID: <1267726284.6585.11.camel@...40...> Salut, while started that way, I keep on going top writing. I'm willing to set it into the wiki, but I do not know where to place it, any any hint ! To all these thousands of gambas using ghostwriters, I would place a lightly changed version of Fabien's text, pleas make it better. Am Mittwoch, den 03.03.2010, 23:09 +0100 schrieb Fabien Bodard: > it's to say to the compiler to not manage that wird as a keyword or a class > > for exemple Font is a class from gb.qt or gb.gtk > > if in a personal class you ad a property name like that : > > PROPERTY Font as Font > or PROPERTY Left as Integer > > the compiler say there is an error and you cant have a property > MyClass.Font or MyClass.Left > > To allow that you need to put the word between {} > > PROPERTY {font] as Font > > and yes it's not in the doc > > > > > > 2010/3/3 Charlie Reinl : > > Salut, > > > > since a while, from time to time, I have seen things like that. > > > > Property {Font} As Font > > ' (this is out of the gb.report project of gambas3) > > Can anybody tell me the meaning of {} enclosed variables. > > I haven't found in doc's. > > > > > > -- > > Amicalement > > Charlie > > -- Amicalement Charlie From prog at ...2177... Fri Mar 5 02:55:11 2010 From: prog at ...2177... (craf) Date: Thu, 04 Mar 2010 22:55:11 -0300 Subject: [Gambas-user] Property expand in Tabstrip Message-ID: <1267754111.3670.0.camel@...651...> Hi. How can I set a textbox to the width of a tastrip?.The property does not expand. Regards From charles at ...1784... Fri Mar 5 09:10:46 2010 From: charles at ...1784... (charlesg) Date: Fri, 5 Mar 2010 00:10:46 -0800 (PST) Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <1267726284.6585.11.camel@...40...> References: <1267652517.6626.6.camel@...40...> <6324a42a1003031409x23cc42a1kd3a3295de19215e5@...627...> <1267726284.6585.11.camel@...40...> Message-ID: <27790954.post@...1379...> Hi The ghostwriters have been a bit ephemeral. How about a simple: To use a property name that is also a Gambas reserved name in your personal class, you must enclose the property name within {}. For example: Property Font as Font Property Left as Integer will both cause a compile error. Property {Font} as Font Property {Left} as Integer will not. rgds -- View this message in context: http://old.nabble.com/What-are-the-%7B%7D-enclosed-variables-tp27774331p27790954.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Mar 5 09:23:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Mar 2010 09:23:19 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <27790954.post@...1379...> References: <1267652517.6626.6.camel@...40...> <1267726284.6585.11.camel@...40...> <27790954.post@...1379...> Message-ID: <201003050923.20029.gambas@...1...> > Hi > > The ghostwriters have been a bit ephemeral. > > How about a simple: > > To use a property name that is also a Gambas reserved name in your personal > class, you must enclose the property name within {}. > > For example: > Property Font as Font > Property Left as Integer > > will both cause a compile error. > > Property {Font} as Font > Property {Left} as Integer > > will not. > > rgds { ... } is a syntax that prevents the compiler from interpreting a symbol as a reserverd keyword. It allows to use any symbol as an identifier. This syntax comes from Visual Basic. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Fri Mar 5 10:01:23 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 05 Mar 2010 10:01:23 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <201003050923.20029.gambas@...1...> References: <1267652517.6626.6.camel@...40...> <1267726284.6585.11.camel@...40...> <27790954.post@...1379...> <201003050923.20029.gambas@...1...> Message-ID: <4B90C863.4070003@...221...> Am 05.03.2010 09:23, schrieb Beno?t Minisini: >> Hi >> >> The ghostwriters have been a bit ephemeral. >> >> How about a simple: >> >> To use a property name that is also a Gambas reserved name in your personal >> class, you must enclose the property name within {}. >> >> For example: >> Property Font as Font >> Property Left as Integer >> >> will both cause a compile error. >> >> Property {Font} as Font >> Property {Left} as Integer >> >> will not. >> >> rgds > > { ... } is a syntax that prevents the compiler from interpreting a symbol as a > reserverd keyword. It allows to use any symbol as an identifier. > > This syntax comes from Visual Basic. > > Regards, > I find Charles' approach more straight-forward, it points to the solution, not the problem. This is exactly what the less gifted programmers like me would look for ;-) But the explanation for VB isn't bad, either. Maybe we could mention this too: --- To use a property name that is also a Gambas reserved name in your personal class, you must enclose the property name within {}. [then the examples] Thus the compiler is kept from interpreting a symbol as a reserved keyword which allows you to use any desired symbol as an identifier. --- And it changes the original text so we do not produce copyright problems... Rolf From leonardo at ...1237... Fri Mar 5 10:31:50 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Mar 2010 10:31:50 +0100 Subject: [Gambas-user] Another error compiling Gambas2 SVn Message-ID: <20100305103150.xd84hp9uog0w0gwk@...2389...> I got this: Making all in gbx make[4]: Entering directory `/var/abs/local/yaourtbuild/gambas2-svn/src/gambas2-build/main/gbx' /bin/sh ../libtool --tag=CC --mode=link gcc -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -O0 -module -no-undefined -Wl,--hash-style=gnu -Wl,--as-needed -o gb.la -rpath /usr/lib/gambas2 gb_la-gbx_c_class.lo gb_la-gbx_c_collection.lo gb_la-gbx_c_error.lo gb_la-gbx_c_gambas.lo gb_la-gbx_c_file.lo gb_la-gbx_c_application.lo gb_la-gbx_c_array.lo gb_la-gbx_c_process.lo gb_la-gbx_c_string.lo gb_la-gbx_c_subcollection.lo gb_la-gbx_c_enum.lo gb_la-gbx_c_timer.lo gb_la-gbx_c_quote.lo gb_la-gbx_class_info.lo -lm -ldl -lpthread -lffi gcc -shared .libs/gb_la-gbx_c_class.o .libs/gb_la-gbx_c_collection.o .libs/gb_la-gbx_c_error.o .libs/gb_la-gbx_c_gambas.o .libs/gb_la-gbx_c_file.o .libs/gb_la-gbx_c_application.o .libs/gb_la-gbx_c_array.o .libs/gb_la-gbx_c_process.o .libs/gb_la-gbx_c_string.o .libs/gb_la-gbx_c_subcollection.o .libs/gb_la-gbx_c_enum.o .libs/gb_la-gbx_c_timer.o .libs/gb_la-gbx_c_quote.o .libs/gb_la-gbx_class_info.o -lm -ldl -lpthread -lffi -lc --hash-style=gnu --as-needed -soname gb.so.0 -o .libs/gb.so.0.0.0 gcc: gb.so.0: No such file or directory gcc: unrecognized option '-soname' make[4]: *** [gb.la] Error 1 make[4]: Leaving directory `/var/abs/local/yaourtbuild/gambas2-svn/src/gambas2-build/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/abs/local/yaourtbuild/gambas2-svn/src/gambas2-build/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/abs/local/yaourtbuild/gambas2-svn/src/gambas2-build/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/abs/local/yaourtbuild/gambas2-svn/src/gambas2-build' make: *** [all] Error 2 Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di www.gambas-it.org Il portale della comunit? italiana dei programmatori Gambas From leonardo at ...1237... Fri Mar 5 10:29:32 2010 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 05 Mar 2010 10:29:32 +0100 Subject: [Gambas-user] Gambas2 & SVN: problem Message-ID: <20100305102932.6pbo7v1vkw0kogkw@...2389...> I got an error concerning the version of libtool when I try to compile Gambas2 from SVN: ************************************************************ ALL COMPONENTS WILL BE COMPILED ************************************************************ make all-recursive make[1]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' Making all in main make[2]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make all-recursive make[3]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' Making all in gbx make[4]: Entering directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -I/usr/lib/libffi-3.0.8/include -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. make[4]: *** [gb_la-gbx_c_class.lo] Error 63 make[4]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' make: *** [all] Error 2 This is the output from libtool: [leo@"hp_host" ~]$ libtool --version ltmain.sh (GNU libtool) 2.2.6b Written by Gordon Matzigkeit , 1996 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Co-fondatore di www.gambas-it.org Il portale della comunit? italiana dei programmatori Gambas From gambas at ...1... Fri Mar 5 12:43:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Mar 2010 12:43:12 +0100 Subject: [Gambas-user] Gambas2 & SVN: problem In-Reply-To: <20100305102932.6pbo7v1vkw0kogkw@...2389...> References: <20100305102932.6pbo7v1vkw0kogkw@...2389...> Message-ID: <201003051243.12304.gambas@...1...> > I got an error concerning the version of libtool when I try to compile > Gambas2 from SVN: > > > ************************************************************ > > ALL COMPONENTS WILL BE COMPILED > > ************************************************************ > > make all-recursive > make[1]: Entering directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' > Making all in main > make[2]: Entering directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' > make all-recursive > make[3]: Entering directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' > Making all in gbx > make[4]: Entering directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx > ' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I.. -DGBX_INFO > -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char > -fvisibility=hidden -g -Os > -I../share -D_REENTRANT -I/usr/lib/libffi-3.0.8/include -O0 -MT > gb_la-gbx_c_class.lo > -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f > 'gbx_c_class.c' || echo './'`gbx_c_class.c > libtool: Version mismatch error. This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > libtool: and run autoconf again. > make[4]: *** [gb_la-gbx_c_class.lo] Error 63 > make[4]: Leaving directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main/gbx > ' make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/tmp/yaourt-tmp-leo/aur-gambas2-svn/gambas2-svn/src/gambas2-build' > make: *** [all] Error 2 > > > This is the output from libtool: > [leo@"hp_host" ~]$ libtool --version > ltmain.sh (GNU libtool) 2.2.6b > Written by Gordon Matzigkeit , 1996 > > Copyright (C) 2008 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > Ciao. > Leo. > What happens if you edit the main/configure.ac file and replace the "LT_INIT" in it by "AC_PROG_LIBTOOL"? Of course, you have to do a ./reconf && ./configure after that. Just test in the main directory, do not reconf an configure the entire package. -- Beno?t Minisini From Karl.Reinl at ...2345... Fri Mar 5 13:52:43 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 05 Mar 2010 13:52:43 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <4B90C863.4070003@...221...> References: <1267652517.6626.6.camel@...40...> <1267726284.6585.11.camel@...40...> <27790954.post@...1379...> <201003050923.20029.gambas@...1...> <4B90C863.4070003@...221...> Message-ID: <1267793563.6541.8.camel@...40...> Am Freitag, den 05.03.2010, 10:01 +0100 schrieb Rolf-Werner Eilert: > Am 05.03.2010 09:23, schrieb Beno?t Minisini: > >> Hi > >> > >> The ghostwriters have been a bit ephemeral. > >> > >> How about a simple: > >> > >> To use a property name that is also a Gambas reserved name in your personal > >> class, you must enclose the property name within {}. > >> > >> For example: > >> Property Font as Font > >> Property Left as Integer > >> > >> will both cause a compile error. > >> > >> Property {Font} as Font > >> Property {Left} as Integer > >> > >> will not. > >> > >> rgds > > > > { ... } is a syntax that prevents the compiler from interpreting a symbol as a > > reserverd keyword. It allows to use any symbol as an identifier. > > > > This syntax comes from Visual Basic. > > > > Regards, > > > > I find Charles' approach more straight-forward, it points to the > solution, not the problem. This is exactly what the less gifted > programmers like me would look for ;-) But the explanation for VB isn't > bad, either. Maybe we could mention this too: > > --- > To use a property name that is also a Gambas reserved name in your > personal class, you must enclose the property name within {}. > > [then the examples] > > Thus the compiler is kept from interpreting a symbol as a reserved > keyword which allows you to use any desired symbol as an identifier. > --- > > And it changes the original text so we do not produce copyright problems... > > Rolf Salut, as I saw there are two places to set it : first: Variable Declaration http://gambasdoc.org/help/lang/vardecl second: Local Variable Declaration http://gambasdoc.org/help/lang/localdecl If there is(are) a better place(s) let me know, I will do it this weekend. At the end of the two mentioned pages I will add the following text. Special in Declaration: To use a property name that is also a Gambas reserved name in your personal class, you must enclose the property name within {}. For example: will both cause a compile error.|will not. --------------------------------+------------------------------------- Property Font as Font | Property {Font} as Font Property Left as Integer | Property {Left} as Integer Thus the compiler is kept from interpreting a symbol as a reserved keyword which allows you to use any desired symbol as an identifier. -- Cordialement Charlie From mohareve at ...626... Fri Mar 5 15:12:09 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 5 Mar 2010 15:12:09 +0100 Subject: [Gambas-user] Where are the autopackage files Message-ID: I've tried to create the Autopackage file for my app, and although it says everything is O.K I cannot find the output file. I suppose it should have .package extension, isn't? Where is it? From ea7dfh at ...2382... Fri Mar 5 16:32:52 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Fri, 05 Mar 2010 16:32:52 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: References: Message-ID: <4B912424.4000307@...2382...> M. Cs. escribi?: > I've tried to create the Autopackage file for my app, and although it says > everything is O.K I cannot find the output file. I suppose it should have > .package extension, isn't? Where is it? Do you mean "Autotools"? If so, it will placed where you did choosen at the previous page of the wizard. @Beno?t Trying to create an Ubuntu package in Gambas3 (SVN 2745) this is what I got: ------ Creando paquete para Ubuntu. Creando el directorio de construcci?n. Creando archivo de escritorio... La creaci?n del paquete ha fallado. Package.IsConsoleProject.200: Unknown symbol 'Type' in class 'CComponent' ------ This happens with whatever project I'm using. Regards, Jesus From ea7dfh at ...2382... Fri Mar 5 16:47:10 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Fri, 05 Mar 2010 16:47:10 +0100 Subject: [Gambas-user] Gambas3 "Dock Widget" in qt Message-ID: <4B91277E.3010701@...2382...> This is for Beno?t :-) As far as I'm experimenting with latest Gambas3 snapshot, I haven't found a "Dock Widget" like in Qt Widgets (Qt Designer). Is it planned to do so? Thanks, Jesus From les at ...2337... Fri Mar 5 09:58:05 2010 From: les at ...2337... (Les Hardy) Date: Fri, 05 Mar 2010 08:58:05 +0000 Subject: [Gambas-user] Font selection vaporises gambas3 In-Reply-To: <201003042000.20521.rterry@...1946...> References: <201003042000.20521.rterry@...1946...> Message-ID: <4B90C79D.1080600@...2337...> richard terry wrote: > I was looking at the different fonts in the preference, saw one called > 'newspaper', clicked on it > gambas up in smoke, no warning, no sig 11, just > disappeared. > > Can anyone re-produce that. don't worry, it dosn't destroy anthing. Maybe its > a kde4.4 thing. > > Regards > > richard > > I cannot find a 'newspaper' font on my fontlist. Ubuntu 9.04, Gambas 2.20 From mohareve at ...626... Fri Mar 5 18:17:02 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 5 Mar 2010 18:17:02 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: <4B912424.4000307@...2382...> References: <4B912424.4000307@...2382...> Message-ID: That isn't correct at all: I can find all the packages for different distros, including the Slackware, but I cannot see any .package file, although I have Autotools installed. From gambas at ...1... Fri Mar 5 18:56:35 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 5 Mar 2010 18:56:35 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: <4B912424.4000307@...2382...> References: <4B912424.4000307@...2382...> Message-ID: <201003051856.35282.gambas@...1...> > M. Cs. escribi?: > > I've tried to create the Autopackage file for my app, and although it > > says everything is O.K I cannot find the output file. I suppose it > > should have .package extension, isn't? Where is it? > > Do you mean "Autotools"? > > If so, it will placed where you did choosen at the previous page of the > wizard. > > @Beno?t > Trying to create an Ubuntu package in Gambas3 (SVN 2745) this is what I > got: > > ------ > Creando paquete para Ubuntu. > Creando el directorio de construcci?n. > Creando archivo de escritorio... > La creaci?n del paquete ha fallado. > Package.IsConsoleProject.200: Unknown symbol 'Type' in class 'CComponent' > ------ > > This happens with whatever project I'm using. > > Regards, > > Jesus > Fixed in revision #2753. Regards, -- Beno?t Minisini From mohareve at ...626... Fri Mar 5 20:06:30 2010 From: mohareve at ...626... (M. Cs.) Date: Fri, 5 Mar 2010 20:06:30 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: <201003051856.35282.gambas@...1...> References: <4B912424.4000307@...2382...> <201003051856.35282.gambas@...1...> Message-ID: I still cannot produce Autotools file. Is it myapp.package or something else? Gambas 2.19 here. From oceanosoftlapalma at ...626... Fri Mar 5 20:35:14 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 5 Mar 2010 20:35:14 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE Message-ID: Hi, Did somebody connected gambas to an oracle database? Is the only way using ODBC? I'm goint to port a windows based application made with MS Access that get and mix data from MSSQLServer and Oracle to gambas and I don't know if is possible to do this with gambas. I allways use gambas as a MySQL frontend and I'm not sure how to do this. I think I can use Oracle dblinks to connect whith main dababase and migrate data from MSSQLServer to Oracle Server (because Oracle Server is not replaceable and MSQLServer yes). All your ideas are wellcome! Regards, Ricardo D?az From gambas.fr at ...626... Fri Mar 5 21:22:15 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 Mar 2010 21:22:15 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: References: Message-ID: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> the better way will be to write a driver ... but oracle have a proprietary licence 2010/3/5 Ricardo D?az Mart?n : > Hi, > > Did somebody connected gambas to an oracle database? Is the only way using > ODBC? > > I'm goint to port a windows based application made with MS Access that get > and mix data from MSSQLServer and Oracle to gambas and I don't know if is > possible to do this with gambas. > > I allways use gambas as a MySQL frontend and I'm not sure how to do this. > > I think I can use Oracle dblinks to connect whith main dababase and migrate > data from MSSQLServer to Oracle Server (because Oracle Server is not > replaceable and MSQLServer yes). > > All your ideas are wellcome! > > Regards, > Ricardo D?az > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Mar 5 21:49:54 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 Mar 2010 21:49:54 +0100 Subject: [Gambas-user] Gambas3 "Dock Widget" in qt In-Reply-To: <4B91277E.3010701@...2382...> References: <4B91277E.3010701@...2382...> Message-ID: <6324a42a1003051249m75817306s788f0e106bd0ecc8@...627...> i think it is possible to make a componant in gambas for that ... you can try to do it if you want 2010/3/5 EA7DFH : > This is for Beno?t :-) > > As far as I'm experimenting with latest Gambas3 snapshot, I haven't > found a "Dock Widget" like in Qt Widgets (Qt Designer). > > Is it planned to do so? > > Thanks, > > Jesus > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sat Mar 6 00:07:05 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sat, 06 Mar 2010 00:07:05 +0100 Subject: [Gambas-user] Gambas3 "Dock Widget" in qt In-Reply-To: <6324a42a1003051249m75817306s788f0e106bd0ecc8@...627...> References: <4B91277E.3010701@...2382...> <6324a42a1003051249m75817306s788f0e106bd0ecc8@...627...> Message-ID: <4B918E99.4000203@...2382...> Fabien Bodard escribi?: > i think it is possible to make a componant in gambas for that ... you > can try to do it if you want > > 2010/3/5 EA7DFH : >> This is for Beno?t :-) >> >> As far as I'm experimenting with latest Gambas3 snapshot, I haven't >> found a "Dock Widget" like in Qt Widgets (Qt Designer). >> >> Is it planned to do so? >> >> Thanks, >> >> Jesus Unfortunately I don't know C/C++ to do that. Furthermore, I think there may be more components involved for Docking to work, as gb.qt itself. Dreaming is free... :-) Regards, Jesus From gambas at ...1... Sat Mar 6 01:01:46 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 01:01:46 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: References: <201003051856.35282.gambas@...1...> Message-ID: <201003060101.46751.gambas@...1...> > I still cannot produce Autotools file. Is it myapp.package or something > else? Gambas 2.19 here. Does the packager return any error? Otherwise you should find the *.tar.gz package inside the directory you specified. Regards, -- Beno?t Minisini From rterry at ...1946... Sat Mar 6 04:24:15 2010 From: rterry at ...1946... (rterry at ...1946...) Date: Sat, 6 Mar 2010 14:24:15 +1100 (EST) Subject: [Gambas-user] X--tag-CC command not found Message-ID: <59927.220.233.85.180.1267845855.squirrel@...2391...> kubuntu jaunty lib tool 2.2.6 Won''t compile,any help appriated. richard gambas-user at ...2390... 1.16 From mohareve at ...626... Sat Mar 6 08:23:08 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 6 Mar 2010 08:23:08 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: <201003060101.46751.gambas@...1...> References: <201003051856.35282.gambas@...1...> <201003060101.46751.gambas@...1...> Message-ID: O.K. I was only thinking that it should have extension .package, since at Autopackage's site they were speaking about it. From oceanosoftlapalma at ...626... Sat Mar 6 09:51:03 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sat, 6 Mar 2010 09:51:03 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> Message-ID: Qt libraries have got Oracle connectivity and gambas uses these. How can add suppor for this in gambas? Other way can be create a C++ component, but there is a lot of time I haven't used it. Any tips? Thanks in advance. 2010/3/5 Fabien Bodard > the better way will be to write a driver ... but oracle have a > proprietary licence > > 2010/3/5 Ricardo D?az Mart?n : > > Hi, > > > > Did somebody connected gambas to an oracle database? Is the only way > using > > ODBC? > > > > I'm goint to port a windows based application made with MS Access that > get > > and mix data from MSSQLServer and Oracle to gambas and I don't know if is > > possible to do this with gambas. > > > > I allways use gambas as a MySQL frontend and I'm not sure how to do this. > > > > I think I can use Oracle dblinks to connect whith main dababase and > migrate > > data from MSSQLServer to Oracle Server (because Oracle Server is not > > replaceable and MSQLServer yes). > > > > All your ideas are wellcome! > > > > Regards, > > Ricardo D?az > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From les at ...2337... Sat Mar 6 09:26:50 2010 From: les at ...2337... (Les Hardy) Date: Sat, 06 Mar 2010 08:26:50 +0000 Subject: [Gambas-user] Property expand in Tabstrip In-Reply-To: <1267754111.3670.0.camel@...651...> References: <1267754111.3670.0.camel@...651...> Message-ID: <4B9211CA.8050501@...2337...> craf wrote: > Hi. > > How can I set a textbox to the width of a tastrip?.The property does not > expand. > > Regards > > > I assume the tabstrip is arrange by the form. With TextBox1 in TabStrip1.... PUBLIC SUB Form_Arrange() TextBox1.Move(5, TextBox1.top, TabStrip1.width - 10, TextBox1.height) END Regards Les Hardy From les at ...2337... Sat Mar 6 09:34:42 2010 From: les at ...2337... (Les Hardy) Date: Sat, 06 Mar 2010 08:34:42 +0000 Subject: [Gambas-user] Property expand in Tabstrip In-Reply-To: <1267754111.3670.0.camel@...651...> References: <1267754111.3670.0.camel@...651...> Message-ID: <4B9213A2.1030306@...2337...> craf wrote: > Hi. > > How can I set a textbox to the width of a tastrip?.The property does not > expand. > > Regards > > > You can also do it directly on the tabstrip... PUBLIC SUB TabStrip1_Arrange() TextBox1.Move(5, TextBox1.top, TabStrip1.width - 10, TextBox1.height) END Les Hardy From gambas.fr at ...626... Sat Mar 6 12:52:27 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Mar 2010 12:52:27 +0100 Subject: [Gambas-user] Gambas3 "Dock Widget" in qt In-Reply-To: <4B918E99.4000203@...2382...> References: <4B91277E.3010701@...2382...> <6324a42a1003051249m75817306s788f0e106bd0ecc8@...627...> <4B918E99.4000203@...2382...> Message-ID: <6324a42a1003060352t7c06a2e0o3bf9656a979ed48d@...627...> 2010/3/6 EA7DFH : > Fabien Bodard escribi?: >> i think it is possible to make a componant in gambas for that ... you >> can try to do it if you want >> >> 2010/3/5 EA7DFH : >>> This is for Beno?t :-) >>> >>> As far as I'm experimenting with latest Gambas3 snapshot, I haven't >>> found a "Dock Widget" like in Qt Widgets (Qt Designer). >>> >>> Is it planned to do so? >>> >>> Thanks, >>> >>> Jesus > > Unfortunately I don't know C/C++ to do that. Furthermore, I think there > may be more components involved for Docking to work, as gb.qt itself. all gambas compents are not in C/C++... for example gb.report, gb.form, gb.db.form, etc are writted in gambas basic ! > Dreaming is free... :-) > > Regards, > > Jesus > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Mar 6 12:59:08 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Mar 2010 12:59:08 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> Message-ID: <6324a42a1003060359y644e487n349ff52f987b06be@...627...> 2010/3/6 Ricardo D?az Mart?n : > Qt libraries have got Oracle connectivity and gambas uses these. How can add > suppor for this in gambas? Other way can be create a C++ component, but > there is a lot of time I haven't used it. Any tips? Gambas use qt libs only for the gui part , for example dbus, mysql, and else are directly managed by gambas... so an application with another gui can access to these parts(gtk, sdl, console app, cgi) if you want to see how to do a database driver look in the gambas source in gb.db.mysql/ > > Thanks in advance. > > 2010/3/5 Fabien Bodard > >> the better way will be to write a driver ... but oracle have a >> proprietary licence >> >> 2010/3/5 Ricardo D?az Mart?n : >> > Hi, >> > >> > Did somebody connected gambas to an oracle database? Is the only way >> using >> > ODBC? >> > >> > I'm goint to port a windows based application made with MS Access that >> get >> > and mix data from MSSQLServer and Oracle to gambas and I don't know if is >> > possible to do this with gambas. >> > >> > I allways use gambas as a MySQL frontend and I'm not sure how to do this. >> > >> > I think I can use Oracle dblinks to connect whith main dababase and >> migrate >> > data from MSSQLServer to Oracle Server (because Oracle Server is not >> > replaceable and MSQLServer yes). >> > >> > All your ideas are wellcome! >> > >> > Regards, >> > Ricardo D?az >> > >> ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Mar 6 13:00:31 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Mar 2010 13:00:31 +0100 Subject: [Gambas-user] X--tag-CC command not found In-Reply-To: <59927.220.233.85.180.1267845855.squirrel@...2391...> References: <59927.220.233.85.180.1267845855.squirrel@...2391...> Message-ID: <6324a42a1003060400y318c2628jf6e1e6cdca7e0922@...627...> i've jaunty too what is your problem ? 2010/3/6 : > kubuntu jaunty lib tool 2.2.6 > > Won''t compile,any help appriated. > > richard > > gambas-user at ...2390... 1.16 > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Mar 6 14:46:18 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 14:46:18 +0100 Subject: [Gambas-user] Where are the autopackage files In-Reply-To: References: <201003060101.46751.gambas@...1...> Message-ID: <201003061446.18584.gambas@...1...> > O.K. I was only thinking that it should have extension .package, since at > Autopackage's site they were speaking about it. ?! Autopackage and autotools have nothing in common, except the four first letters. -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Mar 6 15:27:25 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 06 Mar 2010 15:27:25 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <1267793563.6541.8.camel@...40...> References: <1267652517.6626.6.camel@...40...> <1267726284.6585.11.camel@...40...> <27790954.post@...1379...> <201003050923.20029.gambas@...1...> <4B90C863.4070003@...221...> <1267793563.6541.8.camel@...40...> Message-ID: <1267885645.6592.4.camel@...40...> ------------------8< ------------------------------------------------ Salut, the answer can be found on gambasdoc at for Variable Declaration http://gambasdoc.org/help/lang/vardecl or for Local Variable Declaration http://gambasdoc.org/help/lang/localdecl Thanks for you help. Charlie From gambas at ...1... Sat Mar 6 15:43:28 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 15:43:28 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <1267885645.6592.4.camel@...40...> References: <1267652517.6626.6.camel@...40...> <1267793563.6541.8.camel@...40...> <1267885645.6592.4.camel@...40...> Message-ID: <201003061543.28400.gambas@...1...> > ------------------8< ------------------------------------------------ > Salut, > > the answer can be found on gambasdoc at > > for Variable Declaration > http://gambasdoc.org/help/lang/vardecl > > or for Local Variable Declaration > http://gambasdoc.org/help/lang/localdecl > > Thanks for you help. > Charlie > Maybe you should have done a specific page, as this syntax can be used for methods declaration, constants declaration, events declaration, arguments... Anywhere an identifier is possible! -- Beno?t Minisini From oceanosoftlapalma at ...626... Sat Mar 6 15:56:29 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sat, 6 Mar 2010 15:56:29 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: <6324a42a1003060359y644e487n349ff52f987b06be@...627...> References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> <6324a42a1003060359y644e487n349ff52f987b06be@...627...> Message-ID: Thanks Fabien, it will be my next movement... At the moment I'm reading documentation about sqlapi++ (from www.sqlapic.com) in order to see the way to make the integration with gambas. I'll report on my progress. Regards, Ricardo 2010/3/6 Fabien Bodard > 2010/3/6 Ricardo D?az Mart?n : > > Qt libraries have got Oracle connectivity and gambas uses these. How can > add > > suppor for this in gambas? Other way can be create a C++ component, but > > there is a lot of time I haven't used it. Any tips? > > Gambas use qt libs only for the gui part , for example dbus, mysql, > and else are directly managed by gambas... so an application with > another gui can access to these parts(gtk, sdl, console app, cgi) > > if you want to see how to do a database driver look in the gambas > source in gb.db.mysql/ > > > > > > Thanks in advance. > > > > 2010/3/5 Fabien Bodard > > > >> the better way will be to write a driver ... but oracle have a > >> proprietary licence > >> > >> 2010/3/5 Ricardo D?az Mart?n : > >> > Hi, > >> > > >> > Did somebody connected gambas to an oracle database? Is the only way > >> using > >> > ODBC? > >> > > >> > I'm goint to port a windows based application made with MS Access that > >> get > >> > and mix data from MSSQLServer and Oracle to gambas and I don't know if > is > >> > possible to do this with gambas. > >> > > >> > I allways use gambas as a MySQL frontend and I'm not sure how to do > this. > >> > > >> > I think I can use Oracle dblinks to connect whith main dababase and > >> migrate > >> > data from MSSQLServer to Oracle Server (because Oracle Server is not > >> > replaceable and MSQLServer yes). > >> > > >> > All your ideas are wellcome! > >> > > >> > Regards, > >> > Ricardo D?az > >> > > >> > ------------------------------------------------------------------------------ > >> > Download Intel® Parallel Studio Eval > >> > Try the new software tools for yourself. Speed compiling, find bugs > >> > proactively, and fine-tune applications for parallel performance. > >> > See why Intel Parallel Studio got high marks during beta. > >> > http://p.sf.net/sfu/intel-sw-dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Download Intel® Parallel Studio Eval > >> Try the new software tools for yourself. Speed compiling, find bugs > >> proactively, and fine-tune applications for parallel performance. > >> See why Intel Parallel Studio got high marks during beta. > >> http://p.sf.net/sfu/intel-sw-dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Sat Mar 6 16:52:06 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 06 Mar 2010 16:52:06 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <201003061543.28400.gambas@...1...> References: <1267652517.6626.6.camel@...40...> <1267793563.6541.8.camel@...40...> <1267885645.6592.4.camel@...40...> <201003061543.28400.gambas@...1...> Message-ID: <1267890726.6592.15.camel@...40...> Am Samstag, den 06.03.2010, 15:43 +0100 schrieb Beno?t Minisini: > > ------------------8< ------------------------------------------------ > > Salut, > > > > the answer can be found on gambasdoc at > > > > for Variable Declaration > > http://gambasdoc.org/help/lang/vardecl > > > > or for Local Variable Declaration > > http://gambasdoc.org/help/lang/localdecl > > > > Thanks for you help. > > Charlie > > > > Maybe you should have done a specific page, as this syntax can be used for > methods declaration, constants declaration, events declaration, arguments... > Anywhere an identifier is possible! > "vieux motard que jamais" as Giacomo Agostini said.;-) So I open a new page called "Special for any identifier" http://gambasdoc.org/help/lang/specdecl But I think, more different examples would be needed. -- Amicalement Charlie From gambas.fr at ...626... Sat Mar 6 19:07:53 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Mar 2010 19:07:53 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> <6324a42a1003060359y644e487n349ff52f987b06be@...627...> Message-ID: <6324a42a1003061007s575f3b83q4372e6ac712e9e94@...627...> 2010/3/6 Ricardo D?az Mart?n : > Thanks Fabien, it will be my next movement... > > At the moment I'm reading documentation about sqlapi++ (from www.sqlapic.com) > in order to see the way to make the integration with gambas. > > I'll report on my progress. the problem is that lib is not gnu and is a shareware... so every body can't have it on he's machine :/... i think it will be better to use directly api from oracle ... so during the compilation we can test if the oracle client api is here and compile the driver. and in an other hand many of the db managed by sqlapi++ are managed already by gambas. > Regards, > Ricardo > > 2010/3/6 Fabien Bodard > >> 2010/3/6 Ricardo D?az Mart?n : >> > Qt libraries have got Oracle connectivity and gambas uses these. How can >> add >> > suppor for this in gambas? Other way can be create a C++ component, but >> > there is a lot of time I haven't used it. Any tips? >> >> Gambas use qt libs only for the gui part , for example dbus, mysql, >> and else are directly managed by gambas... so an application with >> another gui can access to these parts(gtk, sdl, console app, cgi) >> >> if you want to see how to do a database driver look in the gambas >> source in gb.db.mysql/ >> >> >> > >> > Thanks in advance. >> > >> > 2010/3/5 Fabien Bodard >> > >> >> the better way will be to write a driver ... but oracle have a >> >> proprietary licence >> >> >> >> 2010/3/5 Ricardo D?az Mart?n : >> >> > Hi, >> >> > >> >> > Did somebody connected gambas to an oracle database? Is the only way >> >> using >> >> > ODBC? >> >> > >> >> > I'm goint to port a windows based application made with MS Access that >> >> get >> >> > and mix data from MSSQLServer and Oracle to gambas and I don't know if >> is >> >> > possible to do this with gambas. >> >> > >> >> > I allways use gambas as a MySQL frontend and I'm not sure how to do >> this. >> >> > >> >> > I think I can use Oracle dblinks to connect whith main dababase and >> >> migrate >> >> > data from MSSQLServer to Oracle Server (because Oracle Server is not >> >> > replaceable and MSQLServer yes). >> >> > >> >> > All your ideas are wellcome! >> >> > >> >> > Regards, >> >> > Ricardo D?az >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Download Intel® Parallel Studio Eval >> >> > Try the new software tools for yourself. Speed compiling, find bugs >> >> > proactively, and fine-tune applications for parallel performance. >> >> > See why Intel Parallel Studio got high marks during beta. >> >> > http://p.sf.net/sfu/intel-sw-dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Download Intel® Parallel Studio Eval >> >> Try the new software tools for yourself. Speed compiling, find bugs >> >> proactively, and fine-tune applications for parallel performance. >> >> See why Intel Parallel Studio got high marks during beta. >> >> http://p.sf.net/sfu/intel-sw-dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shannon at ...2384... Sat Mar 6 20:00:53 2010 From: shannon at ...2384... (Shannon Smith) Date: Sat, 6 Mar 2010 14:00:53 -0500 Subject: [Gambas-user] CURL: Custom outgoing headers Message-ID: <6c98026f1003061100n14d225dod9313609204caec8@...627...> I'm trying to connect to a server that requires a custom header. I'm using CURL and Gambas v2.13. I can't find a way to modify the outgoing headers. Here's my code snippet: DIM mySock AS HttpClient DIM myResponse AS String DIM myRequest AS String DIM AuthToken as String AuthToken = "TESTTOKEN" mySock = NEW HttpClient myRequest = makeJSON(TextBox1.Text, myParent) MySock.Async = FALSE MySock.Timeout = 60 mySock.url = "http://www.zenfolio.com/api/1.2/zfapi.asmx" MySock.Headers = ["X-Zenfolio-Token: " & AuthToken] MySock.Post("application/json", myRequest) -- When I send this to a port listener (rather than the zenfolio url above) I see it is only sending the following: POST / HTTP/1.1 User-Agent: Gambas Http/1.0 Host: localhost:8080 Accept: */* Content-Type: application/json Content-Length: 126 {"method": "CreateGroup", "params": [164023293, {"Title": "TextBox1", "Caption": "TextBox1", "CustomReference": ""}], "id": 1} (Obviously, I changed the host to my localhost to listen). The Headers are not being sent. Is there a way to send custom headers, without resorting to creating my own function with gb.net? Thanks in advance! Shan From Karl.Reinl at ...2345... Sat Mar 6 20:44:20 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 06 Mar 2010 20:44:20 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <201003061543.28400.gambas@...1...> References: <1267652517.6626.6.camel@...40...> <1267793563.6541.8.camel@...40...> <1267885645.6592.4.camel@...40...> <201003061543.28400.gambas@...1...> Message-ID: <1267904660.6592.20.camel@...40...> Am Samstag, den 06.03.2010, 15:43 +0100 schrieb Beno?t Minisini: > > ------------------8< ------------------------------------------------ > > Salut, > > > > the answer can be found on gambasdoc at > > > > for Variable Declaration > > http://gambasdoc.org/help/lang/vardecl > > > > or for Local Variable Declaration > > http://gambasdoc.org/help/lang/localdecl > > > > Thanks for you help. > > Charlie > > > > Maybe you should have done a specific page, as this syntax can be used for > methods declaration, constants declaration, events declaration, arguments... > Anywhere an identifier is possible! > done Special Declaration => http://gambasdoc.org/help/lang/specialdecl the other two where cleaned up. But I have a question about methods declaration asked in an old mail, I attached. -- Amicalement Charlie -------------- next part -------------- An embedded message was scrubbed... From: =?utf-8?q?Beno=C3=AEt_Minisini?= Subject: Re: [Gambas-user] overwrite a component ???? Date: Sun, 16 Aug 2009 22:43:42 +0200 Size: 3280 URL: From jussi.lahtinen at ...626... Sat Mar 6 21:01:12 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Mar 2010 22:01:12 +0200 Subject: [Gambas-user] Val("1,2") = 12 Message-ID: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> Hi! Is this planned behaviour? Val("1,2") = 12 I think it should be NULL or 1.2. Gambas 3, revision 2664 (old, so maybe already fixed, sorry to bother if so). Ubuntu 9.10 64bit Jussi From gambas at ...1... Sat Mar 6 21:07:59 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 21:07:59 +0100 Subject: [Gambas-user] Val("1,2") = 12 In-Reply-To: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> References: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> Message-ID: <201003062107.59909.gambas@...1...> > Hi! > Is this planned behaviour? > Val("1,2") = 12 > > I think it should be NULL or 1.2. > > Gambas 3, revision 2664 (old, so maybe already fixed, sorry to bother if > so). Ubuntu 9.10 64bit > > Jussi > The behaviour of Val() depends on the value of System.Language. What is it? -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Mar 6 21:16:43 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 06 Mar 2010 21:16:43 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <201003061543.28400.gambas@...1...> References: <1267652517.6626.6.camel@...40...> <1267793563.6541.8.camel@...40...> <1267885645.6592.4.camel@...40...> <201003061543.28400.gambas@...1...> Message-ID: <1267906603.6592.23.camel@...40...> Am Samstag, den 06.03.2010, 15:43 +0100 schrieb Beno?t Minisini: > > ------------------8< ------------------------------------------------ > > Salut, > > > > the answer can be found on gambasdoc at > > > > for Variable Declaration > > http://gambasdoc.org/help/lang/vardecl > > > > or for Local Variable Declaration > > http://gambasdoc.org/help/lang/localdecl > > > > Thanks for you help. > > Charlie > > > > Maybe you should have done a specific page, as this syntax can be used for > methods declaration, constants declaration, events declaration, arguments... > Anywhere an identifier is possible! > whats about "Special Methods", can I use Sub {_new()} Charlie From jussi.lahtinen at ...626... Sat Mar 6 21:22:34 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Mar 2010 22:22:34 +0200 Subject: [Gambas-user] Val("1,2") = 12 In-Reply-To: <201003062107.59909.gambas@...1...> References: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> <201003062107.59909.gambas@...1...> Message-ID: <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> en_GB.UTF-8 But is 1,2 = 12 right in any logic? Also val("1,2,3") = 123 Jussi 2010/3/6 Beno?t Minisini : >> Hi! >> Is this planned behaviour? >> Val("1,2") = 12 >> >> I think it should be NULL or 1.2. >> >> Gambas 3, revision 2664 (old, so maybe already fixed, sorry to bother if >> so). Ubuntu 9.10 64bit >> >> Jussi >> > > The behaviour of Val() depends on the value of System.Language. What is it? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Mar 6 21:22:49 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 21:22:49 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <1267906603.6592.23.camel@...40...> References: <1267652517.6626.6.camel@...40...> <201003061543.28400.gambas@...1...> <1267906603.6592.23.camel@...40...> Message-ID: <201003062122.49383.gambas@...1...> > Am Samstag, den 06.03.2010, 15:43 +0100 schrieb Beno?t Minisini: > > > ------------------8< ------------------------------------------------ > > > Salut, > > > > > > the answer can be found on gambasdoc at > > > > > > for Variable Declaration > > > http://gambasdoc.org/help/lang/vardecl > > > > > > or for Local Variable Declaration > > > http://gambasdoc.org/help/lang/localdecl > > > > > > Thanks for you help. > > > Charlie > > > > Maybe you should have done a specific page, as this syntax can be used > > for methods declaration, constants declaration, events declaration, > > arguments... Anywhere an identifier is possible! > > whats about "Special Methods", can I use Sub {_new()} > > Charlie > The { } syntax is not related with special methods in any way. What are you thinking about? -- Beno?t Minisini From Karl.Reinl at ...2345... Sat Mar 6 21:32:28 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 06 Mar 2010 21:32:28 +0100 Subject: [Gambas-user] What are the {} enclosed variables In-Reply-To: <201003062122.49383.gambas@...1...> References: <1267652517.6626.6.camel@...40...> <201003061543.28400.gambas@...1...> <1267906603.6592.23.camel@...40...> <201003062122.49383.gambas@...1...> Message-ID: <1267907548.6592.26.camel@...40...> Am Samstag, den 06.03.2010, 21:22 +0100 schrieb Beno?t Minisini: > > Am Samstag, den 06.03.2010, 15:43 +0100 schrieb Beno?t Minisini: > > > > ------------------8< ------------------------------------------------ > > > > Salut, > > > > > > > > the answer can be found on gambasdoc at > > > > > > > > for Variable Declaration > > > > http://gambasdoc.org/help/lang/vardecl > > > > > > > > or for Local Variable Declaration > > > > http://gambasdoc.org/help/lang/localdecl > > > > > > > > Thanks for you help. > > > > Charlie > > > > > > Maybe you should have done a specific page, as this syntax can be used > > > for methods declaration, constants declaration, events declaration, > > > arguments... Anywhere an identifier is possible! > > > > whats about "Special Methods", can I use Sub {_new()} > > > > Charlie > > > > The { } syntax is not related with special methods in any way. What are you > thinking about? > was just a question, for finishing the documentation (make a link or not) -- Amicalement Charlie From gambas.fr at ...626... Sat Mar 6 21:43:19 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Mar 2010 21:43:19 +0100 Subject: [Gambas-user] Val("1,2") = 12 In-Reply-To: <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> References: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> <201003062107.59909.gambas@...1...> <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> Message-ID: <6324a42a1003061243s1039b9e2mdf6616ddc21d2592@...627...> in english system you need to use the "." as separator in french the "," 2010/3/6 Jussi Lahtinen : > en_GB.UTF-8 > > But is 1,2 = 12 right in any logic? > Also val("1,2,3") = 123 > > Jussi > > > 2010/3/6 Beno?t Minisini : >>> Hi! >>> Is this planned behaviour? >>> Val("1,2") = 12 >>> >>> I think it should be NULL or 1.2. >>> >>> Gambas 3, revision 2664 (old, so maybe already fixed, sorry to bother if >>> so). Ubuntu 9.10 64bit >>> >>> Jussi >>> >> >> The behaviour of Val() depends on the value of System.Language. What is it? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Mar 6 21:48:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 6 Mar 2010 21:48:45 +0100 Subject: [Gambas-user] Val("1,2") = 12 In-Reply-To: <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> References: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> <201003062107.59909.gambas@...1...> <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> Message-ID: <201003062148.45582.gambas@...1...> > en_GB.UTF-8 > > But is 1,2 = 12 right in any logic? > Also val("1,2,3") = 123 > > Jussi > "," is considered as thousand separators, even if they are misplaced, and they are simply ignored. Maybe the interpreter should be more clever... -- Beno?t Minisini From ea7dfh at ...2382... Sat Mar 6 22:24:15 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sat, 06 Mar 2010 22:24:15 +0100 Subject: [Gambas-user] Arrangement in Frame Control Message-ID: <4B92C7FF.1040909@...2382...> Hi Why it is not implemented the 'Arrangement' property in the Frame control? I can't find a way to arrange its contents, even if I put Vbox or Hbox inside... Any advice? Regards, Jesus From jussi.lahtinen at ...626... Sat Mar 6 23:35:53 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 7 Mar 2010 00:35:53 +0200 Subject: [Gambas-user] Val("1,2") = 12 In-Reply-To: <201003062148.45582.gambas@...1...> References: <384d3901003061201s3b4eed39h85a880587dc6b44c@...627...> <201003062107.59909.gambas@...1...> <384d3901003061222i546b1e36oe7eb63b56816ce37@...627...> <201003062148.45582.gambas@...1...> Message-ID: <384d3901003061435v4325d985y1e59ce32ce0e3900@...627...> OK, that makes sense. So, what is preferred method to make sure that given string (example from textbox) is integer number? Jussi 2010/3/6 Beno?t Minisini : >> en_GB.UTF-8 >> >> But is 1,2 = 12 right in any logic? >> Also val("1,2,3") = 123 >> >> Jussi >> > > "," is considered as thousand separators, even if they are misplaced, and they > are simply ignored. > > Maybe the interpreter should be more clever... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Sun Mar 7 09:08:49 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sun, 7 Mar 2010 09:08:49 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: <6324a42a1003061007s575f3b83q4372e6ac712e9e94@...627...> References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> <6324a42a1003060359y644e487n349ff52f987b06be@...627...> <6324a42a1003061007s575f3b83q4372e6ac712e9e94@...627...> Message-ID: Fabien, that's right with sqlapi++. Like you, I think must choose other option. I found ocilib at hhtp://orclib.sourceforge.net. It's opensource and well documented C code. If you think it can be used, please let me know. Is there some guide when you can see the neccesary functions to integrate this lib with gambas.db interface? Thanks, Ricardo D?az 2010/3/6 Fabien Bodard > 2010/3/6 Ricardo D?az Mart?n : > > Thanks Fabien, it will be my next movement... > > > > At the moment I'm reading documentation about sqlapi++ (from > www.sqlapic.com) > > in order to see the way to make the integration with gambas. > > > > I'll report on my progress. > > the problem is that lib is not gnu and is a shareware... so every body > can't have it on he's machine :/... i think it will be better to use > directly api from oracle ... > > so during the compilation we can test if the oracle client api is here > and compile the driver. > > and in an other hand many of the db managed by sqlapi++ are managed > already by gambas. > > > > > Regards, > > Ricardo > > > > 2010/3/6 Fabien Bodard > > > >> 2010/3/6 Ricardo D?az Mart?n : > >> > Qt libraries have got Oracle connectivity and gambas uses these. How > can > >> add > >> > suppor for this in gambas? Other way can be create a C++ component, > but > >> > there is a lot of time I haven't used it. Any tips? > >> > >> Gambas use qt libs only for the gui part , for example dbus, mysql, > >> and else are directly managed by gambas... so an application with > >> another gui can access to these parts(gtk, sdl, console app, cgi) > >> > >> if you want to see how to do a database driver look in the gambas > >> source in gb.db.mysql/ > >> > >> > >> > > >> > Thanks in advance. > >> > > >> > 2010/3/5 Fabien Bodard > >> > > >> >> the better way will be to write a driver ... but oracle have a > >> >> proprietary licence > >> >> > >> >> 2010/3/5 Ricardo D?az Mart?n : > >> >> > Hi, > >> >> > > >> >> > Did somebody connected gambas to an oracle database? Is the only > way > >> >> using > >> >> > ODBC? > >> >> > > >> >> > I'm goint to port a windows based application made with MS Access > that > >> >> get > >> >> > and mix data from MSSQLServer and Oracle to gambas and I don't know > if > >> is > >> >> > possible to do this with gambas. > >> >> > > >> >> > I allways use gambas as a MySQL frontend and I'm not sure how to do > >> this. > >> >> > > >> >> > I think I can use Oracle dblinks to connect whith main dababase and > >> >> migrate > >> >> > data from MSSQLServer to Oracle Server (because Oracle Server is > not > >> >> > replaceable and MSQLServer yes). > >> >> > > >> >> > All your ideas are wellcome! > >> >> > > >> >> > Regards, > >> >> > Ricardo D?az > >> >> > > >> >> > >> > ------------------------------------------------------------------------------ > >> >> > Download Intel® Parallel Studio Eval > >> >> > Try the new software tools for yourself. Speed compiling, find bugs > >> >> > proactively, and fine-tune applications for parallel performance. > >> >> > See why Intel Parallel Studio got high marks during beta. > >> >> > http://p.sf.net/sfu/intel-sw-dev > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Download Intel® Parallel Studio Eval > >> >> Try the new software tools for yourself. Speed compiling, find bugs > >> >> proactively, and fine-tune applications for parallel performance. > >> >> See why Intel Parallel Studio got high marks during beta. > >> >> http://p.sf.net/sfu/intel-sw-dev > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > Download Intel® Parallel Studio Eval > >> > Try the new software tools for yourself. Speed compiling, find bugs > >> > proactively, and fine-tune applications for parallel performance. > >> > See why Intel Parallel Studio got high marks during beta. > >> > http://p.sf.net/sfu/intel-sw-dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Download Intel® Parallel Studio Eval > >> Try the new software tools for yourself. Speed compiling, find bugs > >> proactively, and fine-tune applications for parallel performance. > >> See why Intel Parallel Studio got high marks during beta. > >> http://p.sf.net/sfu/intel-sw-dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sun Mar 7 11:47:46 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 07 Mar 2010 11:47:46 +0100 Subject: [Gambas-user] Possible bug in Translation Form (IDE) Message-ID: <4B938452.7010504@...2382...> Hi Beno?t In svn 2741 (Gambas2) I've got this error from the IDE when trying to open translation form: "It is not possible to open translation file for 'Spanish(Spain)' language. FTranslate.UpdateOrg.1084: Null object" Tested with several projects and all fail with the same error. Regards, Jesus From gambas.fr at ...626... Sun Mar 7 16:24:27 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 7 Mar 2010 16:24:27 +0100 Subject: [Gambas-user] GAMBAS AND ORACLE In-Reply-To: References: <6324a42a1003051222r538bad48kc131aad197bf25a8@...627...> <6324a42a1003060359y644e487n349ff52f987b06be@...627...> <6324a42a1003061007s575f3b83q4372e6ac712e9e94@...627...> Message-ID: <6324a42a1003070724j2d1107an6d1e527390e60e37@...627...> yes it is interesting .. but ... i see no package in my distrib :/... so maybe we have to embbed the source in the gambas one... Benoit ? what about that ? 2010/3/7 Ricardo D?az Mart?n : > Fabien, that's right with sqlapi++. Like you, I think must choose other > option. > > I found ocilib at hhtp://orclib.sourceforge.net. It's opensource and well > documented C code. > > If you think it can be used, please let me know. > > Is there some guide when you can see the neccesary functions to integrate > this lib with gambas.db interface? look at the gb.db.mysql code... it's not too complicated > Thanks, > Ricardo D?az > > > 2010/3/6 Fabien Bodard > >> 2010/3/6 Ricardo D?az Mart?n : >> > Thanks Fabien, it will be my next movement... >> > >> > At the moment I'm reading documentation about sqlapi++ (from >> www.sqlapic.com) >> > in order to see the way to make the integration with gambas. >> > >> > I'll report on my progress. >> >> the problem is that lib is not gnu and is a shareware... so every body >> can't have it on he's machine :/... i think it will be better to use >> directly api from oracle ... >> >> so during the compilation we can test if the oracle client api is here >> and compile the driver. >> >> and in an other hand many of the db managed by sqlapi++ are managed >> already by gambas. >> >> >> >> > Regards, >> > Ricardo >> > >> > 2010/3/6 Fabien Bodard >> > >> >> 2010/3/6 Ricardo D?az Mart?n : >> >> > Qt libraries have got Oracle connectivity and gambas uses these. How >> can >> >> add >> >> > suppor for this in gambas? Other way can be create a C++ component, >> but >> >> > there is a lot of time I haven't used it. Any tips? >> >> >> >> Gambas use qt libs only for the gui part , for example dbus, mysql, >> >> and else are directly managed by gambas... so an application with >> >> another gui can access to these parts(gtk, sdl, console app, cgi) >> >> >> >> if you want to see how to do a database driver look in the gambas >> >> source in gb.db.mysql/ >> >> >> >> >> >> > >> >> > Thanks in advance. >> >> > >> >> > 2010/3/5 Fabien Bodard >> >> > >> >> >> the better way will be to write a driver ... but oracle have a >> >> >> proprietary licence >> >> >> >> >> >> 2010/3/5 Ricardo D?az Mart?n : >> >> >> > Hi, >> >> >> > >> >> >> > Did somebody connected gambas to an oracle database? Is the only >> way >> >> >> using >> >> >> > ODBC? >> >> >> > >> >> >> > I'm goint to port a windows based application made with MS Access >> that >> >> >> get >> >> >> > and mix data from MSSQLServer and Oracle to gambas and I don't know >> if >> >> is >> >> >> > possible to do this with gambas. >> >> >> > >> >> >> > I allways use gambas as a MySQL frontend and I'm not sure how to do >> >> this. >> >> >> > >> >> >> > I think I can use Oracle dblinks to connect whith main dababase and >> >> >> migrate >> >> >> > data from MSSQLServer to Oracle Server (because Oracle Server is >> not >> >> >> > replaceable and MSQLServer yes). >> >> >> > >> >> >> > All your ideas are wellcome! >> >> >> > >> >> >> > Regards, >> >> >> > Ricardo D?az >> >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> > Download Intel® Parallel Studio Eval >> >> >> > Try the new software tools for yourself. Speed compiling, find bugs >> >> >> > proactively, and fine-tune applications for parallel performance. >> >> >> > See why Intel Parallel Studio got high marks during beta. >> >> >> > http://p.sf.net/sfu/intel-sw-dev >> >> >> > _______________________________________________ >> >> >> > Gambas-user mailing list >> >> >> > Gambas-user at lists.sourceforge.net >> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> Download Intel® Parallel Studio Eval >> >> >> Try the new software tools for yourself. Speed compiling, find bugs >> >> >> proactively, and fine-tune applications for parallel performance. >> >> >> See why Intel Parallel Studio got high marks during beta. >> >> >> http://p.sf.net/sfu/intel-sw-dev >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Download Intel® Parallel Studio Eval >> >> > Try the new software tools for yourself. Speed compiling, find bugs >> >> > proactively, and fine-tune applications for parallel performance. >> >> > See why Intel Parallel Studio got high marks during beta. >> >> > http://p.sf.net/sfu/intel-sw-dev >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Download Intel® Parallel Studio Eval >> >> Try the new software tools for yourself. Speed compiling, find bugs >> >> proactively, and fine-tune applications for parallel performance. >> >> See why Intel Parallel Studio got high marks during beta. >> >> http://p.sf.net/sfu/intel-sw-dev >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Mar 7 16:42:50 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 7 Mar 2010 16:42:50 +0100 Subject: [Gambas-user] Possible bug in Translation Form (IDE) In-Reply-To: <4B938452.7010504@...2382...> References: <4B938452.7010504@...2382...> Message-ID: <6324a42a1003070742o169986f9h94ed6dccb5806282@...627...> i've the same error too ! 2010/3/7 EA7DFH : > Hi Beno?t > > In svn 2741 (Gambas2) I've got this error from the IDE when trying to > open translation form: > > "It is not possible to open translation file for 'Spanish(Spain)' language. > > FTranslate.UpdateOrg.1084: Null object" > > Tested with several projects and all fail with the same error. > > Regards, > > Jesus > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 7 17:17:03 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 7 Mar 2010 17:17:03 +0100 Subject: [Gambas-user] Possible bug in Translation Form (IDE) In-Reply-To: <6324a42a1003070742o169986f9h94ed6dccb5806282@...627...> References: <4B938452.7010504@...2382...> <6324a42a1003070742o169986f9h94ed6dccb5806282@...627...> Message-ID: <201003071717.03271.gambas@...1...> > i've the same error too ! > > 2010/3/7 EA7DFH : > > Hi Beno?t > > > > In svn 2741 (Gambas2) I've got this error from the IDE when trying to > > open translation form: > > > > "It is not possible to open translation file for 'Spanish(Spain)' > > language. > > > > FTranslate.UpdateOrg.1084: Null object" > > > > Tested with several projects and all fail with the same error. > > > > Regards, > > > > Jesus > > I have fixed that in revision #2761, by harmonizing as much as possible the behaviour of the ComboBox Click event between gb.qt and gb.gtk. I will update the wiki so that how and when the Click event is raised is clearly documented. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sun Mar 7 18:32:13 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 7 Mar 2010 18:32:13 +0100 Subject: [Gambas-user] Possible bug in Translation Form (IDE) In-Reply-To: <201003071717.03271.gambas@...1...> References: <4B938452.7010504@...2382...> <6324a42a1003070742o169986f9h94ed6dccb5806282@...627...> <201003071717.03271.gambas@...1...> Message-ID: <6324a42a1003070932o7db7978bx77f488d416612501@...627...> thanks Le 7 mars 2010 17:17, Beno?t Minisini a ?crit : >> i've the same error too ! >> >> 2010/3/7 EA7DFH : >> > Hi Beno?t >> > >> > In svn 2741 (Gambas2) I've got this error from the IDE when trying to >> > open translation form: >> > >> > "It is not possible to open translation file for 'Spanish(Spain)' >> > language. >> > >> > FTranslate.UpdateOrg.1084: Null object" >> > >> > Tested with several projects and all fail with the same error. >> > >> > Regards, >> > >> > Jesus >> > > > I have fixed that in revision #2761, by harmonizing as much as possible the > behaviour of the ComboBox Click event between gb.qt and gb.gtk. I will update > the wiki so that how and when the Click event is raised is clearly documented. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Sun Mar 7 18:41:53 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 07 Mar 2010 18:41:53 +0100 Subject: [Gambas-user] Possible bug in Translation Form (IDE) In-Reply-To: <201003071717.03271.gambas@...1...> References: <4B938452.7010504@...2382...> <6324a42a1003070742o169986f9h94ed6dccb5806282@...627...> <201003071717.03271.gambas@...1...> Message-ID: <4B93E561.1080902@...2382...> Beno?t Minisini escribi?: >> i've the same error too ! >> >> 2010/3/7 EA7DFH : >>> Hi Beno?t >>> >>> In svn 2741 (Gambas2) I've got this error from the IDE when trying to >>> open translation form: >>> >>> "It is not possible to open translation file for 'Spanish(Spain)' >>> language. >>> >>> FTranslate.UpdateOrg.1084: Null object" >>> >>> Tested with several projects and all fail with the same error. >>> >>> Regards, >>> >>> Jesus >>> > > I have fixed that in revision #2761, by harmonizing as much as possible the > behaviour of the ComboBox Click event between gb.qt and gb.gtk. I will update > the wiki so that how and when the Click event is raised is clearly documented. > > Regards, > Many thanks, Beno?t. Compiled #2762 and now it works flawlessly. Regards, Jesus From ea7dfh at ...2382... Sun Mar 7 21:01:39 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sun, 07 Mar 2010 21:01:39 +0100 Subject: [Gambas-user] Unable to convert from Gambas2 to Gambas3 Message-ID: <4B940623.7060400@...2382...> Hi I have a project in Gambas2 which I want to import in Gambas3. When I open it in Gambs3 IDE I need to convert all forms, but I get this error message when trying to convert: "Type Mismatch: Wanted FForm, got FTextEditor instead" I think this isn't the expected behavior. gb3 #2745 Regards, Jesus From pinozollo at ...626... Sun Mar 7 22:18:28 2010 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 7 Mar 2010 18:18:28 -0300 Subject: [Gambas-user] GAMBAS 2.20 can't translate anymore Message-ID: <201003071818.28750.pinozollo@...626...> I can't translate any more my project when Ctl-T Translate ....see the attached shot. The message complains for the Italian language, but also Spanish and Russian are gone. Regards Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: GAMBAS_Translation.png.zip Type: application/x-zip Size: 14930 bytes Desc: not available URL: From gambas at ...1... Mon Mar 8 00:13:19 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 00:13:19 +0100 Subject: [Gambas-user] Release of Gambas 2.20.1 Message-ID: <201003080013.19289.gambas@...1...> Hi, I released a small update to Gambas 2.20 that fixes the way the ComboBox raises its Click event (and so the project translation dialog). For more details, read the wiki documentation on the ComboBox Click event. Regards, -- Beno?t Minisini From gambas at ...1... Mon Mar 8 03:22:36 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 03:22:36 +0100 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <6c98026f1003061100n14d225dod9313609204caec8@...627...> References: <6c98026f1003061100n14d225dod9313609204caec8@...627...> Message-ID: <201003080322.36733.gambas@...1...> > I'm trying to connect to a server that requires a custom header. I'm using > CURL and Gambas v2.13. I can't find a way to modify the outgoing headers. > > Here's my code snippet: > > DIM mySock AS HttpClient > DIM myResponse AS String > DIM myRequest AS String > DIM AuthToken as String > > AuthToken = "TESTTOKEN" > > mySock = NEW HttpClient > myRequest = makeJSON(TextBox1.Text, myParent) > > MySock.Async = FALSE > MySock.Timeout = 60 > mySock.url = "http://www.zenfolio.com/api/1.2/zfapi.asmx" > > > MySock.Headers = ["X-Zenfolio-Token: " & AuthToken] > MySock.Post("application/json", myRequest) This is not possible at the moment. I plan to add that for Gambas 3, and may be I will be able to backport it to Gambas 2 as it does not introduce any change in the API. Regards, -- Beno?t Minisini From kobolds at ...2041... Mon Mar 8 03:40:59 2010 From: kobolds at ...2041... (kobolds) Date: Sun, 7 Mar 2010 18:40:59 -0800 (PST) Subject: [Gambas-user] Gambas3 "Dock Widget" in qt In-Reply-To: <4B91277E.3010701@...2382...> References: <4B91277E.3010701@...2382...> Message-ID: <27816588.post@...1379...> if anyone plan to do that please make something like dock panel , stack panel , wrap panel in WPF EA7DFH wrote: > > This is for Beno?t :-) > > As far as I'm experimenting with latest Gambas3 snapshot, I haven't > found a "Dock Widget" like in Qt Widgets (Qt Designer). > > Is it planned to do so? > > Thanks, > > Jesus > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Gambas3-%22Dock-Widget%22-in-qt-tp27795580p27816588.html Sent from the gambas-user mailing list archive at Nabble.com. From shannon at ...2384... Mon Mar 8 04:26:37 2010 From: shannon at ...2384... (shannon at ...2384...) Date: Sun, 07 Mar 2010 19:26:37 -0800 (PST) Subject: [Gambas-user] CURL: Custom outgoing headers Message-ID: <4b946e6d.e701be0a.517c.5d80@...2392...> awesome! for now I just used gb.net to manually do it. Related question: sending a jpg as POST data - open the file as sring? byte? I've tried all without success. Any guidance would be helpful! Thanks for everything! Shan -----Original Message----- Date: Sunday, March 07, 2010 9:23:18 pm To: "mailing list for gambas users" From: "Beno?t Minisini" Subject: Re: [Gambas-user] CURL: Custom outgoing headers > I'm trying to connect to a server that requires a custom header. I'm using > CURL and Gambas v2.13. I can't find a way to modify the outgoing headers. > > Here's my code snippet: > > DIM mySock AS HttpClient > DIM myResponse AS String > DIM myRequest AS String > DIM AuthToken as String > > AuthToken = "TESTTOKEN" > > mySock = NEW HttpClient > myRequest = makeJSON(TextBox1.Text, myParent) > > MySock.Async = FALSE > MySock.Timeout = 60 > mySock.url = "http://www.zenfolio.com/api/1.2/zfapi.asmx" > > > MySock.Headers = ["X-Zenfolio-Token: " & AuthToken] > MySock.Post("application/json", myRequest) This is not possible at the moment. I plan to add that for Gambas 3, and may be I will be able to backport it to Gambas 2 as it does not introduce any change in the API. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed co From nospam.nospam.nospam at ...626... Mon Mar 8 09:12:26 2010 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 8 Mar 2010 19:12:26 +1100 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <4b946e6d.e701be0a.517c.5d80@...2392...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> Message-ID: On 8 March 2010 14:26, shannon at ...2384... wrote: > Related question: sending a jpg as POST data - open the file as sring? byte? I've tried all without success. Any guidance would be helpful! Get the data in byte format and use the enctype="multipart/form-data" protocol. http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 http://www.faqs.org/rfcs/rfc1867.html From eilert-sprachen at ...221... Mon Mar 8 11:03:54 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 08 Mar 2010 11:03:54 +0100 Subject: [Gambas-user] Release of Gambas 2.20.1 In-Reply-To: <201003080013.19289.gambas@...1...> References: <201003080013.19289.gambas@...1...> Message-ID: <4B94CB8A.5050906@...221...> Am 08.03.2010 00:13, schrieb Beno?t Minisini: > Hi, > > I released a small update to Gambas 2.20 that fixes the way the ComboBox > raises its Click event (and so the project translation dialog). > > For more details, read the wiki documentation on the ComboBox Click event. > > Regards, > Reading the documentation text, I come to the conclusion that you returned to the old behaviour of ComboBox like in 2.19, i. e. no Click event for the first item. Am I right? Regards Rolf From sevoir75 at ...626... Mon Mar 8 11:29:52 2010 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Mon, 08 Mar 2010 11:29:52 +0100 Subject: [Gambas-user] Gambas 2.19 on Ubuntu 10.04 Alpha 3 [Lucid Lynx] Message-ID: <1268044192.6371.4.camel@...2393...> Hi All, I'm testing the new Ubuntu Release.. I installed a Gambas2.19 and when I want create an installation package, that failed at Step 4. See attached picture. Is this a bug or missing package(s) ? regards, Sevoir -------------- next part -------------- A non-text attachment was scrubbed... Name: missing-package-group.png Type: image/png Size: 154513 bytes Desc: not available URL: From rterry at ...1946... Mon Mar 8 11:51:04 2010 From: rterry at ...1946... (richard terry) Date: Mon, 8 Mar 2010 21:51:04 +1100 Subject: [Gambas-user] X--tag-CC command not found (solved) In-Reply-To: <59927.220.233.85.180.1267845855.squirrel@...2391...> References: <59927.220.233.85.180.1267845855.squirrel@...2391...> Message-ID: <201003082151.04383.rterry@...1946...> On Saturday 06 March 2010 14:24:15 rterry at ...1946... wrote: > kubuntu jaunty lib tool 2.2.6 > > Won''t compile,any help appriated. > > richard > > gambas-user at ...2390... 1.16 > > > --------------------------------------------------------------------------- > --- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user for anyone interested it turned out to be a libtool/libtoolize problem with incompatible versions (my friend whowas having the problem had previously compiled libtool from source, rather than a debian package and had 'forgotten'. as a beneficial side effect to this, as I waited for him to sort it out, I installed kubuntu on a virtual box in my ARCH linux, and downloaded gambas and compiled, so now I can muck round with gambas on debian as well as arch. Regards richard From rospolosco at ...152... Mon Mar 8 12:04:21 2010 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 8 Mar 2010 12:04:21 +0100 Subject: [Gambas-user] Gambas 2.19 on Ubuntu 10.04 Alpha 3 [Lucid Lynx] In-Reply-To: <1268044192.6371.4.camel@...2393...> References: <1268044192.6371.4.camel@...2393...> Message-ID: <201003081204.21519.rospolosco@...152...> Il luned? 8 marzo 2010 11:29:52 Szenogr?di Norbert ha scritto: > Hi All, > > I'm testing the new Ubuntu Release.. > I installed a Gambas2.19 and when I want create an installation package, > that failed at Step 4. > See attached picture. > Is this a bug or missing package(s) ? > > regards, Sevoir I had the same problem on slackware 12.2 with Gambas 2.19. When upgraded to Gambas 2.20 the bug disappeared, so try to upgrade Gambas. Stefano From charles at ...1784... Mon Mar 8 12:23:24 2010 From: charles at ...1784... (charlesg) Date: Mon, 8 Mar 2010 03:23:24 -0800 (PST) Subject: [Gambas-user] Gambas 2.19 on Ubuntu 10.04 Alpha 3 [Lucid Lynx] In-Reply-To: <1268044192.6371.4.camel@...2393...> References: <1268044192.6371.4.camel@...2393...> Message-ID: <27819662.post@...1379...> Hi Its the same old saga of incomplete Ubuntu repository installation. You have to go to Synaptic, search on Gambas and install the missing components. I have already left a post on the Lucid development section of the Ubuntu forum to try and sort this out before final release. So far no response. rgds -- View this message in context: http://old.nabble.com/Gambas-2.19-on-Ubuntu-10.04-Alpha-3--Lucid-Lynx--tp27819446p27819662.html Sent from the gambas-user mailing list archive at Nabble.com. From lordheavym at ...626... Mon Mar 8 12:58:23 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 8 Mar 2010 12:58:23 +0100 Subject: [Gambas-user] Gambas 2.19 on Ubuntu 10.04 Alpha 3 [Lucid Lynx] In-Reply-To: <27819662.post@...1379...> References: <1268044192.6371.4.camel@...2393...> <27819662.post@...1379...> Message-ID: <201003081258.23593.lordheavym@...626...> Le Lundi 08 Mars 2010 12:23:24, charlesg a ?crit : > Hi > > Its the same old saga of incomplete Ubuntu repository installation. You > have to go to Synaptic, search on Gambas and install the missing > components. > > I have already left a post on the Lucid development section of the Ubuntu > forum to try and sort this out before final release. So far no response. > > rgds It's always better to open a bug report instead of a simple forum post. Regards, ++ From gambas at ...1... Mon Mar 8 14:59:56 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 14:59:56 +0100 Subject: [Gambas-user] Release of Gambas 2.20.1 In-Reply-To: <4B94CB8A.5050906@...221...> References: <201003080013.19289.gambas@...1...> <4B94CB8A.5050906@...221...> Message-ID: <201003081459.56325.gambas@...1...> > Am 08.03.2010 00:13, schrieb Beno?t Minisini: > > Hi, > > > > I released a small update to Gambas 2.20 that fixes the way the ComboBox > > raises its Click event (and so the project translation dialog). > > > > For more details, read the wiki documentation on the ComboBox Click > > event. > > > > Regards, > > Reading the documentation text, I come to the conclusion that you > returned to the old behaviour of ComboBox like in 2.19, i. e. no Click > event for the first item. Am I right? > > Regards > > Rolf > Not completely. The Click event is now raised: - If the user chooses an item in the list. - If the Index property is set. - If the Text property is set. NOTE #1: The Click event is raised when the Index or the Text property is set even if the new value is the same as the old one! NOTE #2: The Click event is *not* raised if you set Index to -1, or if you set the Text property with something that is not present in the list contents. NOTE #3: Apparently with gb.qt, the Click event is raised when the user selects the same item as the previously selected one. But not with gb.gtk! I'd like to force gb.gtk to behave the same, but didn't succeed. NOTE #4: The Click event is never raised when the list contents is modified, by Add(), Remove(), Clear(), or by setting the List property. So, now, you just initialize your ComboBox contents, and then either you initialize the related stuff by yourself, either everything is done in the Click event handler, and you have to set the Index property with the initial value just after. I hope everything is clear now! :-) -- Beno?t Minisini From gambas at ...1... Mon Mar 8 15:08:30 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 15:08:30 +0100 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: References: <4b946e6d.e701be0a.517c.5d80@...2392...> Message-ID: <201003081508.30258.gambas@...1...> > On 8 March 2010 14:26, shannon at ...2384... > > wrote: > > Related question: sending a jpg as POST data - open the file as sring? > > byte? I've tried all without success. Any guidance would be helpful! > > Get the data in byte format and use the enctype="multipart/form-data" > protocol. > > http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 > > http://www.faqs.org/rfcs/rfc1867.html > Isn't it possible just do: MyHttpClient.Post(File.Load("image.jpeg"), "image/jpeg") ? -- Beno?t Minisini From gambas at ...1... Mon Mar 8 15:29:42 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 15:29:42 +0100 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <201003081508.30258.gambas@...1...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> <201003081508.30258.gambas@...1...> Message-ID: <201003081529.42614.gambas@...1...> > > On 8 March 2010 14:26, shannon at ...2384... > > > > wrote: > > > Related question: sending a jpg as POST data - open the file as sring? > > > byte? I've tried all without success. Any guidance would be helpful! > > > > Get the data in byte format and use the enctype="multipart/form-data" > > protocol. > > > > http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 > > > > http://www.faqs.org/rfcs/rfc1867.html > > Isn't it possible just do: MyHttpClient.Post(File.Load("image.jpeg"), > "image/jpeg") ? Oops, I meant: MyHttpClient.Post("image/jpeg", File.Load("image.jpeg")) -- Beno?t Minisini From eilert-sprachen at ...221... Mon Mar 8 17:42:02 2010 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 08 Mar 2010 17:42:02 +0100 Subject: [Gambas-user] Release of Gambas 2.20.1 In-Reply-To: <201003081459.56325.gambas@...1...> References: <201003080013.19289.gambas@...1...> <4B94CB8A.5050906@...221...> <201003081459.56325.gambas@...1...> Message-ID: <4B9528DA.8090100@...221...> Am 08.03.2010 14:59, schrieb Beno?t Minisini: >> Am 08.03.2010 00:13, schrieb Beno?t Minisini: >>> Hi, >>> >>> I released a small update to Gambas 2.20 that fixes the way the ComboBox >>> raises its Click event (and so the project translation dialog). >>> >>> For more details, read the wiki documentation on the ComboBox Click >>> event. >>> >>> Regards, >> >> Reading the documentation text, I come to the conclusion that you >> returned to the old behaviour of ComboBox like in 2.19, i. e. no Click >> event for the first item. Am I right? >> >> Regards >> >> Rolf >> > > Not completely. > > The Click event is now raised: > > - If the user chooses an item in the list. > - If the Index property is set. > - If the Text property is set. > > NOTE #1: The Click event is raised when the Index or the Text property is set > even if the new value is the same as the old one! > > NOTE #2: The Click event is *not* raised if you set Index to -1, or if you set > the Text property with something that is not present in the list contents. > > NOTE #3: Apparently with gb.qt, the Click event is raised when the user > selects the same item as the previously selected one. But not with gb.gtk! I'd > like to force gb.gtk to behave the same, but didn't succeed. > > NOTE #4: The Click event is never raised when the list contents is modified, > by Add(), Remove(), Clear(), or by setting the List property. > > So, now, you just initialize your ComboBox contents, and then either you > initialize the related stuff by yourself, either everything is done in the > Click event handler, and you have to set the Index property with the initial > value just after. > > I hope everything is clear now! :-) > Well, yes, klar wie Klo?br?he! :-) And everything runs well now, no problems compiling, no problems during runtime so far. We will see tomorrow morning when more people start using the programs... Thank you! Rolf From shannon at ...2384... Mon Mar 8 20:10:43 2010 From: shannon at ...2384... (Shannon Smith) Date: Mon, 8 Mar 2010 11:10:43 -0800 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <201003081529.42614.gambas@...1...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> <201003081508.30258.gambas@...1...> <201003081529.42614.gambas@...1...> Message-ID: <6c98026f1003081110w3ae9e8bdn24047c9ba90e27f7@...627...> That would work, but I still need to send that custom header. :-( Manual it is..... 2010/3/8 Beno?t Minisini > > > On 8 March 2010 14:26, shannon at ...2384... > > > > > > wrote: > > > > Related question: sending a jpg as POST data - open the file as > sring? > > > > byte? I've tried all without success. Any guidance would be helpful! > > > > > > Get the data in byte format and use the enctype="multipart/form-data" > > > protocol. > > > > > > http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 > > > > > > http://www.faqs.org/rfcs/rfc1867.html > > > > Isn't it possible just do: MyHttpClient.Post(File.Load("image.jpeg"), > > "image/jpeg") ? > > Oops, I meant: > > MyHttpClient.Post("image/jpeg", File.Load("image.jpeg")) > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shannon Smith 831 Photography www.831Photography.com 330-753-8703 From gambas at ...1... Mon Mar 8 20:43:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 8 Mar 2010 20:43:23 +0100 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <6c98026f1003081110w3ae9e8bdn24047c9ba90e27f7@...627...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> <201003081529.42614.gambas@...1...> <6c98026f1003081110w3ae9e8bdn24047c9ba90e27f7@...627...> Message-ID: <201003082043.23421.gambas@...1...> > That would work, but I still need to send that custom header. :-( > Everything for that is in Gambas 3 now, but I'm afraid I can't backport it to Gambas 2 as I had to change the component interface! -- Beno?t Minisini From shannon at ...2384... Mon Mar 8 21:16:58 2010 From: shannon at ...2384... (Shannon Smith) Date: Mon, 8 Mar 2010 12:16:58 -0800 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <201003082043.23421.gambas@...1...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> <201003081529.42614.gambas@...1...> <6c98026f1003081110w3ae9e8bdn24047c9ba90e27f7@...627...> <201003082043.23421.gambas@...1...> Message-ID: <6c98026f1003081216y18866ea4q4383e58a7e8e77@...627...> That's cool - MMX=Year of G3, right? :-) Thanks so much! Shan 2010/3/8 Beno?t Minisini > > That would work, but I still need to send that custom header. :-( > > > > Everything for that is in Gambas 3 now, but I'm afraid I can't backport it > to > Gambas 2 as I had to change the component interface! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Shannon Smith 831 Photography www.831Photography.com 330-753-8703 From rterry at ...1946... Tue Mar 9 22:50:38 2010 From: rterry at ...1946... (richard terry) Date: Wed, 10 Mar 2010 08:50:38 +1100 Subject: [Gambas-user] Gambas IDE locking after every syntax error encountered Message-ID: <201003100850.38945.rterry@...1946...> Last couple of versions I've noticed this, I'll upgrade and report back, but wondered if anyone else experienceing this. Have to kill the ide and restart gambas. Richard From dag.jarle.johansen at ...2312... Wed Mar 10 12:35:32 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Wed, 10 Mar 2010 08:35:32 -0300 Subject: [Gambas-user] [SPAM] Re: Gambas IDE locking after every syntax error encountered In-Reply-To: <201003100850.38945.rterry@...1946...> References: <201003100850.38945.rterry@...1946...> Message-ID: No, but since when? I was short before making an upgrade, does it count? Regards Dag-Jarle Johansen Am Mittwoch, den 10.03.2010, 08:50 +1100 schrieb richard terry: > Last couple of versions I've noticed this, I'll upgrade and report back, but > wondered if anyone else experienceing this. Have to kill the ide and restart > gambas. > > Richard > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Wed Mar 10 13:51:48 2010 From: rterry at ...1946... (richard terry) Date: Wed, 10 Mar 2010 23:51:48 +1100 Subject: [Gambas-user] Gambas IDE locking after every syntax error encountered In-Reply-To: References: <201003100850.38945.rterry@...1946...> Message-ID: <201003102351.48494.rterry@...1946...> On Wednesday 10 March 2010 22:35:32 you wrote: > No, > but since when? > I was short before making an upgrade, does it count? Not sure what you mean by the above, however, sometime after this version: 2754 Still happening with 2782. God knows how to sort this out, its driving me crazy. Regards Richard > > Regards > Dag-Jarle Johansen > > Am Mittwoch, den 10.03.2010, 08:50 +1100 schrieb richard terry: > > Last couple of versions I've noticed this, I'll upgrade and report back, > > but wondered if anyone else experienceing this. Have to kill the ide and > > restart gambas. > > > > Richard > > > > ------------------------------------------------------------------------- > > ----- Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Wed Mar 10 15:59:17 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 10 Mar 2010 15:59:17 +0100 Subject: [Gambas-user] Gambas IDE locking after every syntax error encountered In-Reply-To: <201003102351.48494.rterry@...1946...> References: <201003100850.38945.rterry@...1946...> <201003102351.48494.rterry@...1946...> Message-ID: <1268233157.6671.3.camel@...40...> Am Mittwoch, den 10.03.2010, 23:51 +1100 schrieb richard terry: > On Wednesday 10 March 2010 22:35:32 you wrote: > > No, > > but since when? > > I was short before making an upgrade, does it count? > > Not sure what you mean by the above, however, sometime after this version: > > 2754 > > Still happening with 2782. God knows how to sort this out, its driving me > crazy. > > Regards > > Richard > > > > > Regards > > Dag-Jarle Johansen > > > > Am Mittwoch, den 10.03.2010, 08:50 +1100 schrieb richard terry: > > > Last couple of versions I've noticed this, I'll upgrade and report back, > > > but wondered if anyone else experienceing this. Have to kill the ide and > > > restart gambas. > > > > > > Richard > > > Salut Richard, did you try to start from scratch ? -- Amicalement Charlie From jussi.lahtinen at ...626... Wed Mar 10 18:42:51 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 Mar 2010 19:42:51 +0200 Subject: [Gambas-user] Ambiguous expression? Message-ID: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> Hi! This; 1\2*3 Yields this; "Ambiguous expression. Please use braces" But if I write; 1/2*3 Then no problem. Why? Is this planned behaviour? Gambas 3 revision 2664 (old!) Ubuntu 9.10 64bit Jussi From alerinaldi at ...2334... Wed Mar 10 18:48:34 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Wed, 10 Mar 2010 18:48:34 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> Message-ID: <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> I really think yes. Standard symbol for fractions is /, why should you use \? From jussi.lahtinen at ...626... Wed Mar 10 19:34:07 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 Mar 2010 20:34:07 +0200 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> Message-ID: <384d3901003101034g4647e3b2p128ad02bd44a3708@...627...> 1/2 = 0.5 1\2 = 0 3\2 = 1 "\" operator gives only integer part. Jussi On Wed, Mar 10, 2010 at 19:48, Alessandro Rinaldi wrote: > I really think yes. > Standard symbol for fractions is /, why should you use \? > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alerinaldi at ...2334... Wed Mar 10 19:36:09 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Wed, 10 Mar 2010 19:36:09 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <384d3901003101034g4647e3b2p128ad02bd44a3708@...627...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <384d3901003101034g4647e3b2p128ad02bd44a3708@...627...> Message-ID: <57de1d081003101036q385750a5k6d98c346fe601fb2@...627...> Wow, interesting! Didn't know it :) Thanks! So, I really don't know what's the problem, have you tried using brackets? From doriano.blengino at ...1909... Wed Mar 10 19:36:16 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 10 Mar 2010 19:36:16 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> Message-ID: <4B97E6A0.1070009@...1909...> Alessandro Rinaldi ha scritto: > I really think yes. > Standard symbol for fractions is /, why should you use \? > Backslash is "integer division", and should yeld an integer result. Slash is "float" division, and yelds a float number (this is "Basic" syntax; other languages use different methods). The expression "1\2*3" is not really ambiguous, it is only for Gambas (don't ask me why); it should be seen as "take an integer number, integer-divide it for another integer number, and multiply the result for another integer number, giving an integer result". About integer division, there are other reasons apart from wanting an *integer* division: for example is faster. Regards, Doriano From gambas at ...1... Wed Mar 10 19:53:55 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 10 Mar 2010 19:53:55 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <4B97E6A0.1070009@...1909...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <4B97E6A0.1070009@...1909...> Message-ID: <201003101953.55679.gambas@...1...> > Alessandro Rinaldi ha scritto: > > I really think yes. > > Standard symbol for fractions is /, why should you use \? > > Backslash is "integer division", and should yeld an integer result. > Slash is "float" division, and yelds a float number (this is "Basic" > syntax; other languages use different methods). > > The expression "1\2*3" is not really ambiguous, it is only for Gambas > (don't ask me why); it should be seen as "take an integer number, > integer-divide it for another integer number, and multiply the result > for another integer number, giving an integer result". > > About integer division, there are other reasons apart from wanting an > *integer* division: for example is faster. > > Regards, > Doriano > I noticed that operator evaluation order differ between languages, even if they agree on most parts. So I decided to raise an error when the compiler encounters different operators having the same evaluation order weight, and when I thought that the interpreter may not do what the user thinks. By compelling the user to add brackets, I make the source code less ambiguous for another reader, so this is a good thing. But the test is not perfect, and I don't remember why I do not raise the error for 1/2*3 and I raise it for 1\2*3. Maybe because that mixing "*" and "/" is usual in mathematics, but mixing an integer division with a normal multiplication not, and I wanted to force the use of brackets. Morever, that error is actually just a warning. I can suppress it, and Gambas will just apply its operator evaluation order without telling anything. But I don't think I will do it! Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Wed Mar 10 20:20:19 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 10 Mar 2010 20:20:19 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <201003101953.55679.gambas@...1...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <4B97E6A0.1070009@...1909...> <201003101953.55679.gambas@...1...> Message-ID: <4B97F0F3.8040800@...1909...> Beno?t Minisini ha scritto: >> Alessandro Rinaldi ha scritto: >> >>> I really think yes. >>> Standard symbol for fractions is /, why should you use \? >>> >> Backslash is "integer division", and should yeld an integer result. >> Slash is "float" division, and yelds a float number (this is "Basic" >> syntax; other languages use different methods). >> >> The expression "1\2*3" is not really ambiguous, it is only for Gambas >> (don't ask me why); it should be seen as "take an integer number, >> integer-divide it for another integer number, and multiply the result >> for another integer number, giving an integer result". >> >> > I noticed that operator evaluation order differ between languages, even if > they agree on most parts. > > So I decided to raise an error when the compiler encounters different > operators having the same evaluation order weight, and when I thought that the > interpreter may not do what the user thinks. > > By compelling the user to add brackets, I make the source code less ambiguous > for another reader, so this is a good thing. > > But the test is not perfect, and I don't remember why I do not raise the error > for 1/2*3 and I raise it for 1\2*3. > > Maybe because that mixing "*" and "/" is usual in mathematics, but mixing an > integer division with a normal multiplication not, and I wanted to force the > use of brackets. > Perhaps this is because C has "/" and "*", and both have a double meaning (integer and float); pascal has two separated "/" and "DIV", and only one "*". So gambas is similar to pascal. When an operator is the same on different types (integer and floats), the compiler checks the arguments of the operator to decide whether promote one of the two (and the result). In this very case, all the arguments are integer, so all the operators are integer too, and there should be no doubt. Anyway, division and multiplication have the same precedence and (probably?) same associativity. But I agree with you: by combining precedence and associativity it is easy to make up a mess, and sometimes a solution like yours is better. The C language has something like 15 or more rules, so who remembers the exact result of "*pointer-- >> 3+1"? > Morever, that error is actually just a warning. I can suppress it, and Gambas > will just apply its operator evaluation order without telling anything. But I > don't think I will do it! > > Uhm... *it is* an error if the compiler refuses to compile... it would be possible to turn it in a warning (does gambas have warnings?), if only one is very sure about promoting. But gambas uses a typing scheme different from C and pascal, and automatic type conversions, so you are probably right in keeping your way. Regards, Doriano From tobiasboe at ...221... Wed Mar 10 20:27:11 2010 From: tobiasboe at ...221... (tobiasboe at ...221...) Date: Wed, 10 Mar 2010 20:27:11 +0100 Subject: [Gambas-user] Question about Databases In-Reply-To: <201003101953.55679.gambas@...1...> References: <201003101953.55679.gambas@...1...> Message-ID: <1NpRYl-0oeqcS0@...2381...> Dear Mailing-List, I have to write a Facharbeit about Gambas + SQLite3. It won't have so much pages, I just want to describe how Gambas can manage Database-Systems which aren't installed by the user in the first chapter. And that's what where I need help: I don't knoe, how Gambas does this EXACTLY and I don't know enough about my ubuntu to find this out by myself. (Please excuse my english, I am a German student ;)) Regards, Tobi From les at ...2337... Wed Mar 10 20:04:39 2010 From: les at ...2337... (Les Hardy) Date: Wed, 10 Mar 2010 19:04:39 +0000 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <201003101953.55679.gambas@...1...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <4B97E6A0.1070009@...1909...> <201003101953.55679.gambas@...1...> Message-ID: <4B97ED47.7090601@...2337...> Beno?t Minisini wrote: >> Alessandro Rinaldi ha scritto: >> >>> I really think yes. >>> Standard symbol for fractions is /, why should you use \? >>> >> Backslash is "integer division", and should yeld an integer result. >> Slash is "float" division, and yelds a float number (this is "Basic" >> syntax; other languages use different methods). >> >> The expression "1\2*3" is not really ambiguous, it is only for Gambas >> (don't ask me why); it should be seen as "take an integer number, >> integer-divide it for another integer number, and multiply the result >> for another integer number, giving an integer result". >> >> About integer division, there are other reasons apart from wanting an >> *integer* division: for example is faster. >> >> Regards, >> Doriano >> >> > > I noticed that operator evaluation order differ between languages, even if > they agree on most parts. > > So I decided to raise an error when the compiler encounters different > operators having the same evaluation order weight, and when I thought that the > interpreter may not do what the user thinks. > > By compelling the user to add brackets, I make the source code less ambiguous > for another reader, so this is a good thing. > > But the test is not perfect, and I don't remember why I do not raise the error > for 1/2*3 and I raise it for 1\2*3. > > Maybe because that mixing "*" and "/" is usual in mathematics, but mixing an > integer division with a normal multiplication not, and I wanted to force the > use of brackets. > > Morever, that error is actually just a warning. I can suppress it, and Gambas > will just apply its operator evaluation order without telling anything. But I > don't think I will do it! > > Regards, > > You are correct to not suppress it. The warning is correct. The actual value of the numbers is not important. The expression is ambiguous without the brackets. 5 \ (2 * 3) = 0 (5 \ 2) * 3 = 6 This is also ambiguous 5/2*3 5 / (2 * 3) = 0.833333333333 (5 / 2) * 3 = 7.5 Regards Les Hardy From gambas at ...1... Wed Mar 10 20:38:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 10 Mar 2010 20:38:16 +0100 Subject: [Gambas-user] Ambiguous expression? In-Reply-To: <4B97ED47.7090601@...2337...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <201003101953.55679.gambas@...1...> <4B97ED47.7090601@...2337...> Message-ID: <201003102038.16449.gambas@...1...> > You are correct to not suppress it. The warning is correct. > The actual value of the numbers is not important. > The expression is ambiguous without the brackets. > 5 \ (2 * 3) = 0 > (5 \ 2) * 3 = 6 > > This is also ambiguous > 5/2*3 > > 5 / (2 * 3) = 0.833333333333 > (5 / 2) * 3 = 7.5 > This is less ambiguous, because it is commonly known that / and * are associative from left to right a * b / c = (a * b) / c. Regards, -- Beno?t Minisini From ea7dfh at ...2382... Wed Mar 10 21:19:20 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Wed, 10 Mar 2010 21:19:20 +0100 Subject: [Gambas-user] Bug: Unable to create packages Message-ID: <4B97FEC8.8050905@...2382...> Hi I got a Stack Overflow error when trying to create packages. I think it may be related to the new combobox_click behavior (again) in the groups selection wizard when content might load into combobox. Attached is a screenshot. Gambas2 #2783 Regards, Jesus -------------- next part -------------- A non-text attachment was scrubbed... Name: Pantallazo.png Type: image/png Size: 28403 bytes Desc: not available URL: From robert1juhasz at ...626... Wed Mar 10 21:52:54 2010 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Wed, 10 Mar 2010 21:52:54 +0100 Subject: [Gambas-user] menu Message-ID: <68652a0b1003101252j76b9a01fy1d388bca399274cf@...627...> Hello List, I have a very basic question... when I develop my applications I'd like them to appear in the menu under a group (when installed on a machine). When I do tha packaging I'm able to set several parameters, but is it possible to create an own menu (for example myApps) and to put the different application under this menu (myApps/app1, myApps/app2, etc)? If yes, where can I specify it? The user PC is Ubuntu. Thanks, Robi From gambas at ...1... Wed Mar 10 22:32:57 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 10 Mar 2010 22:32:57 +0100 Subject: [Gambas-user] Bug: Unable to create packages In-Reply-To: <4B97FEC8.8050905@...2382...> References: <4B97FEC8.8050905@...2382...> Message-ID: <201003102232.57542.gambas@...1...> > Hi > > I got a Stack Overflow error when trying to create packages. I think it > may be related to the new combobox_click behavior (again) in the groups > selection wizard when content might load into combobox. > Attached is a screenshot. > > Gambas2 #2783 > > Regards, > > Jesus I have fixed it in revision #2785. I will make a 2.20.2 soon for that. Regards, -- Beno?t Minisini From keithclark at ...2185... Wed Mar 10 22:45:38 2010 From: keithclark at ...2185... (Keith Clark) Date: Wed, 10 Mar 2010 16:45:38 -0500 Subject: [Gambas-user] Interactive table Message-ID: <1268257538.4668.9.camel@...2186...> I want to create a table where a user can input data into cells, and depending on the data, calculate and display values in other cells. Which would I use, GridView or TableView? Keith From alerinaldi at ...2334... Wed Mar 10 23:11:19 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Wed, 10 Mar 2010 23:11:19 +0100 Subject: [Gambas-user] Interactive table In-Reply-To: <1268257538.4668.9.camel@...2186...> References: <1268257538.4668.9.camel@...2186...> Message-ID: <57de1d081003101411y5e04211dg4f9ee28adb5c38e@...627...> >From http://gambasdoc.org/help/comp/gb.form/tableview ----- TableView (gb.form) This control is an editable GridView. Use the Edit method to start editing a cell. Beware that this method must be called during the Click event. The data entered by the user must be saved by implementing the Save event handler. ----- So, definitely TableView :) Bye From ea7dfh at ...2382... Thu Mar 11 00:11:39 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Thu, 11 Mar 2010 00:11:39 +0100 Subject: [Gambas-user] Bug: Unable to create packages In-Reply-To: <201003102232.57542.gambas@...1...> References: <4B97FEC8.8050905@...2382...> <201003102232.57542.gambas@...1...> Message-ID: <4B98272B.6070706@...2382...> Beno?t Minisini escribi?: >> Hi >> >> I got a Stack Overflow error when trying to create packages. I think it >> may be related to the new combobox_click behavior (again) in the groups >> selection wizard when content might load into combobox. >> Attached is a screenshot. >> >> Gambas2 #2783 >> >> Regards, >> >> Jesus > > I have fixed it in revision #2785. I will make a 2.20.2 soon for that. > > Regards, > Thanks, now it works. Jesus From keithclark at ...2185... Thu Mar 11 00:22:27 2010 From: keithclark at ...2185... (Keith Clark) Date: Wed, 10 Mar 2010 18:22:27 -0500 Subject: [Gambas-user] Interactive table In-Reply-To: <57de1d081003101411y5e04211dg4f9ee28adb5c38e@...627...> References: <1268257538.4668.9.camel@...2186...> <57de1d081003101411y5e04211dg4f9ee28adb5c38e@...627...> Message-ID: <1268263347.1763.0.camel@...2336...> On Wed, 2010-03-10 at 23:11 +0100, Alessandro Rinaldi wrote: > >From http://gambasdoc.org/help/comp/gb.form/tableview > ----- > TableView (gb.form) > This control is an editable GridView. > Use the Edit method to start editing a cell. Beware that this method > must be called during the Click event. > The data entered by the user must be saved by implementing the Save > event handler. > ----- > So, definitely TableView :) > Bye > Thanks! Working TableView is working perfectly for me. Keith From dag.jarle.johansen at ...2312... Thu Mar 11 02:36:00 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Wed, 10 Mar 2010 22:36:00 -0300 Subject: [Gambas-user] [SPAM] Re: Ambiguous expression? In-Reply-To: <4B97F0F3.8040800@...1909...> References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <4B97E6A0.1070009@...1909...> <201003101953.55679.gambas@...1...> <4B97F0F3.8040800@...1909...> Message-ID: Sorry this i mathe if you have been on a highschool or a college, you would know: it's easy multiplication and diviation goes for addition and subtsraction. Gambas works like this, if you are unsure, use parantesis () regards, Dag-Jarle Johansen Am Mittwoch, den 10.03.2010, 20:20 +0100 schrieb Doriano Blengino: > Beno?t Minisini ha scritto: > >> Alessandro Rinaldi ha scritto: > >> > >>> I really think yes. > >>> Standard symbol for fractions is /, why should you use \? > >>> > >> Backslash is "integer division", and should yeld an integer result. > >> Slash is "float" division, and yelds a float number (this is "Basic" > >> syntax; other languages use different methods). > >> > >> The expression "1\2*3" is not really ambiguous, it is only for Gambas > >> (don't ask me why); it should be seen as "take an integer number, > >> integer-divide it for another integer number, and multiply the result > >> for another integer number, giving an integer result". > >> > >> > > I noticed that operator evaluation order differ between languages, even if > > they agree on most parts. > > > > So I decided to raise an error when the compiler encounters different > > operators having the same evaluation order weight, and when I thought that the > > interpreter may not do what the user thinks. > > > > By compelling the user to add brackets, I make the source code less ambiguous > > for another reader, so this is a good thing. > > > > But the test is not perfect, and I don't remember why I do not raise the error > > for 1/2*3 and I raise it for 1\2*3. > > > > Maybe because that mixing "*" and "/" is usual in mathematics, but mixing an > > integer division with a normal multiplication not, and I wanted to force the > > use of brackets. > > > Perhaps this is because C has "/" and "*", and both have a double > meaning (integer and float); > pascal has two separated "/" and "DIV", and only one "*". So gambas is > similar to pascal. > When an operator is the same on different types (integer and floats), > the compiler checks the arguments of the operator to decide whether > promote one of the two (and the result). > In this very case, all the arguments are integer, so all the operators > are integer too, and there should be no doubt. > Anyway, division and multiplication have the same precedence and > (probably?) same associativity. > > But I agree with you: by combining precedence and associativity it is > easy to make up a mess, and sometimes a solution like yours is better. > The C language has something like 15 or more rules, so who remembers the > exact result of "*pointer-- >> 3+1"? > > Morever, that error is actually just a warning. I can suppress it, and Gambas > > will just apply its operator evaluation order without telling anything. But I > > don't think I will do it! > > > > > Uhm... *it is* an error if the compiler refuses to compile... it would > be possible to turn it in a warning (does gambas have warnings?), if > only one is very sure about promoting. But gambas uses a typing scheme > different from C and pascal, and automatic type conversions, so you are > probably right in keeping your way. > > Regards, > Doriano > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dag.jarle.johansen at ...2312... Thu Mar 11 02:25:25 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Wed, 10 Mar 2010 22:25:25 -0300 Subject: [Gambas-user] [SPAM] Re: Interactive table In-Reply-To: <1268257538.4668.9.camel@...2186...> References: <1268257538.4668.9.camel@...2186...> Message-ID: Hi, I would use tableviev It is a little bit more complicated, perhaps, but it is still the most powerful control- Regards, Dag-Jarle Johansen Am Mittwoch, den 10.03.2010, 16:45 -0500 schrieb Keith Clark: > I want to create a table where a user can input data into cells, and > depending on the data, calculate and display values in other cells. > > Which would I use, GridView or TableView? > > Keith > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dag.jarle.johansen at ...2312... Thu Mar 11 02:50:14 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Wed, 10 Mar 2010 22:50:14 -0300 Subject: [Gambas-user] [SPAM] Cool In-Reply-To: <201003102232.57542.gambas@...1...> References: <4B97FEC8.8050905@...2382...> <201003102232.57542.gambas@...1...> Message-ID: I wonder do you sleep at all? It is great, how you managed to make Gambas a good language, it is better then VB ever was. It is easier to use, and I think you are really a master, considering how awful it is to use QT, for example. With the best regards for a great work Dag-Jarle Johansen From tkoeller at ...626... Thu Mar 11 04:00:59 2010 From: tkoeller at ...626... (Tim Koeller gmail) Date: Wed, 10 Mar 2010 22:00:59 -0500 Subject: [Gambas-user] [SPAM] Re: Ambiguous expression? In-Reply-To: References: <384d3901003100942s4f6f518co6ed4572064e8230c@...627...> <57de1d081003100948q1c2cb728kd2ddf7058e0fb653@...627...> <4B97E6A0.1070009@...1909...> <201003101953.55679.gambas@...1...> <4B97F0F3.8040800@...1909...> Message-ID: <3e6b3ab1003101900m3f369688i2826e43cabe580ca@...627...> ... and when operators are of equal precedence then the operators are executed left to right. Tim On 3/10/10, Dag Jarle Johansen wrote: > Sorry > this i mathe > if you have been on a highschool or a college, you would know: it's easy > multiplication and diviation goes for addition and subtsraction. > Gambas works like this, if you are unsure, use parantesis () > > regards, > Dag-Jarle Johansen > > > Am Mittwoch, den 10.03.2010, 20:20 +0100 schrieb Doriano Blengino: >> Beno?t Minisini ha scritto: >> >> Alessandro Rinaldi ha scritto: >> >> >> >>> I really think yes. >> >>> Standard symbol for fractions is /, why should you use \? >> >>> >> >> Backslash is "integer division", and should yeld an integer result. >> >> Slash is "float" division, and yelds a float number (this is "Basic" >> >> syntax; other languages use different methods). >> >> >> >> The expression "1\2*3" is not really ambiguous, it is only for Gambas >> >> (don't ask me why); it should be seen as "take an integer number, >> >> integer-divide it for another integer number, and multiply the result >> >> for another integer number, giving an integer result". >> >> >> >> >> > I noticed that operator evaluation order differ between languages, even >> > if >> > they agree on most parts. >> > >> > So I decided to raise an error when the compiler encounters different >> > operators having the same evaluation order weight, and when I thought >> > that the >> > interpreter may not do what the user thinks. >> > >> > By compelling the user to add brackets, I make the source code less >> > ambiguous >> > for another reader, so this is a good thing. >> > >> > But the test is not perfect, and I don't remember why I do not raise the >> > error >> > for 1/2*3 and I raise it for 1\2*3. >> > >> > Maybe because that mixing "*" and "/" is usual in mathematics, but >> > mixing an >> > integer division with a normal multiplication not, and I wanted to force >> > the >> > use of brackets. >> > >> Perhaps this is because C has "/" and "*", and both have a double >> meaning (integer and float); >> pascal has two separated "/" and "DIV", and only one "*". So gambas is >> similar to pascal. >> When an operator is the same on different types (integer and floats), >> the compiler checks the arguments of the operator to decide whether >> promote one of the two (and the result). >> In this very case, all the arguments are integer, so all the operators >> are integer too, and there should be no doubt. >> Anyway, division and multiplication have the same precedence and >> (probably?) same associativity. >> >> But I agree with you: by combining precedence and associativity it is >> easy to make up a mess, and sometimes a solution like yours is better. >> The C language has something like 15 or more rules, so who remembers the >> exact result of "*pointer-- >> 3+1"? >> > Morever, that error is actually just a warning. I can suppress it, and >> > Gambas >> > will just apply its operator evaluation order without telling anything. >> > But I >> > don't think I will do it! >> > >> > >> Uhm... *it is* an error if the compiler refuses to compile... it would >> be possible to turn it in a warning (does gambas have warnings?), if >> only one is very sure about promoting. But gambas uses a typing scheme >> different from C and pascal, and automatic type conversions, so you are >> probably right in keeping your way. >> >> Regards, >> Doriano >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Tim Koeller From mohareve at ...626... Thu Mar 11 08:32:34 2010 From: mohareve at ...626... (M. Cs.) Date: Thu, 11 Mar 2010 08:32:34 +0100 Subject: [Gambas-user] Question about Databases In-Reply-To: <1NpRYl-0oeqcS0@...2381...> References: <201003101953.55679.gambas@...1...> <1NpRYl-0oeqcS0@...2381...> Message-ID: There's a backend driver gambas2-gb-db-sqlite, which communicates with the sqlite3 driver. You have to specify the Host (folder of the target database file), Name (of the file itself) and Type (which is sqlite) and also a Password if you need some. The details under the hood? I don't know. You have to prepare a querry text and to pass it to Database.Exec function as argument. What is difficult: you have some forbidden characters like ~?'<>, which may not be parts of the search pattern. From office.zolano at ...626... Thu Mar 11 11:15:30 2010 From: office.zolano at ...626... (Zoltan Biro) Date: Thu, 11 Mar 2010 12:15:30 +0200 Subject: [Gambas-user] Gridview - alignment Message-ID: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> HI everybody, I have the folowing strange problem: I filled a grid with data from an sql command result as you can see in the code: PUBLIC SUB Button_click hrex = Proced.$db.Exec(miex) GridView1.Columns.count = 6 GridView1.rows.count = hrex.count END PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) DIM i AS Integer hrex.MoveTo(row) GridView1.Data.Text = Str(hrex[GridView1.Columns[Column].Text]) GridView1.data.Alignment = Align.Left 'I can use align.right - everithing work okay END In this situation everythink works okay.. but I need to align the first colum to right. I completed the gridview1_data with: GridView1[row, 3].Alignment = Align.right and the grid will show me an empty cell! If I put in button_click the: GridView1[1, 3].Alignment = Align.right the data in grid is okay but the cell [1,3] is empty.. Can tell me somebody how can I align a colum to right, and the rest of colums to left? I can mention that if I fill the grid directly with commands like gridview1[1,1].text="something" and i align this to right..this works fine..but If I try to align a cell to right based on data from an array or result-table it not works. Thanks in advance, Zoli B. From sevoir75 at ...626... Thu Mar 11 11:23:01 2010 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Thu, 11 Mar 2010 11:23:01 +0100 Subject: [Gambas-user] Solving: how to create installation package with Gambas 2.19 on Lucid Lynx Alpha 3(Ubuntu 10.04) Message-ID: <1268302981.31631.2.camel@...2393...> Hi all, The basic method is failed but I reported this bug on launchpad. https://bugs.launchpad.net/ubuntu/+source/gambas2/+bug/534946 When I choosing only one distibution Ubuntu then Package group list is empty and create installing package is failed. But if I following next steps then installing packaging create is okay. the solution process: making installation package Step 3: check Debian and Ubuntu target distributions Step 4: choose Package group for each distributions (Debian, Ubuntu) note: maybe you should change distribution to showing list. Step 5: choose Menu entry for each distributions (Debian, Ubuntu) note: maybe you should change distribution to showing list. Step 6: okay Step 7: okay regards, Sevoir From gambas at ...1... Thu Mar 11 12:04:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Mar 2010 12:04:31 +0100 Subject: [Gambas-user] Gridview - alignment In-Reply-To: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> References: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> Message-ID: <201003111204.31620.gambas@...1...> > HI everybody, > > I have the folowing strange problem: I filled a grid with data from an > sql command result as you can see in the code: > > PUBLIC SUB Button_click > hrex = Proced.$db.Exec(miex) > GridView1.Columns.count = 6 > GridView1.rows.count = hrex.count > END > > PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) > DIM i AS Integer > hrex.MoveTo(row) > GridView1.Data.Text = Str(hrex[GridView1.Columns[Column].Text]) > GridView1.data.Alignment = Align.Left 'I can use align.right - > everithing work okay > END > > In this situation everythink works okay.. but I need to align the first > colum to right. I completed the gridview1_data with: > GridView1[row, 3].Alignment = Align.right > and the grid will show me an empty cell! > If I put in button_click the: > GridView1[1, 3].Alignment = Align.right > the data in grid is okay but the cell [1,3] is empty.. > > Can tell me somebody how can I align a colum to right, and the rest of > colums to left? > I can mention that if I fill the grid directly with commands like > gridview1[1,1].text="something" and i align this to right..this works > fine..but If I try to align a cell to right based on data from an array or > result-table it not works. > > Thanks in advance, > Zoli B. You cannot mix access to GridView[] and the Data event. You must specify the alignment during the Data event. Regards, -- Beno?t Minisini From dag.jarle.johansen at ...2312... Thu Mar 11 12:33:54 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Thu, 11 Mar 2010 08:33:54 -0300 Subject: [Gambas-user] [SPAM] Spam In-Reply-To: <201001201332.03557.gambas@...1...> References: <4B56ECE8.5020506@...221...> <201001201332.03557.gambas@...1...> Message-ID: You tresure my mails to you as SPAM? From office.zolano at ...626... Thu Mar 11 12:37:14 2010 From: office.zolano at ...626... (zolaysoftsolutions) Date: Thu, 11 Mar 2010 03:37:14 -0800 (PST) Subject: [Gambas-user] Gridview - alignment In-Reply-To: <201003111204.31620.gambas@...1...> References: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> <201003111204.31620.gambas@...1...> Message-ID: <27862342.post@...1379...> Hello Mr.Minisini, First time I thank you for develop Gambas..and thank you for try to halping me. If I introduce in "Gridview1_data" the folowing command (this mean during the Data event): GridView1.data.Alignment = Align.Right This works perfectly but all my data is aligned to right. If I introduce in Data event (Gridview1_data): GridView1[row, 3].Alignment = Align.right This NOT working..the grid will show empty cells. Is there a possibility to align some columns to right and the rest leave on left using Gridview trough data event? ..using direct fill method of the grid is very very slow..and is not easy to handle the row delete or sorting.. You said that: "You must specify the alignment during the Data event."...please help me..how can I do this? I found only one possibility: gridview1.data.aligment=align.right ...but this is not okay for me..I don't need all data aligned to right. Best regards, Zoli B. -- View this message in context: http://old.nabble.com/Gridview---alignment-tp27861588p27862342.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Mar 11 12:41:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Mar 2010 12:41:21 +0100 Subject: [Gambas-user] [SPAM] Spam In-Reply-To: References: <4B56ECE8.5020506@...221...> <201001201332.03557.gambas@...1...> Message-ID: <201003111241.21282.gambas@...1...> > You tresure my mails to you as SPAM? > Look in your mail: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 3.0 VA_SENDER_VERIFY Unable to Verify Sender Address 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server [201.234.99.50 listed in dnsbl.sorbs.net] -0.0 SPF_PASS SPF: sender matches SPF record 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL [201.234.99.50 listed in psbl.surriel.com] 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 1.5 SF_NO_SPF_SPAM SF_NO_SPF_SPAM 0.0 AWL AWL: From: address is in the auto white-list -- Beno?t Minisini From gambas at ...1... Thu Mar 11 12:44:43 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Mar 2010 12:44:43 +0100 Subject: [Gambas-user] Gridview - alignment In-Reply-To: <27862342.post@...1379...> References: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> <201003111204.31620.gambas@...1...> <27862342.post@...1379...> Message-ID: <201003111244.43103.gambas@...1...> > Hello Mr.Minisini, > > First time I thank you for develop Gambas..and thank you for try to > halping me. > > If I introduce in "Gridview1_data" the folowing command (this mean during > the Data event): > > GridView1.data.Alignment = Align.Right > This works perfectly but all my data is aligned to right. > > If I introduce in Data event (Gridview1_data): > GridView1[row, 3].Alignment = Align.right > This NOT working..the grid will show empty cells. > > Is there a possibility to align some columns to right and the rest leave on > left using Gridview trough data event? > ..using direct fill method of the grid is very very slow..and is not easy > to handle the row delete or sorting.. > > You said that: "You must specify the alignment during the Data > event."...please help me..how can I do this? > I found only one possibility: gridview1.data.aligment=align.right ...but > this is not okay for me..I don't need all data aligned to right. > > Best regards, > Zoli B. If Column = 3 Then GridView1.Data.Alignment = Align.Right -- Beno?t Minisini From dag.jarle.johansen at ...2312... Thu Mar 11 12:58:49 2010 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Thu, 11 Mar 2010 08:58:49 -0300 Subject: [Gambas-user] [SPAM] Re: [SPAM] Spam In-Reply-To: <201003111241.21282.gambas@...1...> References: <4B56ECE8.5020506@...221...> <201001201332.03557.gambas@...1...> <201003111241.21282.gambas@...1...> Message-ID: Ok, Benoit it seems to be some kind of error here, my mail-address should be ok, If not, I will change it at once regards, Dag-Jarle Johannsen Am Donnerstag, den 11.03.2010, 12:41 +0100 schrieb Beno?t Minisini: > > You tresure my mails to you as SPAM? > > > > Look in your mail: > > Spam Filtering performed by mx.sourceforge.net. > See http://spamassassin.org/tag/ for more details. > -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for > sender-domain > 3.0 VA_SENDER_VERIFY Unable to Verify Sender Address > 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server > [201.234.99.50 listed in dnsbl.sorbs.net] > -0.0 SPF_PASS SPF: sender matches SPF record > 2.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net > [Blocked - see ] > 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL > [201.234.99.50 listed in psbl.surriel.com] > 1.5 MSGID_FROM_MTA_HEADER Message-Id was added by a relay > 1.5 SF_NO_SPF_SPAM SF_NO_SPF_SPAM > 0.0 AWL AWL: From: address is in the auto white-list > From rterry at ...1946... Thu Mar 11 13:15:12 2010 From: rterry at ...1946... (richard terry) Date: Thu, 11 Mar 2010 23:15:12 +1100 Subject: [Gambas-user] My first attempt at making a control - some questions Message-ID: <201003112315.12261.rterry@...1946...> I decided tonight to make a little control - something simple, a vbox, containing a picturebox, underneath that a hbox with label, textbox and checkbox. I've read the doc's on the website and have had a modicum of success in that I've. I wanted a compound control because I'm writing a section in my program where I allocate scanned documents to a patients file, and wanted to be able to join multiple pages sometimes into a single pdf file. I needed to be able to display the thumbs of the first page of the pdf, 4-6 to a page, and under each picture, needed the textbox. So far so good, my control sort-of works. I enclose the code for anyone who knows about this to comment on, but I've a couple of questions.: When I compiled it to an exe > saved it to /home/richard/pdfpreview as pdfpreview.gambas. It was then available as a component to the project I wrote it in as a control (without an icon). The docs say that for gamabs3 - you need a .hidden/control directory, and to put the icon in there with the same name as the control. eg pdfpreview.png, I did this and the icon is under the sources dir. This dosn't appear in the toolbox. However if you re-compile the control it does - maybe common sense, but should be mentioned in the docs. I don't understand this: "You can install the component in your home directory by checking the corresponding option in the "Make executable" dialog. Once installed there, the component will be visible in the "Components" tab of the project property dialog as any other globally installed components. To uninstall the component from your home directory, just uncheck the option in the "Make executable" dialog, and make the executable again. " Why the 'home directory', does this mean just /richard/home, if so why there? It is stated that this: PUBLIC CONST _DrawWith AS String = "TextBox" will cause the control to be used to draw with in the ide. ?what does one replace the "textbox" with , the name of your control? Also I did do the above, and nothing happens, still uses the drawing area. Also I wanted a double click event on the picturebox, there is an example of a click event which i've used, but couldn't figure out the double click. Lastly, as the control is in /home/richard/pdfpreview, but appears in my project which is an svn project living in another directory, what happens if someone else checks out the svn - how to they get hold of the control? all in all, interesting experience, Thanks for any help. -------------- next part -------------- A non-text attachment was scrubbed... Name: PdfPreview.class Type: application/x-java Size: 2362 bytes Desc: not available URL: From office.zolano at ...626... Thu Mar 11 13:32:13 2010 From: office.zolano at ...626... (zolaysoftsolutions) Date: Thu, 11 Mar 2010 04:32:13 -0800 (PST) Subject: [Gambas-user] Gridview - alignment In-Reply-To: <201003111244.43103.gambas@...1...> References: <15a707ce1003110215pf78f0bai6d35eb6c1627a20b@...627...> <201003111204.31620.gambas@...1...> <27862342.post@...1379...> <201003111244.43103.gambas@...1...> Message-ID: <27862876.post@...1379...> Thank you vey much Benoit! ..it works perfectly. Regards, Zoli B. Beno?t Minisini wrote: > >> Hello Mr.Minisini, >> >> First time I thank you for develop Gambas..and thank you for try to >> halping me. >> >> If I introduce in "Gridview1_data" the folowing command (this mean during >> the Data event): >> >> GridView1.data.Alignment = Align.Right >> This works perfectly but all my data is aligned to right. >> >> If I introduce in Data event (Gridview1_data): >> GridView1[row, 3].Alignment = Align.right >> This NOT working..the grid will show empty cells. >> >> Is there a possibility to align some columns to right and the rest leave >> on >> left using Gridview trough data event? >> ..using direct fill method of the grid is very very slow..and is not easy >> to handle the row delete or sorting.. >> >> You said that: "You must specify the alignment during the Data >> event."...please help me..how can I do this? >> I found only one possibility: gridview1.data.aligment=align.right ...but >> this is not okay for me..I don't need all data aligned to right. >> >> Best regards, >> Zoli B. > > If Column = 3 Then GridView1.Data.Alignment = Align.Right > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Gridview---alignment-tp27861588p27862876.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Mar 11 13:58:20 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 11 Mar 2010 13:58:20 +0100 Subject: [Gambas-user] My first attempt at making a control - some questions In-Reply-To: <201003112315.12261.rterry@...1946...> References: <201003112315.12261.rterry@...1946...> Message-ID: <201003111358.20675.gambas@...1...> > I decided tonight to make a little control - something simple, a vbox, > containing a picturebox, underneath that a hbox with label, textbox and > checkbox. > > I've read the doc's on the website and have had a modicum of success in > that I've. I wanted a compound control because I'm writing a section in my > program where I allocate scanned documents to a patients file, and wanted > to be able to join multiple pages sometimes into a single pdf file. > > I needed to be able to display the thumbs of the first page of the pdf, 4-6 > to a page, and under each picture, needed the textbox. > > So far so good, my control sort-of works. I enclose the code for anyone who > knows about this to comment on, but I've a couple of questions.: > > > > When I compiled it to an exe > saved it to > > /home/richard/pdfpreview as pdfpreview.gambas. > You should keep the executable inside the project directory. > It was then available as a component to the project I wrote it in as a > control (without an icon). > > The docs say that for gamabs3 - you need a .hidden/control directory, and > to put the icon in there with the same name as the control. eg > pdfpreview.png, I did this and the icon is under the sources dir. This > dosn't appear in the toolbox. However if you re-compile the control it > does - maybe common sense, but should be mentioned in the docs. Indeed. > > I don't understand this: > "You can install the component in your home directory by checking the > corresponding option in the "Make executable" dialog. > Once installed there, the component will be visible in the "Components" tab > of the project property dialog as any other globally installed components. > To uninstall the component from your home directory, just uncheck the > option in the "Make executable" dialog, and make the executable again. " > > Why the 'home directory', does this mean just /richard/home, if so why > there? It just means that a symbolic link pointed at the executable (and other symbolic links) will be created somewhere in the ~/.local directory. > It is stated that this: > PUBLIC CONST _DrawWith AS String = "TextBox" > > will cause the control to be used to draw with in the ide. > ?what does one > replace the "textbox" with , the name of your control? > > Also I did do the above, and nothing happens, still uses the drawing area. I'm afraid that this feature is not used anymore by the IDE. I have removed it recently. > Also I wanted a double click event on the picturebox, there is an example > of a click event which i've used, but couldn't figure out the double > click. _DblClick ? > Lastly, as the control is in /home/richard/pdfpreview, but appears > in my project which is an svn project living in another directory, what > happens if someone else checks out the svn - how to they get hold of the > control? That is the problem. The current implementation of user control coming from Gambas 2 does not satisfy me at all, and I think I will redesign it completely soon. I think that what is needed is sharing code between projects, one (or more) being "main" projects, the others acting like components. So I'm currently thinking adding a "user component directory" option in each project: all Gambas projects inside this directory will be taken as user components when running the main project from the IDE. At runtime, it must be different, the "user component directory" having no sense anymore. And only the executable is needed. Maybe I could introduce the concept of "user component group" attached to a project, which is just the name of a subdirectory where all the user components of the projects will be searched. I don't know yet exactly... Regards, -- Beno?t Minisini From keithclark at ...2185... Fri Mar 12 01:58:19 2010 From: keithclark at ...2185... (Keith Clark) Date: Thu, 11 Mar 2010 19:58:19 -0500 Subject: [Gambas-user] Currency and addition/subtraction Message-ID: <1268355499.4668.44.camel@...2186...> I have a TableView object and have imported some data into it that is formatted as currency. How can I know take that and add it to a Float variable? Keith From charles at ...1784... Fri Mar 12 10:14:39 2010 From: charles at ...1784... (charlesg) Date: Fri, 12 Mar 2010 01:14:39 -0800 (PST) Subject: [Gambas-user] Currency and addition/subtraction In-Reply-To: <1268355499.4668.44.camel@...2186...> References: <1268355499.4668.44.camel@...2186...> Message-ID: <27874102.post@...1379...> Hi, I guess the simple answer is: fTotal += Val(tblView[row, column].text) However, you will eventually run into rounding errors. there was quite a lengthy thread not long ago about this. The conclusion (if such a thing can be reached on a forum :-)) was that currency should be worked on as integers and decimal points added at display time. The problem is compounded by barmy tax authorities on the continent who demand calculations to four decimals. At the time, I wrote the following simply as a test. As with most of my programming, it is unlikely to be the most efficient method. :blush: > PUBLIC SUB btnRun_Click() > DIM iInt AS Integer > DIM j AS Integer > > IF InStr(txtInput.text, ".") = 0 THEN 'no decimal entered ie assume in > cents > TRY iInt = Val(txtInput.text) > IF ERROR THEN > PRINT "trapped" 'do someting if it is not a number > ENDIF > ELSE > iInt = Val(txtInput.text) * 10 ^ Val(txtDecPlaces.text) + 0.5 'multiply > out > ENDIF > > txtInteger.text = Str(iInt) 'display integer representation > > IF Len(txtInteger.text) > Val(txtDecPlaces.text) THEN 'if the integer > equivalent is long enough to accomodate the required dec places > lblOutput.text = Str(Left(txtInteger.text, Len(txtInteger.text) - > Val(txtDecPlaces.text))) & "." & Str(Right(txtInteger.text, > Val(txtDecPlaces.text))) > ELSE 'pad out with leading zeroes > lblOutput.text = Str(txtInteger.text) > FOR j = Len(txtInteger.text) TO Val(txtDecPlaces.text) - 1 > lblOutput.text = "0" & lblOutput.Text > NEXT > lblOutput.text = "0." & lblOutput.text > ENDIF > END > rgds -- View this message in context: http://old.nabble.com/Currency-and-addition-subtraction-tp27872220p27874102.html Sent from the gambas-user mailing list archive at Nabble.com. From les at ...2337... Fri Mar 12 10:11:12 2010 From: les at ...2337... (Les Hardy) Date: Fri, 12 Mar 2010 09:11:12 +0000 Subject: [Gambas-user] Currency and addition/subtraction In-Reply-To: <1268355499.4668.44.camel@...2186...> References: <1268355499.4668.44.camel@...2186...> Message-ID: <4B9A0530.3030407@...2337...> Keith Clark wrote: > I have a TableView object and have imported some data into it that is > formatted as currency. How can I know take that and add it to a Float > variable? > > Keith > > > > dim cur as string = "?" dim floatvar as float floatvar = Val(Replace(TableView1[TableView1.row, 1].Text, cur, "")) From keithclark at ...2185... Fri Mar 12 19:59:00 2010 From: keithclark at ...2185... (Keith Clark) Date: Fri, 12 Mar 2010 13:59:00 -0500 Subject: [Gambas-user] TableView.text conversion Message-ID: <1268420340.3704.10.camel@...2186...> I have input a value into a TableView cell, and now I want to read it. The problem is that I want to read it as a text string. The 'number' is actually an ISBN code. It can sometimes be a string, as it can contain an 'X' or a 10 digit number, but starting with a 0. For example, 0123456789, 1234567891, and 012345678X are all valid values for the cell. So, when the cell value is say 0123456789 and I convert it with str$, I get 123456789, the zero is dropped. Is there an easy way around this or do I have to check the leading character each time for a '0'? Thanks, Keith From les at ...2337... Fri Mar 12 20:57:56 2010 From: les at ...2337... (Les Hardy) Date: Fri, 12 Mar 2010 19:57:56 +0000 Subject: [Gambas-user] TableView.text conversion In-Reply-To: <1268420340.3704.10.camel@...2186...> References: <1268420340.3704.10.camel@...2186...> Message-ID: <4B9A9CC4.6030001@...2337...> Keith Clark wrote: > I have input a value into a TableView cell, and now I want to read it. > The problem is that I want to read it as a text string. The 'number' is > actually an ISBN code. It can sometimes be a string, as it can contain > an 'X' or a 10 digit number, but starting with a 0. > > For example, 0123456789, 1234567891, and 012345678X are all valid values > for the cell. > > So, when the cell value is say 0123456789 and I convert it with str$, I > get 123456789, the zero is dropped. Is there an easy way around this or > do I have to check the leading character each time for a '0'? > > Thanks, > > Keith > > Hi Keith, Since Jan 2007 ISBN numbers have been 13 digits and should consist of 5 parts with each section being separated by spaces or hyphens. Because of this, your ISBN numbers will always be stored and displayed as strings. There is no conversion needed. From keithclark at ...2185... Fri Mar 12 21:29:04 2010 From: keithclark at ...2185... (Keith Clark) Date: Fri, 12 Mar 2010 15:29:04 -0500 Subject: [Gambas-user] TableView.text conversion In-Reply-To: <4B9A9CC4.6030001@...2337...> References: <1268420340.3704.10.camel@...2186...> <4B9A9CC4.6030001@...2337...> Message-ID: <1268425744.3704.11.camel@...2186...> Les, Thanks, but I found that that was not actually my problem. The problem showed up in sending data to a field in my database. I just forgot to surround the field with single quotes! Sometimes the simplest problem is hard to see! Keith On Fri, 2010-03-12 at 19:57 +0000, Les Hardy wrote: > Keith Clark wrote: > > I have input a value into a TableView cell, and now I want to read it. > > The problem is that I want to read it as a text string. The 'number' is > > actually an ISBN code. It can sometimes be a string, as it can contain > > an 'X' or a 10 digit number, but starting with a 0. > > > > For example, 0123456789, 1234567891, and 012345678X are all valid values > > for the cell. > > > > So, when the cell value is say 0123456789 and I convert it with str$, I > > get 123456789, the zero is dropped. Is there an easy way around this or > > do I have to check the leading character each time for a '0'? > > > > Thanks, > > > > Keith > > > > > Hi Keith, Since Jan 2007 ISBN numbers have been 13 digits and should > consist of 5 parts with each section being separated by spaces or hyphens. > Because of this, your ISBN numbers will always be stored and displayed > as strings. > There is no conversion needed. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From keithclark at ...2185... Fri Mar 12 21:30:39 2010 From: keithclark at ...2185... (Keith Clark) Date: Fri, 12 Mar 2010 15:30:39 -0500 Subject: [Gambas-user] Using a printer documentation Message-ID: <1268425839.3704.13.camel@...2186...> Could someone forward me a few links about how to use a printer from within Gambas? I need to know how to "Print" to a system default printer. Thanks Keith From vkan53 at ...2300... Fri Mar 12 21:56:57 2010 From: vkan53 at ...2300... (Vassilis K) Date: Fri, 12 Mar 2010 22:56:57 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! Message-ID: <1268427417.6132.9.camel@...2376...> the (textbox) LostFocus() routine is working on Opensuse (with Gambas 2.17) but not on Ubuntu (with Gambas 2.19)! The same components of Gambas are loaded on both PCs! gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, gb.vb. PUBLIC SUB tEponimia_LostFocus() DIM rs33 AS Result DIM i AS Integer DIM htable AS Table DIM Diktis AS Integer ListBox1.Clear MODMain.Connect() IF db.Tables.Exist("Aplianikis") THEN rs33 = MODMain.$Con.exec("select DISTINCT Eponimia from Aplianikis where Eponimia LIKE '" & tEponimia.Text & "%'") TRY PRINT rs33!Eponimia IF ERROR THEN 'ListBox1.Add("") 'ListBox1.Clear 'tEponimia.Clear 'tEponimia.SetFocus ELSE FOR EACH rs33 ListBox1.Add(rs33!Eponimia) NEXT ENDIF ELSE MODMain.Connect() htable = db.Tables.Add("Aplianikis") htable.Fields.Add("aa", db.Serial, 10) htable.Fields.Add("Eponimia", db.String, 40) htable.Fields.Add("AFM", db.String, 18) htable.Fields.Add("Hmerominia", db.Date) htable.Fields.Add("Poson", db.Float) htable.Fields.Add("Checkbox", gb.Boolean,, FALSE) htable.PrimaryKey = ["aa"] htable.Update ENDIF END From johny.provoost at ...27... Fri Mar 12 22:09:52 2010 From: johny.provoost at ...27... (Johny Provoost) Date: Fri, 12 Mar 2010 22:09:52 +0100 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <1268425839.3704.13.camel@...2186...> References: <1268425839.3704.13.camel@...2186...> Message-ID: <4B9AADA0.3040200@...27...> You could look in the help under gb.qt.ext and deeper down on Draw. here's a piece of code as an example PUBLIC SUB btVprint_Click() DIM NaamMaand[13] AS String DIM aantal AS Integer DIM AantalInLijst AS Integer DIM HoeveelRec AS Integer DIM vYdim AS Integer DIM Teller AS Integer DIM TempDatum AS Date DIM TempDatum2 AS Date DIM AantalDagen AS Integer DIM EersteDag AS Integer DIM vCounter AS Integer DIM pEersteDag AS Boolean DIM vIndex AS Integer DIM vYnaam AS Integer NaamMaand[1] = ("Januari") NaamMaand[2] = ("Februari") NaamMaand[3] = ("Maart") NaamMaand[4] = ("April") NaamMaand[5] = ("Mei") NaamMaand[6] = ("Juni") NaamMaand[7] = ("Juli") NaamMaand[8] = ("Augustus") NaamMaand[9] = ("September") NaamMaand[10] = ("Oktober") NaamMaand[11] = ("November") NaamMaand[12] = ("December") IF PrintVerjaardagen.rbPrintLijst.Value = TRUE THEN IF Printer.Setup() THEN RETURN Draw.Begin(Printer) 'Initialize the draw Printer.Orientation = 0 Printer.Size = "A4" Draw.Font.Size = 18 Draw.Font.Name = "Arial" Draw.Font.Underline = TRUE Draw.Font.Bold = TRUE Draw.Text(("Verjaardagen ") & PrintVerjaardagen.sbJaren.Value, 1800, 250) Draw.Line(300, 450, 4900, 450) Draw.Font.Underline = FALSE Draw.Font.Bold = FALSE vYdim = 550 FOR aantal = 1 TO 12 Draw.Font.Size = 14 Draw.Font.Name = "Arial" HoeveelRec = VulMaandLijst(aantal) IF (vYdim + 130 + (PrintVerjaardagen.lstMaandlijst.Count * 100)) > 6750 THEN 'New Page Printer.NewPage Draw.Font.Size = 18 Draw.Font.Name = "Arial" Draw.Font.Underline = TRUE Draw.Font.Bold = TRUE Draw.Text(("Verjaardagen ") & PrintVerjaardagen.sbJaren.Value, 1800, 250) Draw.Line(300, 450, 4900, 450) Draw.Font.Underline = FALSE Draw.Font.Bold = FALSE vYdim = 550 ENDIF Draw.Text(NaamMaand[aantal], 350, vYdim) vYdim = vYdim + 130 Draw.Font.Size = 10 FOR AantalInLijst = 0 TO PrintVerjaardagen.lstMaandlijst.Count - 1 PrintVerjaardagen.lstMaandlijst.Index = AantalInLijst Draw.Text(PrintVerjaardagen.lstMaandlijst.Text, 350, vYdim) vYdim = vYdim + 100 NEXT vYdim = vYdim + 100 NEXT Draw.End PrintVerjaardagen.Close ELSE IF Printer.Setup() THEN RETURN pEersteDag = TRUE Draw.Begin(Printer) 'Initialize the draw Printer.Orientation = 1 Printer.Size = "A4" FOR aantal = 1 TO 12 TempDatum = Date(PrintVerjaardagen.sbJaren.Value, aantal, 1) IF aantal <> 12 THEN TempDatum2 = Date(PrintVerjaardagen.sbJaren.Value, aantal + 1, 1) AantalDagen = (DateDiff(TempDatum, TempDatum2, gb.Day)) ELSE AantalDagen = 31 ENDIF EersteDag = WeekDay(TempDatum) HoeveelRec = VulMaandLijst(aantal) vIndex = 0 PrintVerjaardagen.lstMaandlijst.Index = vIndex Draw.Font.Size = 18 Draw.Font.Name = "Arial" Draw.Font.Bold = TRUE Draw.Font.Underline = TRUE Draw.Rect(250, 750, 6435, 350) Draw.Text(NaamMaand[aantal] & " - " & PrintVerjaardagen.sbJaren.Value, 3000, 800) Draw.Font.Underline = FALSE Draw.Font.Size = 12 Draw.Text(("Maandag"), 380, 990) Draw.Text(("Dinsdag"), 1310, 990) Draw.Text(("Woensdag"), 2240, 990) Draw.Text(("Donderdag"), 3170, 990) Draw.Text(("Vrijdag"), 4100, 990) Draw.Text(("Zaterdag"), 5030, 990) Draw.Text(("Zondag"), 5960, 990) 'first row Draw.Rect(250, 1100, 920, 600) 'Maandag Draw.Rect(1170, 1100, 920, 600) 'Dinsdag Draw.Rect(2090, 1100, 920, 600) 'Woensdag Draw.Rect(3010, 1100, 920, 600) 'Donderdag Draw.Rect(3930, 1100, 920, 600) 'Vrijdag Draw.Rect(4850, 1100, 920, 600) 'Zaterdag Draw.Rect(5770, 1100, 920, 600) 'Zondag 'second row FOR Teller = 250 TO 5770 STEP 920 Draw.Rect(Teller, 1700, 920, 600) NEXT 'third row FOR Teller = 250 TO 5770 STEP 920 Draw.Rect(Teller, 2300, 920, 600) NEXT 'fourth row FOR Teller = 250 TO 5770 STEP 920 Draw.Rect(Teller, 2900, 920, 600) NEXT 'fift row FOR Teller = 250 TO 5770 STEP 920 Draw.Rect(Teller, 3500, 920, 600) NEXT 'sixt row Draw.Rect(250, 4100, 920, 600) Draw.Rect(1170, 4100, 920, 600) 'print the days in numbers and birthdays Draw.Font.Size = 14 vYdim = 1150 FOR vCounter = 1 TO AantalDagen FOR Teller = 1 TO 7 IF EersteDag = 0 THEN Teller = 7 EersteDag = 1 ELSE IF pEersteDag = TRUE THEN Teller = EersteDag pEersteDag = FALSE ENDIF ENDIF Draw.Text(vCounter, 300 + ((Teller - 1) * 930), vYdim) vYnaam = 120 IF Val(Left(PrintVerjaardagen.lstMaandlijst.Text, 2)) = vCounter THEN Draw.Font.Size = 9 Draw.Font.Bold = FALSE WHILE Val(Left(PrintVerjaardagen.lstMaandlijst.Text, 2)) = vCounter Draw.Text(Right(PrintVerjaardagen.lstMaandlijst.Text, Len(PrintVerjaardagen.lstMaandlijst.Text) - 13), 280 + ((Teller - 1) * 930), vYdim + vYnaam) vYnaam = vYnaam + 80 vIndex = vIndex + 1 PrintVerjaardagen.lstMaandlijst.Index = vIndex WEND Draw.Font.Size = 14 Draw.Font.Bold = TRUE ENDIF IF vCounter = AantalDagen THEN Teller = 7 IF Teller <> 7 THEN vCounter = vCounter + 1 NEXT vYdim = vYdim + 600 NEXT IF aantal <> 12 THEN Printer.NewPage ENDIF pEersteDag = TRUE NEXT Draw.End PrintVerjaardagen.Close ENDIF END *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* Keith Clark schreef: > Could someone forward me a few links about how to use a printer from > within Gambas? I need to know how to "Print" to a system default > printer. > > Thanks > > Keith > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From les at ...2337... Fri Mar 12 22:09:48 2010 From: les at ...2337... (Les Hardy) Date: Fri, 12 Mar 2010 21:09:48 +0000 Subject: [Gambas-user] TableView.text conversion In-Reply-To: <1268425744.3704.11.camel@...2186...> References: <1268420340.3704.10.camel@...2186...> <4B9A9CC4.6030001@...2337...> <1268425744.3704.11.camel@...2186...> Message-ID: <4B9AAD9C.5070702@...2337...> Keith Clark wrote: > Les, > > Thanks, but I found that that was not actually my problem. The problem > showed up in sending data to a field in my database. I just forgot to > surround the field with single quotes! Sometimes the simplest problem > is hard to see! > > Keith > > Yes, if its a string it will be ok. I have some very simple gambas code for a 10 to 13 digit conversion, if it is of any use to you. Regards Les From rterry at ...1946... Fri Mar 12 23:30:44 2010 From: rterry at ...1946... (richard terry) Date: Sat, 13 Mar 2010 09:30:44 +1100 Subject: [Gambas-user] de-selecting a multi-select filechooser Message-ID: <201003130930.44486.rterry@...1946...> I wondered if it was possible programatically to deselect a users multi select ie, if I've an checkbox as an option for the user to set the Filechoose1.multi=true, and they change their mind > click it off, how does one remove the highlighted multiple selected files? Regards Richard From linuxos at ...1896... Fri Mar 12 23:43:38 2010 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 12 Mar 2010 23:43:38 +0100 Subject: [Gambas-user] de-selecting a multi-select filechooser In-Reply-To: <201003130930.44486.rterry@...1946...> References: <201003130930.44486.rterry@...1946...> Message-ID: <9852AA0A-7C68-46F1-9059-B952428511F7@...1896...> Hello, May be it works like that. For my ColumnView I use this little code: ColumnView1.Mode = Select.None ColumnView1.Refresh ColumnView1.Mode = Select.Multiple Perhaps this a solution ? Olivier Cruilles Mail: linuxos at ...1896... Le 12 mars 2010 ? 23:30, richard terry a ?crit : > > I wondered if it was possible programatically to deselect a users multi select > > ie, if I've an checkbox as an option for the user to set the > Filechoose1.multi=true, and they change their mind > click it off, how does > one remove the highlighted multiple selected files? > > Regards > > Richard > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Fri Mar 12 23:50:51 2010 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 12 Mar 2010 23:50:51 +0100 Subject: [Gambas-user] de-selecting a multi-select filechooser In-Reply-To: <201003130930.44486.rterry@...1946...> References: <201003130930.44486.rterry@...1946...> Message-ID: <201003122350.51535.rospolosco@...152...> Il venerd? 12 marzo 2010 23:30:44 richard terry ha scritto: > I wondered if it was possible programatically to deselect a users multi > select > > ie, if I've an checkbox as an option for the user to set the > Filechoose1.multi=true, and they change their mind > click it off, how does > one remove the highlighted multiple selected files? > > Regards > > Richard > FileChooser1.SelectedPath = User.Home 'or the path you want to restart from Stefano > --------------------------------------------------------------------------- >--- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Mar 13 00:19:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 13 Mar 2010 00:19:11 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <1268427417.6132.9.camel@...2376...> References: <1268427417.6132.9.camel@...2376...> Message-ID: <201003130019.11413.gambas@...1...> > the (textbox) LostFocus() routine is working on Opensuse (with Gambas > 2.17) but not on Ubuntu (with Gambas 2.19)! > The same components of Gambas are loaded on both PCs! > gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, > gb.vb. Several differences are mixed (version and distribution), so it is hard to guess where the problem comes from! Is it possible for you to write a little project that isolates the problem? A little project with a LostFocus() that works on OpenSuSE with Gambas 2.17, and not on Ubuntu with Gambas 2.19. Regards, -- Beno?t Minisini From gambas at ...1... Sat Mar 13 00:19:41 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 13 Mar 2010 00:19:41 +0100 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <1268425839.3704.13.camel@...2186...> References: <1268425839.3704.13.camel@...2186...> Message-ID: <201003130019.41923.gambas@...1...> > Could someone forward me a few links about how to use a printer from > within Gambas? I need to know how to "Print" to a system default > printer. > > Thanks > > Keith > In Gambas 2 or Gambas 3 ? -- Beno?t Minisini From keithclark at ...2185... Sat Mar 13 00:39:17 2010 From: keithclark at ...2185... (Keith Clark) Date: Fri, 12 Mar 2010 18:39:17 -0500 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <201003130019.41923.gambas@...1...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> Message-ID: <1268437157.10010.0.camel@...2336...> On Sat, 2010-03-13 at 00:19 +0100, Beno?t Minisini wrote: > > Could someone forward me a few links about how to use a printer from > > within Gambas? I need to know how to "Print" to a system default > > printer. > > > > Thanks > > > > Keith > > > > In Gambas 2 or Gambas 3 ? > Gambas 2.19 Keith From ihaywood at ...1979... Sat Mar 13 07:07:02 2010 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 13 Mar 2010 17:07:02 +1100 Subject: [Gambas-user] simple question about components Message-ID: I have a third-party component that I want to use in a project. I have installed the .gambas file to ~/.local/lib/gambas3 Running the main project with gbx3 directly finds this file and works fine, Opening the same project in the IDE doesn't work: it can't find the control How do I tell the IDE where the component is? Ian From gambas.fr at ...626... Sat Mar 13 11:52:36 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Mar 2010 11:52:36 +0100 Subject: [Gambas-user] simple question about components In-Reply-To: References: Message-ID: <6324a42a1003130252m12c478eve7399628cc90390c@...627...> this may interest you : http://sourceforge.net/mailarchive/forum.php?thread_name=201003111358.20675.gambas at ...1...&forum_name=gambas-user 2010/3/13 Ian Haywood : > I have a third-party component that I want to use in a project. > > I have installed the .gambas file to ~/.local/lib/gambas3 > > Running the main project with gbx3 directly finds this file and works fine, > Opening the same project in the IDE doesn't work: it can't find the control > How do I tell the IDE where the component is? > > Ian > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Mar 13 12:07:23 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Mar 2010 12:07:23 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <201003130019.11413.gambas@...1...> References: <1268427417.6132.9.camel@...2376...> <201003130019.11413.gambas@...1...> Message-ID: <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> i think you need to try with the same version too on suse ! Le 13 mars 2010 00:19, Beno?t Minisini a ?crit : >> the (textbox) LostFocus() routine is working on Opensuse (with Gambas >> 2.17) but not on Ubuntu (with Gambas 2.19)! >> The same components of Gambas are loaded on both PCs! >> gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, >> gb.vb. > > Several differences are mixed (version and distribution), so it is hard to > guess where the problem comes from! > > Is it possible for you to write a little project that isolates the problem? A > little project with a LostFocus() that works on OpenSuSE with Gambas 2.17, and > not on Ubuntu with Gambas 2.19. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From office.zolano at ...626... Sat Mar 13 19:24:52 2010 From: office.zolano at ...626... (zolaysoftsolutions) Date: Sat, 13 Mar 2010 10:24:52 -0800 (PST) Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> References: <1268427417.6132.9.camel@...2376...> <201003130019.11413.gambas@...1...> <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> Message-ID: <27889736.post@...1379...> Hi! I wish to inform you that I have same problem with lostfocus(). I has installed Gambas 2.7 and lostfocus works okay, but yesterday I made an upgrade to 2.20 and lostfocus() is executed when the project is start to run, after this moment is not executed anymore. After this experiment with my old proiect, I made a new small one and lostfocus() is not working with textbox and valuebox! Regards, Zoli B. Fabien Bodard-4 wrote: > > i think you need to try with the same version too on suse ! > > Le 13 mars 2010 00:19, Beno?t Minisini a > ?crit : >>> the (textbox) LostFocus() routine is working on Opensuse (with Gambas >>> 2.17) but not on Ubuntu (with Gambas 2.19)! >>> The same components of Gambas are loaded on both PCs! >>> gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, >>> gb.vb. >> >> Several differences are mixed (version and distribution), so it is hard >> to >> guess where the problem comes from! >> >> Is it possible for you to write a little project that isolates the >> problem? A >> little project with a LostFocus() that works on OpenSuSE with Gambas >> 2.17, and >> not on Ubuntu with Gambas 2.19. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/LostFocus%28%29-not-working-on-ubuntu-%21-tp27882721p27889736.html Sent from the gambas-user mailing list archive at Nabble.com. From les at ...2337... Sat Mar 13 20:09:33 2010 From: les at ...2337... (Les Hardy) Date: Sat, 13 Mar 2010 19:09:33 +0000 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <27889736.post@...1379...> References: <1268427417.6132.9.camel@...2376...> <201003130019.11413.gambas@...1...> <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> <27889736.post@...1379...> Message-ID: <4B9BE2ED.6030805@...2337...> zolaysoftsolutions wrote: > Hi! > > I wish to inform you that I have same problem with lostfocus(). > I has installed Gambas 2.7 and lostfocus works okay, but yesterday I made an > upgrade to 2.20 and lostfocus() is executed when the project is start to > run, after > this moment is not executed anymore. > After this experiment with my old proiect, I made a new small one and > lostfocus() is not > working with textbox and valuebox! > > Regards, > > Zoli B. > > > > Fabien Bodard-4 wrote: > >> i think you need to try with the same version too on suse ! >> >> Le 13 mars 2010 00:19, Beno?t Minisini a >> ?crit : >> >>>> the (textbox) LostFocus() routine is working on Opensuse (with Gambas >>>> 2.17) but not on Ubuntu (with Gambas 2.19)! >>>> The same components of Gambas are loaded on both PCs! >>>> gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, >>>> gb.vb. >>>> >>> Several differences are mixed (version and distribution), so it is hard >>> to >>> guess where the problem comes from! >>> >>> Is it possible for you to write a little project that isolates the >>> problem? A >>> little project with a LostFocus() that works on OpenSuSE with Gambas >>> 2.17, and >>> not on Ubuntu with Gambas 2.19. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> I am using Gambas 2.20 on Ubuntu 9.04. Lostfocus() works fine for me. I tested on TextBox, TextArea, ListBox, GridView, SpinBox Les Hardy From oceanosoftlapalma at ...626... Sat Mar 13 20:12:05 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sat, 13 Mar 2010 20:12:05 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <27889736.post@...1379...> References: <1268427417.6132.9.camel@...2376...> <201003130019.11413.gambas@...1...> <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> <27889736.post@...1379...> Message-ID: I got the same problem in the past when install gambas from ubuntu repository (or other gambas based app from ubuntu repositories). After that, I always compile gambas2 estable versions source code from sourceforge.net but on before I do the web site recommend to do for ubuntu installation (http://gambasdoc.org/help/install/ubuntu?view) Regards, Ricardo D?az 2010/3/13 zolaysoftsolutions > > Hi! > > I wish to inform you that I have same problem with lostfocus(). > I has installed Gambas 2.7 and lostfocus works okay, but yesterday I made > an > upgrade to 2.20 and lostfocus() is executed when the project is start to > run, after > this moment is not executed anymore. > After this experiment with my old proiect, I made a new small one and > lostfocus() is not > working with textbox and valuebox! > > Regards, > > Zoli B. > > > > Fabien Bodard-4 wrote: > > > > i think you need to try with the same version too on suse ! > > > > Le 13 mars 2010 00:19, Beno?t Minisini a > > ?crit : > >>> the (textbox) LostFocus() routine is working on Opensuse (with Gambas > >>> 2.17) but not on Ubuntu (with Gambas 2.19)! > >>> The same components of Gambas are loaded on both PCs! > >>> gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, > >>> gb.vb. > >> > >> Several differences are mixed (version and distribution), so it is hard > >> to > >> guess where the problem comes from! > >> > >> Is it possible for you to write a little project that isolates the > >> problem? A > >> little project with a LostFocus() that works on OpenSuSE with Gambas > >> 2.17, and > >> not on Ubuntu with Gambas 2.19. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > >> > ------------------------------------------------------------------------------ > >> Download Intel® Parallel Studio Eval > >> Try the new software tools for yourself. Speed compiling, find bugs > >> proactively, and fine-tune applications for parallel performance. > >> See why Intel Parallel Studio got high marks during beta. > >> http://p.sf.net/sfu/intel-sw-dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/LostFocus%28%29-not-working-on-ubuntu-%21-tp27882721p27889736.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shannon at ...2384... Sun Mar 14 05:12:44 2010 From: shannon at ...2384... (Shannon Smith) Date: Sat, 13 Mar 2010 23:12:44 -0500 Subject: [Gambas-user] CURL: Custom outgoing headers In-Reply-To: <6c98026f1003081216y18866ea4q4383e58a7e8e77@...627...> References: <4b946e6d.e701be0a.517c.5d80@...2392...> <201003081529.42614.gambas@...1...> <6c98026f1003081110w3ae9e8bdn24047c9ba90e27f7@...627...> <201003082043.23421.gambas@...1...> <6c98026f1003081216y18866ea4q4383e58a7e8e77@...627...> Message-ID: <6c98026f1003132012w23ee781j3d4f437e6efe9ae0@...627...> Any idea on how to send a JPEG using just sockets? I've tried File.Load() and writing the string, as well as reading each byte. I still must be missing something.... On Mon, Mar 8, 2010 at 3:16 PM, Shannon Smith wrote: > That's cool - MMX=Year of G3, right? :-) > > Thanks so much! > > Shan > > 2010/3/8 Beno?t Minisini > >> > That would work, but I still need to send that custom header. :-( >> > >> >> Everything for that is in Gambas 3 now, but I'm afraid I can't backport it >> to >> Gambas 2 as I had to change the component interface! >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Shannon Smith > 831 Photography > www.831Photography.com > 330-753-8703 > -- Shannon Smith 831 Photography www.831Photography.com 330-753-8703 From bill-lancaster at ...2231... Sun Mar 14 13:36:46 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 14 Mar 2010 05:36:46 -0700 (PDT) Subject: [Gambas-user] gb.report Message-ID: <27894645.post@...1379...> Can anyone direct me to an example (or some help) on how to use this component? -- View this message in context: http://old.nabble.com/gb.report-tp27894645p27894645.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Mar 14 13:52:51 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 14 Mar 2010 13:52:51 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <27894645.post@...1379...> References: <27894645.post@...1379...> Message-ID: <6324a42a1003140552j6a36a132o7692c997ced7f756@...627...> on what version of gambas ? 2010/3/14 Bill-Lancaster : > > Can anyone direct me to an example (or some help) on how to use this > component? > -- > View this message in context: http://old.nabble.com/gb.report-tp27894645p27894645.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun Mar 14 14:22:56 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 14 Mar 2010 06:22:56 -0700 (PDT) Subject: [Gambas-user] gb.report In-Reply-To: <6324a42a1003140552j6a36a132o7692c997ced7f756@...627...> References: <27894645.post@...1379...> <6324a42a1003140552j6a36a132o7692c997ced7f756@...627...> Message-ID: <27894915.post@...1379...> Sorry - Gambas 2.13 -- View this message in context: http://old.nabble.com/gb.report-tp27894645p27894915.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Mar 14 15:55:30 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 14 Mar 2010 15:55:30 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <27894915.post@...1379...> References: <27894645.post@...1379...> <6324a42a1003140552j6a36a132o7692c997ced7f756@...627...> <27894915.post@...1379...> Message-ID: <6324a42a1003140755y2f5c96ddtbba7686ba8552c4c@...627...> the version 2 is not really usable(it's an alpha version) ... the gb.report will be usable in the gambas3 version ... please wait for it 2010/3/14 Bill-Lancaster : > > Sorry - Gambas 2.13 > -- > View this message in context: http://old.nabble.com/gb.report-tp27894645p27894915.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Sun Mar 14 18:49:46 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 14 Mar 2010 18:49:46 +0100 Subject: [Gambas-user] gb.report In-Reply-To: <6324a42a1003140755y2f5c96ddtbba7686ba8552c4c@...627...> References: <27894645.post@...1379...> <6324a42a1003140552j6a36a132o7692c997ced7f756@...627...> <27894915.post@...1379...> <6324a42a1003140755y2f5c96ddtbba7686ba8552c4c@...627...> Message-ID: <1268588986.6487.9.camel@...40...> Am Sonntag, den 14.03.2010, 15:55 +0100 schrieb Fabien Bodard: > the version 2 is not really usable(it's an alpha version) ... the > gb.report will be usable in the gambas3 version ... please wait for it > > > > > > > > > > 2010/3/14 Bill-Lancaster : > > > > Sorry - Gambas 2.13 > > -- > > View this message in context: http://old.nabble.com/gb.report-tp27894645p27894915.html > > Sent from the gambas-user mailing list archive at Nabble.com. Salut Bill, Gambas 2.13 is really a bit old (14 May 2009). But you can try DBReport and look if it can do what you want. You find it herer : http://dbreport.sourceforge.net/ And that is the download : http://sourceforge.net/project/platformdownload.php?group_id=271746 -- Amicalement Charlie From fabramowski at ...17... Mon Mar 15 19:28:56 2010 From: fabramowski at ...17... (Frank Abramowski) Date: Mon, 15 Mar 2010 19:28:56 +0100 Subject: [Gambas-user] Compile and install gambas2 2.20.1 Message-ID: <4B9E7C68.2000208@...17...> Was ist das, ich Versuche Gambas2 2.20.1 auf opensuse 11.2 zu installieren und nichts geht. Bis 2.18 gab es rpm Pakete die zu installieren war kein Problem. Ich fand das Projekt Gambas eigentlich recht gut und f?r Linux eigentlich recht f?rderlich. Aber da der Installationsaufwand (der Source) wohl gro? und undurchsichtig (libs) bis zum abwinken muss ich wohl abdanken (schade eigentlich) hatte mit einem netten Projekt unter Gambas begonnen. Da ich mittlerweile ?ber 50 bin, hab ich nicht die geringste Lust mir alle libs unter Linux zu Gem?te zu f?hren, ich habe mit UCSD Pascal angefangen zu Programmieren weiter mit Cobol und dan VB von 3.0 bis heute. MS mag ich nicht mehr, ergo fand ich Gambas eigentlich recht nett. Sorry its a mail in german, i am so angry. -- Frank Abramowski Goldsteinstr. 51a 60258 Frankfurt Tel: 0151 501 54 480 From Karl.Reinl at ...2345... Mon Mar 15 20:41:55 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 15 Mar 2010 20:41:55 +0100 Subject: [Gambas-user] Compile and install gambas2 2.20.1 In-Reply-To: <4B9E7C68.2000208@...17...> References: <4B9E7C68.2000208@...17...> Message-ID: <1268682115.6481.5.camel@...40...> Am Montag, den 15.03.2010, 19:28 +0100 schrieb Frank Abramowski: > Was ist das, ich Versuche Gambas2 2.20.1 auf opensuse 11.2 zu > installieren und nichts geht. Bis 2.18 gab es rpm Pakete die zu > installieren war kein Problem. Ich fand das Projekt Gambas eigentlich > recht gut und f?r Linux eigentlich recht f?rderlich. Aber da der > Installationsaufwand (der Source) wohl gro? und undurchsichtig (libs) > bis zum abwinken muss ich wohl abdanken (schade eigentlich) hatte mit > einem netten Projekt unter Gambas begonnen. > > Da ich mittlerweile ?ber 50 bin, hab ich nicht die geringste Lust mir > alle libs unter Linux zu Gem?te zu f?hren, ich habe mit UCSD Pascal > angefangen zu Programmieren weiter mit Cobol und dan VB von 3.0 bis > heute. MS mag ich nicht mehr, ergo fand ich Gambas eigentlich recht nett. > > Sorry its a mail in german, i am so angry. > Salut Frank, be annoyed, until today, has never solved the problem! Step back and remember 'plug and pray' for Windows, is look and search for Linux. Here : http://gambas.sourceforge.net/en/main.html you find a lot of informations . -- Amicalement Charlie From jussi.lahtinen at ...626... Mon Mar 15 20:44:16 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 15 Mar 2010 21:44:16 +0200 Subject: [Gambas-user] Compile and install gambas2 2.20.1 In-Reply-To: <4B9E7C68.2000208@...17...> References: <4B9E7C68.2000208@...17...> Message-ID: <384d3901003151244g65c46c0ai836d07e48cbf97f5@...627...> I don't know how many of this list can speak German, and how many of them can help you... If I have understand correctly you have problems installing Gambas 2. >From source? From rpm? If you need help, please write your problem in English and describe your problem carefully with all necessary details. http://gambasdoc.org/help/doc/report?en&view Jussi 2010/3/15 Frank Abramowski : > Was ist das, ich Versuche Gambas2 2.20.1 auf opensuse 11.2 zu > installieren und nichts geht. Bis 2.18 gab es rpm Pakete die zu > installieren war kein Problem. Ich fand das Projekt Gambas eigentlich > recht gut und f?r Linux eigentlich recht f?rderlich. Aber da der > Installationsaufwand (der Source) wohl gro? und undurchsichtig (libs) > bis zum abwinken muss ich wohl abdanken (schade eigentlich) hatte mit > einem netten Projekt unter Gambas begonnen. > > Da ich mittlerweile ?ber 50 bin, hab ich nicht die geringste Lust mir > alle libs unter Linux zu Gem?te zu f?hren, ich habe mit UCSD Pascal > angefangen zu Programmieren weiter mit Cobol und dan VB von 3.0 bis > heute. MS mag ich nicht mehr, ergo fand ich Gambas eigentlich recht nett. > > Sorry its a mail in german, i am so angry. > > -- > > Frank Abramowski > > ?Goldsteinstr. 51a > ?60258 Frankfurt > > ?Tel: 0151 501 54 480 > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Mar 16 00:38:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 16 Mar 2010 00:38:12 +0100 Subject: [Gambas-user] Release of Gambas 2.20.2 Message-ID: <201003160038.12062.gambas@...1...> Hi, Here are some important fixes to Gambas 2.20: * The ComboBox Click event management has been fixed again. * The gb.qt TrayIcon class should not crash anymore. * The source package should compile correclty with libtool > 2.2.6. Here is the full ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * BUG: Add missing symbolic links on 'missing' and 'install-sh' files. * BUG: Backport the 'reconf' script from Gambas 3. [DEVELOPMENT ENVIRONMENT] * BUG: Don't try to replace underscores in project names when creating *.deb packages. It does not work, and apparently dpkg-buildpackage has no problem with them. [INTERPRETER] * BUG: Prevent a crash if during a _free special method, an element is removed from a collection being freed. [GB.GTK] * BUG: ComboBox cannot raise its click event recursively anymore. [GB.QT] * BUG: ComboBox cannot raise its click event recursively anymore. * BUG: TrayIcons cannot be released twice anymore, which prevents a crash. ------------------------------------------------------------------------------- Enjoy it! -- Beno?t Minisini From kevinfishburne at ...1887... Tue Mar 16 06:06:31 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 15 Mar 2010 22:06:31 -0700 (PDT) Subject: [Gambas-user] Re lease of Gambas 2.20.2 In-Reply-To: <201003160038.12062.gambas@...1...> References: <201003160038.12062.gambas@...1...> Message-ID: <27913596.post@...1379...> Beno?t Minisini wrote: > > Here is the full ChangeLog: > > ------------------------------------------------------------------------------- > > [CONFIGURATION] > * BUG: Add missing symbolic links on 'missing' and 'install-sh' files. > * BUG: Backport the 'reconf' script from Gambas 3. > > [DEVELOPMENT ENVIRONMENT] > * BUG: Don't try to replace underscores in project names when creating > *.deb packages. It does not work, and apparently dpkg-buildpackage has > no > problem with them. > > [INTERPRETER] > * BUG: Prevent a crash if during a _free special method, an element is > removed from a collection being freed. > > [GB.GTK] > * BUG: ComboBox cannot raise its click event recursively anymore. > > [GB.QT] > * BUG: ComboBox cannot raise its click event recursively anymore. > * BUG: TrayIcons cannot be released twice anymore, which prevents a crash. > Does this mean that the only difference between gambas2-2.19.0 and gambas2-2.20.2 are the seven bug fixes mentioned in the quoted change log? I'm trying to get a perspective of the version differences between GAMBAS stable releases. I'm not familiar with the way open source projects are maintained or version number schemes. If the lesser version number indicates a single bug fix, that would mean 12 bugs were fixed between releases, right? ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Release-of-Gambas-2.20.2-tp27911819p27913596.html Sent from the gambas-user mailing list archive at Nabble.com. From kevinfishburne at ...1887... Tue Mar 16 06:32:43 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 15 Mar 2010 22:32:43 -0700 (PDT) Subject: [Gambas-user] best components for game graphics development Message-ID: <27913695.post@...1379...> I'm developing a game which requires static polygonal model rendering with 2D "bit blitting"-style overlays. These are my eventual requirements: 1) Render a 3D heightmap with arbitrarily-specified tileable texture maps. 2) Render static 3D models on top of the heightmap. 3) Render 2D images on top of the heightmap. 4) Rotate and scale 2D images. 5) Modify the alpha channel of 2D images. To reduce the development time required to make the game playable, the client app's scene renderer will initially be implemented in pure 2D, but I'd like the final product to use both 3D and 2D. My questions are: 1) Which GAMBAS components use graphics hardware acceleration, either through OpenGL directly or via the OS's display manager (OpenGL with a middle man). 2) Which GAMBAS components, hardware accelerated or not, render graphics the fastest. 3) What are any general graphics-related tips you may have regarding my requirements? 4) Is there anything in the GAMBAS development pipeline that I should be anticipating? Thanks all. With its ease of use, I'm hoping GAMBAS could be the XNA of Linux and OSS indie game development and am doing my part to make it so. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/best-components-for-game-graphics-development-tp27913695p27913695.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Tue Mar 16 10:26:02 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 16 Mar 2010 02:26:02 -0700 (PDT) Subject: [Gambas-user] sqlite3 float value errors Message-ID: <27915161.post@...1379...> When comparing two separate database float values :- if hResult!Dr - hResultInvoice!GrossValue <> 0 then ..... Although both values are the same (as far as I can see), the above test gives a result (of zero) I've tried converting the fields to a float type variable but get the same result. Any ideas please! -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915161.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Tue Mar 16 10:28:19 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 16 Mar 2010 02:28:19 -0700 (PDT) Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <27915161.post@...1379...> References: <27915161.post@...1379...> Message-ID: <27915184.post@...1379...> Sorry, I'm using Gambas 2.13 running in Ubuntu 9.1 -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915184.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Tue Mar 16 10:41:45 2010 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 16 Mar 2010 10:41:45 +0100 Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <27915184.post@...1379...> References: <27915161.post@...1379...> <27915184.post@...1379...> Message-ID: why don't use if hResult!Dr <> hResultInvoice!GrossValue then... ? 2010/3/16 Bill-Lancaster > > Sorry, I'm using Gambas 2.13 running in Ubuntu 9.1 > -- > View this message in context: > http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915184.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Tue Mar 16 11:04:47 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 16 Mar 2010 03:04:47 -0700 (PDT) Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: References: <27915161.post@...1379...> <27915184.post@...1379...> Message-ID: <27915529.post@...1379...> Yes - that IS much simpler but I have found that some of my SQL fields are not exact money values (like 10.23 say) but have tiny extra decimal values. These display as normal in a gridview, tableview or whatever. By converting SQL field to float called fTempVal then fTempVal=fTempVal * 100. fTempVal - Int(fTempVal) gives a very small decimal value. Clearly my money values in the SQL database are not exact, unfortunately they were displayed as normal. Bill Lancaster -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915529.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Tue Mar 16 11:09:50 2010 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 16 Mar 2010 11:09:50 +0100 Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <27915529.post@...1379...> References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> Message-ID: I use integer for money fields without decimals. I store cents... in display just field / 100. Hope it's valid for you 2010/3/16 Bill-Lancaster > > Yes - that IS much simpler but I have found that some of my SQL fields are > not exact money values (like 10.23 say) but have tiny extra decimal values. > > These display as normal in a gridview, tableview or whatever. > > By converting SQL field to float called fTempVal > then fTempVal=fTempVal * 100. fTempVal - Int(fTempVal) gives a very > small > decimal value. > > Clearly my money values in the SQL database are not exact, unfortunately > they were displayed as normal. > > Bill Lancaster > > > -- > View this message in context: > http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915529.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From keithclark at ...2185... Tue Mar 16 11:14:17 2010 From: keithclark at ...2185... (Keith Clark) Date: Tue, 16 Mar 2010 06:14:17 -0400 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <201003130019.41923.gambas@...1...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> Message-ID: <1268734457.4930.3.camel@...2186...> On Sat, 2010-03-13 at 00:19 +0100, Beno?t Minisini wrote: > > Could someone forward me a few links about how to use a printer from > > within Gambas? I need to know how to "Print" to a system default > > printer. > > > > Thanks > > > > Keith > > > > In Gambas 2 or Gambas 3 ? > Any luck with this request? I'm using Gambas 2.19. Thanks, Keith From doriano.blengino at ...1909... Tue Mar 16 11:26:17 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 16 Mar 2010 11:26:17 +0100 Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> Message-ID: <4B9F5CC9.9090207@...1909...> Jorge Carri?n ha scritto: >I use integer for money fields without decimals. I store cents... in display >just field / 100. Hope it's valid for you > >2010/3/16 Bill-Lancaster > > > >>Yes - that IS much simpler but I have found that some of my SQL fields are >>not exact money values (like 10.23 say) but have tiny extra decimal values. >> >>These display as normal in a gridview, tableview or whatever. >> >>By converting SQL field to float called fTempVal >>then fTempVal=fTempVal * 100. fTempVal - Int(fTempVal) gives a very >>small decimal value. >> >> >> If you can not use integers (because your database is already in production, or you have too much code to change), then you should round the values before storing them in the database, or, at least, while retrieving them. If you multiply a float by 100, you do nearly nothing (the decimal point moves a little). You should multiply, then take the integer part, and then divide again: goodvalue = int(badvalue * 100 + 0.5) / 100 The above should round to the cent: change "100" with "1000" or "10000" to get more precision. The "+ 0.5" is a quick (and erroneous but acceptable) way to round off. Take care for negative values. I am too lazy to try (why should I, when you have everything set up to do it? :-)), but you can also try to use different multipliers - powers of 2. Instead of multiply and divide for 100, you could use 128, which is nearer to the way the machine stores floats. The only doubt is what to add: if using 100, you add 0.5 - if you use 128, you should add 0.64... you can try to see if it works better. Regards, Doriano From bill-lancaster at ...2231... Tue Mar 16 13:17:52 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 16 Mar 2010 05:17:52 -0700 (PDT) Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <4B9F5CC9.9090207@...1909...> References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> <4B9F5CC9.9090207@...1909...> Message-ID: <27916854.post@...1379...> Thanks for the ideas re storing money values as integer. For the time being I'll just clean up my float type money fields. Bill Lancaster -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27916854.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...2345... Tue Mar 16 16:37:02 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 16 Mar 2010 16:37:02 +0100 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <1268734457.4930.3.camel@...2186...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> <1268734457.4930.3.camel@...2186...> Message-ID: <1268753822.6463.9.camel@...40...> Am Dienstag, den 16.03.2010, 06:14 -0400 schrieb Keith Clark: > On Sat, 2010-03-13 at 00:19 +0100, Beno?t Minisini wrote: > > > Could someone forward me a few links about how to use a printer from > > > within Gambas? I need to know how to "Print" to a system default > > > printer. > > > > > > Thanks > > > > > > Keith > > > > > > > In Gambas 2 or Gambas 3 ? > > > Any luck with this request? I'm using Gambas 2.19. > > Thanks, > > Keith Salut Keith, send you the PrinterSetup, shows all what is known about the printer in gambas2. ~$ echo $PRINTER' in terminal you find the default printer(if empty , there is none). If that is not what you are looking for, ask again. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: PrinterSetup-0.0.1.tar.gz Type: application/x-compressed-tar Size: 8285 bytes Desc: not available URL: From vkan53 at ...2300... Tue Mar 16 19:41:29 2010 From: vkan53 at ...2300... (Vassilis K) Date: Tue, 16 Mar 2010 20:41:29 +0200 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network Message-ID: <1268764889.8094.10.camel@...2376...> Some months ago Doriano suggested the code for the printing of 1 line on a parallel printer which is the following: PUBLIC SUB bEktiposi_Click() DIM hPrinter AS File hPrinter = OPEN "/dev/lp0" FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hPrinter, "test a line: " CLOSE hPrinter END (I had to add the lp group to the user vassilis) I'm looking for the code for the printing of the same line from a PC in the local network. I've tried: PUBLIC SUB bEktiposi_Click() DIM hPrinter AS File hPrinter = OPEN "vassilis at ...2394.../dev/lp0" FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hPrinter, "test a line: " CLOSE hPrinter END But it says: "Access forbiden" I've made the printer shared and given to the /dev/lp0 file read - write permissions (for user-group and other) Any ideas? From oceanosoftlapalma at ...626... Tue Mar 16 19:47:19 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 16 Mar 2010 19:47:19 +0100 Subject: [Gambas-user] Cancel LostFocus Event Message-ID: Hi, It's possible in gambas2 to cancel a LostFocus event in a textbox/textarea control and return focus to the control? I need to make a validation over a field and will be easy if it is possible at now. Is not so important. Its only for my information. Regards, Ricardo D?az From gambas.fr at ...626... Tue Mar 16 20:50:39 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Mar 2010 20:50:39 +0100 Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <27916854.post@...1379...> References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> <4B9F5CC9.9090207@...1909...> <27916854.post@...1379...> Message-ID: <6324a42a1003161250raa3096bs34c76c9acf3e27b6@...627...> more of the accounting program store the currency in integer... as float manipulation is not perfect and cause many error 2010/3/16 Bill-Lancaster : > > Thanks for the ideas re storing money values as integer. > > For the time being I'll just clean up my float type money fields. > > Bill Lancaster > -- > View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27916854.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Mar 16 20:50:39 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Mar 2010 20:50:39 +0100 Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <27916854.post@...1379...> References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> <4B9F5CC9.9090207@...1909...> <27916854.post@...1379...> Message-ID: <6324a42a1003161250raa3096bs34c76c9acf3e27b6@...627...> more of the accounting program store the currency in integer... as float manipulation is not perfect and cause many error 2010/3/16 Bill-Lancaster : > > Thanks for the ideas re storing money values as integer. > > For the time being I'll just clean up my float type money fields. > > Bill Lancaster > -- > View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27916854.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Mar 16 20:57:45 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Mar 2010 20:57:45 +0100 Subject: [Gambas-user] Cancel LostFocus Event In-Reply-To: References: Message-ID: <6324a42a1003161257w49bb2a4ayff48692ab951f018@...627...> public sub Control_Lostfocus() Last.setfocus stop event end 2010/3/16 Ricardo D?az Mart?n : > Hi, > > It's possible in gambas2 to cancel a LostFocus event in a textbox/textarea > control and return focus to the control? > > I need to make a validation over a field and will be easy if it is possible > at now. Is not so important. Its only for my information. > > Regards, > > Ricardo D?az > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Tue Mar 16 21:04:51 2010 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Tue, 16 Mar 2010 13:04:51 -0700 (PDT) Subject: [Gambas-user] sqlite3 float value errors In-Reply-To: <6324a42a1003161250raa3096bs34c76c9acf3e27b6@...627...> References: <27915161.post@...1379...> <27915184.post@...1379...> <27915529.post@...1379...> <4B9F5CC9.9090207@...1909...> <27916854.post@...1379...> <6324a42a1003161250raa3096bs34c76c9acf3e27b6@...627...> Message-ID: <27923775.post@...1379...> Fabien - thank you. I have found that I can't correct the float type fields so integer is the thing! Thanks Bill -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27923775.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Tue Mar 16 21:35:18 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 16 Mar 2010 21:35:18 +0100 Subject: [Gambas-user] Cancel LostFocus Event In-Reply-To: <6324a42a1003161257w49bb2a4ayff48692ab951f018@...627...> References: <6324a42a1003161257w49bb2a4ayff48692ab951f018@...627...> Message-ID: Thanks Fabien. I thinked it was very simple but I didn't know Last object. 2010/3/16 Fabien Bodard > public sub Control_Lostfocus() > Last.setfocus > stop event > > > end > > 2010/3/16 Ricardo D?az Mart?n : > > Hi, > > > > It's possible in gambas2 to cancel a LostFocus event in a > textbox/textarea > > control and return focus to the control? > > > > I need to make a validation over a field and will be easy if it is > possible > > at now. Is not so important. Its only for my information. > > > > Regards, > > > > Ricardo D?az > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Mar 16 22:33:48 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Mar 2010 22:33:48 +0100 Subject: [Gambas-user] Cancel LostFocus Event In-Reply-To: References: <6324a42a1003161257w49bb2a4ayff48692ab951f018@...627...> Message-ID: <6324a42a1003161433i3e62a846qb5c4d9514ada2a7b@...627...> last represent the object who send the event 2010/3/16 Ricardo D?az Mart?n : > Thanks Fabien. I thinked it was very simple but I didn't know Last object. > > > 2010/3/16 Fabien Bodard > >> public sub Control_Lostfocus() >> Last.setfocus >> stop event >> >> >> end >> >> 2010/3/16 Ricardo D?az Mart?n : >> > Hi, >> > >> > It's possible in gambas2 to cancel a LostFocus event in a >> textbox/textarea >> > control and return focus to the control? >> > >> > I need to make a validation over a field and will be easy if it is >> possible >> > at now. Is not so important. Its only for my information. >> > >> > Regards, >> > >> > Ricardo D?az >> > >> ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Wed Mar 17 07:28:16 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Mar 2010 07:28:16 +0100 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network In-Reply-To: <1268764889.8094.10.camel@...2376...> References: <1268764889.8094.10.camel@...2376...> Message-ID: <4BA07680.8010406@...1909...> Vassilis K ha scritto: > Some months ago Doriano suggested the code for the printing of 1 line on > a parallel printer which is the following: > > PUBLIC SUB bEktiposi_Click() > DIM hPrinter AS File > hPrinter = OPEN "/dev/lp0" FOR OUTPUT > hPrinter.EndOfLine = gb.Windows > PRINT #hPrinter, "test a line: " > CLOSE hPrinter > END > (I had to add the lp group to the user vassilis) > > I'm looking for the code for the printing of the same line from a PC in the local network. > I've tried: > > PUBLIC SUB bEktiposi_Click() > DIM hPrinter AS File > hPrinter = OPEN "vassilis at ...2394.../dev/lp0" FOR OUTPUT > hPrinter.EndOfLine = gb.Windows > PRINT #hPrinter, "test a line: " > CLOSE hPrinter > END > > But it says: "Access forbiden" > > I've made the printer shared and given to the /dev/lp0 file read - write permissions (for user-group and other) > I don't think that this is possible, in that way. What you are doing now is to try to create a file named "lp0" in a directory "dev" in a directory "vassilis at ...2394..." in the current directory. A similar form (I mean, using file access) could work (I am not sure) by mounting the remote files - usually one mounts whole directories. Using either Samba or Nfs you should mount the /dev directory of the computer 192...10 into a local directory, say /mnt/10dev. Then you could try to use the file "/mnt/10dev/lp0". I've never seen this method in real world, but it could work. Another way, more common, is to use the traditional print sharing mechanisms of unix, lp: on the .10 machine you set up a print server, and on the local machine you configure a network printer referring to the .10 machine. The same can be done with CUPS. However, in both ways, printing is done in a totally different manner, which can be a problem for you; both mechanisms work on "documents", not single lines of text: it is probably difficult to convince the print manager that you don't want a form feed at the end of the printing. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From alerinaldi at ...2334... Wed Mar 17 15:06:02 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Wed, 17 Mar 2010 15:06:02 +0100 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network In-Reply-To: <4BA07680.8010406@...1909...> References: <1268764889.8094.10.camel@...2376...> <4BA07680.8010406@...1909...> Message-ID: <57de1d081003170706l2c71af27x680b099dcbaf642f@...627...> Mounting doesn't work: specials files like the ones in /dev work only if opened from the local PC. In any case, you could do a Gambas app that is executed on the printing server, waits for data from the network and print it on the local printer... So the client app would just send the text over the network... From keithclark at ...2185... Wed Mar 17 15:13:31 2010 From: keithclark at ...2185... (Keith Clark) Date: Wed, 17 Mar 2010 10:13:31 -0400 Subject: [Gambas-user] Using a printer documentation In-Reply-To: <1268753822.6463.9.camel@...40...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> <1268734457.4930.3.camel@...2186...> <1268753822.6463.9.camel@...40...> Message-ID: <1268835211.2333.1.camel@...2383...> On Tue, 2010-03-16 at 16:37 +0100, Charlie Reinl wrote: > Am Dienstag, den 16.03.2010, 06:14 -0400 schrieb Keith Clark: > > On Sat, 2010-03-13 at 00:19 +0100, Beno?t Minisini wrote: > > > > Could someone forward me a few links about how to use a printer from > > > > within Gambas? I need to know how to "Print" to a system default > > > > printer. > > > > > > > > Thanks > > > > > > > > Keith > > > > > > > > > > In Gambas 2 or Gambas 3 ? > > > > > Any luck with this request? I'm using Gambas 2.19. > > > > Thanks, > > > > Keith > > Salut Keith, > > send you the PrinterSetup, shows all what is known about the printer in > gambas2. > > > ~$ echo $PRINTER' > in terminal you find the default printer(if empty , there is none). > > If that is not what you are looking for, ask again. > ------------------------------------------------------------------------------ Thanks Charlie! Perfect. Keith From k.bettray at ...2395... Wed Mar 17 15:26:27 2010 From: k.bettray at ...2395... (K. Bettray) Date: Wed, 17 Mar 2010 15:26:27 +0100 Subject: [Gambas-user] Leave the list In-Reply-To: <1268835211.2333.1.camel@...2383...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> <1268734457.4930.3.camel@...2186...> <1268753822.6463.9.camel@...40...> <1268835211.2333.1.camel@...2383...> Message-ID: <4BA0E693.6010702@...2395...> Hi, one question, how can I leave the mailing list? greats Karsten From alerinaldi at ...2334... Wed Mar 17 15:53:03 2010 From: alerinaldi at ...2334... (Alessandro Rinaldi) Date: Wed, 17 Mar 2010 15:53:03 +0100 Subject: [Gambas-user] Leave the list In-Reply-To: <4BA0E693.6010702@...2395...> References: <1268425839.3704.13.camel@...2186...> <201003130019.41923.gambas@...1...> <1268734457.4930.3.camel@...2186...> <1268753822.6463.9.camel@...40...> <1268835211.2333.1.camel@...2383...> <4BA0E693.6010702@...2395...> Message-ID: <57de1d081003170753t65494585k86b0d964e012d4e7@...627...> As written at the end of every mail, just go to https://lists.sourceforge.net/lists/listinfo/gambas-user Bye From doriano.blengino at ...1909... Wed Mar 17 17:44:36 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Mar 2010 17:44:36 +0100 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network In-Reply-To: <57de1d081003170706l2c71af27x680b099dcbaf642f@...627...> References: <1268764889.8094.10.camel@...2376...> <4BA07680.8010406@...1909...> <57de1d081003170706l2c71af27x680b099dcbaf642f@...627...> Message-ID: <4BA106F4.9040802@...1909...> Alessandro Rinaldi ha scritto: > Mounting doesn't work: specials files like the ones in /dev work only > if opened from the local PC. > Right - just tested now (at the time I wrote the other message, I couldn't verify) > In any case, you could do a Gambas app that is executed on the > printing server, waits for data from the network and print it on the > local printer... > So the client app would just send the text over the network... > > A simple netcat (/bin/nc) would do... easier, lighter and faster. Regards, Doriano From vkan53 at ...2300... Wed Mar 17 19:07:10 2010 From: vkan53 at ...2300... (Vassilis K) Date: Wed, 17 Mar 2010 20:07:10 +0200 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network Message-ID: <1268849230.7705.6.camel@...2376...> Thank you Alessandro very elegant solution. I'll give it a try! Doriano, I don't understand how could netcat work here. From doriano.blengino at ...1909... Wed Mar 17 20:09:29 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 17 Mar 2010 20:09:29 +0100 Subject: [Gambas-user] One line printing to a /dev/lp0 printer from local network In-Reply-To: <1268849230.7705.6.camel@...2376...> References: <1268849230.7705.6.camel@...2376...> Message-ID: <4BA128E9.1090301@...1909...> Vassilis K ha scritto: > Thank you Alessandro very elegant solution. I'll give it a try! > > Doriano, I don't understand how could netcat work here. > > Open a terminal and type: nc -p27 -l |while read; do echo "send this to /dev/lp0: $REPLY"; done Then open another terminal and type: echo "PRINT THIS" |nc -w1 localhost 27 ...I leave the rest to your imagination. If you think that a gambas program can do this so easily, hat off to you! Read the documentation about netcat - I bet you can not even imagine what it can do... :-) Regards, Doriano From minterior at ...626... Thu Mar 18 03:06:48 2010 From: minterior at ...626... (minterior at ...626...) Date: Thu, 18 Mar 2010 03:06:48 +0100 (CET) Subject: [Gambas-user] Cannot reduce windows size to modal windows Message-ID: Hello list :) I don't know if this is a bug, a feature or a misconception, but I can't resize a window in modal mode to a lesser size. I display it with ShowModal and the window appears centered with the size as it is in the form design view into Gambas IDE. All is correct at this point. Now, when I try to resize that window I can only increase it but not reduce. I've discovered that I can get it with a little workaround: call the method Show before ShowModal, for example: Form1.Show Form1.ShowModal Attached to this email I send you a mini Gambas project with an example of this that you can test. Is this a normal behaviour or a bug? Another related question: which is the best way to readjust the size of a new displayed window? Manually in the form.class > Form_Open() method? I have a form with hidden inputs with the ignore property at true, and that forces me to reduce the window size when it is opened. If I don't, the window has a lot of undesired free space. I use hbox and vbox for positioning elements. I have Gambas 2.13 in Kubuntu 9.10, using KDE and QT. Thank you all! Jaume Casado Ruiz GPG Key ID: 0xF71B3570 Free software my friend ;-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: OpenPGP digital signature URL: From gambas.fr at ...626... Thu Mar 18 08:19:22 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Mar 2010 08:19:22 +0100 Subject: [Gambas-user] Cannot reduce windows size to modal windows In-Reply-To: References: Message-ID: <6324a42a1003180019u75fe58d5ha18f08fdaa482420@...627...> 2010/3/18 : > Hello list :) > I don't know if this is a bug, a feature or a misconception, but I can't > resize a window in modal mode to a lesser size. I display it with ShowModal > and the window appears centered with the size as it is in the form design > view into Gambas IDE. All is correct at this point. Now, when I try to > resize that window I can only increase it but not reduce. it's a feature > I've discovered that I can get it with a little workaround: call the method > Show before ShowModal, for example: > ? ? ? ?Form1.Show > ? ? ? ?Form1.ShowModal > > Attached to this email I send you a mini Gambas project with an example of > this that you can test. > > Is this a normal behaviour or a bug? > > Another related question: which is the best way to readjust the size of a > new displayed window? Manually in the form.class > Form_Open() method? I > have a form with hidden inputs with the ignore property at true, and that > forces me to reduce the window size when it is opened. If I don't, the > window has a lot of undesired free space. I use hbox and vbox for > positioning elements. the ignore property of a form is only usable when the form is embedded as an object in a container... ignore is a child property in the container management > I have Gambas 2.13 in Kubuntu 9.10, using KDE and QT. > > Thank you all! > > Jaume Casado Ruiz > GPG Key ID: 0xF71B3570 > > Free software my friend ;-) > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rterry at ...1946... Thu Mar 18 11:30:22 2010 From: rterry at ...1946... (richard terry) Date: Thu, 18 Mar 2010 21:30:22 +1100 Subject: [Gambas-user] Refreshing a Filechooser control Message-ID: <201003182130.22160.rterry@...1946...> From gambas.fr at ...626... Thu Mar 18 12:28:09 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Mar 2010 12:28:09 +0100 Subject: [Gambas-user] Refreshing a Filechooser control In-Reply-To: <201003182130.22160.rterry@...1946...> References: <201003182130.22160.rterry@...1946...> Message-ID: <6324a42a1003180428q7eb70afbofbe543e11b2e726c@...627...> me :) DIM o AS Object o = FileChooser1.Children[0] o.DirView.reload() 2010/3/18 richard terry : > >From its properites it looks like Filechooser1.Reload may refresh the file > list, but it dosn't seem to work. > > Has anyone who has used this control got to refresh it programatically? > > Thanks. > > Richard > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Thu Mar 18 19:54:34 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 18 Mar 2010 19:54:34 +0100 Subject: [Gambas-user] calling back to the caller Message-ID: <1268938474.6464.11.camel@...40...> Salut, is it possible to run from a (gambas2) component, a Sub/Function of the component using the 'parent' program? Something parent.NewsFromMyComponent(TRUE) like I would do with public elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) -- Amicalement Charlie From doriano.blengino at ...1909... Thu Mar 18 20:12:55 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 18 Mar 2010 20:12:55 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <1268938474.6464.11.camel@...40...> References: <1268938474.6464.11.camel@...40...> Message-ID: <4BA27B37.8080901@...1909...> Charlie Reinl ha scritto: >Salut, > >is it possible to run from a (gambas2) component, a Sub/Function of the >component using the 'parent' program? > >Something parent.NewsFromMyComponent(TRUE) like I would do with public >elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) > > > > Mmm... it is really not clear what you want to do - anyway, I think you should use events: they are portable, clean and safe. If, instead, you are writing a component which should be aware of other controls in the same form, or the same parent, without the intervention of the main program, you can travel the "Parent" property. If you really want to peek & poke with fantasy, take a look at the Object and Class classes (don't remember the exact names). You can discover all the loaded classes, and invoke any method discovered at runtime. But it may be a bad idea... If this does not help, give more information. Regards, Doriano From gambas.fr at ...626... Thu Mar 18 20:32:56 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Mar 2010 20:32:56 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <4BA27B37.8080901@...1909...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> Message-ID: <6324a42a1003181232h1486e476u44d3accedea93e2f@...627...> yes be more explicit please 2010/3/18 Doriano Blengino : > Charlie Reinl ha scritto: > >>Salut, >> >>is it possible to run from a (gambas2) component, a Sub/Function of the >>component using the 'parent' program? >> >>Something parent.NewsFromMyComponent(TRUE) like I would do with public >>elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) >> >> >> >> > Mmm... it is really not clear what you want to do - anyway, I think you > should use events: they are portable, clean and safe. > > If, instead, you are writing a component which should be aware of other > controls in the same form, or the same parent, without the intervention > of the main program, you can travel the "Parent" property. > > If you really want to peek & poke with fantasy, take a look at the > Object and Class classes (don't remember the exact names). You can > discover all the loaded classes, and invoke any method discovered at > runtime. But it may be a bad idea... > > If this does not help, give more information. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ea7dfh at ...2382... Thu Mar 18 20:45:13 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Thu, 18 Mar 2010 20:45:13 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <1268938474.6464.11.camel@...40...> References: <1268938474.6464.11.camel@...40...> Message-ID: <4BA282C9.1060704@...2382...> Charlie Reinl escribi?: > Salut, > > is it possible to run from a (gambas2) component, a Sub/Function of the > component using the 'parent' program? > > Something parent.NewsFromMyComponent(TRUE) like I would do with public > elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) Do you mean using a method of an inherited class in a component? If so, you can use the "SUPER" keyword. Regards, Jesus From Karl.Reinl at ...2345... Thu Mar 18 21:11:01 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 18 Mar 2010 21:11:01 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <4BA27B37.8080901@...1909...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> Message-ID: <1268943061.6464.26.camel@...40...> Am Donnerstag, den 18.03.2010, 20:12 +0100 schrieb Doriano Blengino: > Charlie Reinl ha scritto: > > >Salut, > > > >is it possible to run from a (gambas2) component, a Sub/Function of the > >component using the 'parent' program? > > > >Something parent.NewsFromMyComponent(TRUE) like I would do with public > >elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) > > > > > > > > > Mmm... it is really not clear what you want to do - anyway, I think you > should use events: they are portable, clean and safe. > > If, instead, you are writing a component which should be aware of other > controls in the same form, or the same parent, without the intervention > of the main program, you can travel the "Parent" property. > > If you really want to peek & poke with fantasy, take a look at the > Object and Class classes (don't remember the exact names). You can > discover all the loaded classes, and invoke any method discovered at > runtime. But it may be a bad idea... > > If this does not help, give more information. > > Regards, > Doriano my project (from now on called 'the program') use a in gambas2 written component (from now on called 'the component' [which is by it's own, also a executable]). 'the component' is embedded on a form of 'the program'. So the "parent" is known. What I want is calling a Sub/Function, declared in 'the program', out from 'the component' ..... calling back to the caller. Better now ? Charlie From gambas.fr at ...626... Thu Mar 18 21:16:27 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 18 Mar 2010 21:16:27 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <1268943061.6464.26.camel@...40...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> <1268943061.6464.26.camel@...40...> Message-ID: <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> simplis use a public function in the parent form Public sub MyFunction end Then in your component Dim o as object o = me.parent o.MyFunction 2010/3/18 Charlie Reinl : > Am Donnerstag, den 18.03.2010, 20:12 +0100 schrieb Doriano Blengino: >> Charlie Reinl ha scritto: >> >> >Salut, >> > >> >is it possible to run from a (gambas2) component, a Sub/Function of the >> >component using the 'parent' program? >> > >> >Something parent.NewsFromMyComponent(TRUE) like I would do with public >> >elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) >> > >> > >> > >> > >> Mmm... it is really not clear what you want to do - anyway, I think you >> should use events: they are portable, clean and safe. >> >> If, instead, you are writing a component which should be aware of other >> controls in the same form, or the same parent, without the intervention >> of the main program, you can travel the "Parent" property. >> >> If you really want to peek & poke with fantasy, take a look at the >> Object and Class classes (don't remember the exact names). You can >> discover all the loaded classes, and invoke any method discovered at >> runtime. But it may be a bad idea... >> >> If this does not help, give more information. >> >> Regards, >> Doriano > > my project (from now on called 'the program') > use a in gambas2 written component (from now on called 'the > component' [which is ?by it's own, also a executable]). > 'the component' is embedded on a form of 'the program'. > So the "parent" is known. > What I want is calling a Sub/Function, declared in 'the program', out > from 'the component' ..... calling back to the caller. > > Better now ? > > Charlie > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Thu Mar 18 22:40:44 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 18 Mar 2010 22:40:44 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> <1268943061.6464.26.camel@...40...> <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> Message-ID: <1268948444.6464.36.camel@...40...> Am Donnerstag, den 18.03.2010, 21:16 +0100 schrieb Fabien Bodard: > simplis use a public function > in the parent form > > Public sub MyFunction > end > > Then in your component > > Dim o as object > > o = me.parent > > o.MyFunction > > Salut Fabien, oh, yeah, while I tried to use "me.parent" direct, stupid me. Thanks > 2010/3/18 Charlie Reinl : > > Am Donnerstag, den 18.03.2010, 20:12 +0100 schrieb Doriano Blengino: > >> Charlie Reinl ha scritto: > >> > >> >Salut, > >> > > >> >is it possible to run from a (gambas2) component, a Sub/Function of the > >> >component using the 'parent' program? > >> > > >> >Something parent.NewsFromMyComponent(TRUE) like I would do with public > >> >elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) > >> > > >> > > >> > > >> > > >> Mmm... it is really not clear what you want to do - anyway, I think you > >> should use events: they are portable, clean and safe. > >> > >> If, instead, you are writing a component which should be aware of other > >> controls in the same form, or the same parent, without the intervention > >> of the main program, you can travel the "Parent" property. > >> > >> If you really want to peek & poke with fantasy, take a look at the > >> Object and Class classes (don't remember the exact names). You can > >> discover all the loaded classes, and invoke any method discovered at > >> runtime. But it may be a bad idea... > >> > >> If this does not help, give more information. > >> > >> Regards, > >> Doriano > > > > my project (from now on called 'the program') > > use a in gambas2 written component (from now on called 'the > > component' [which is by it's own, also a executable]). > > 'the component' is embedded on a form of 'the program'. > > So the "parent" is known. > > What I want is calling a Sub/Function, declared in 'the program', out > > from 'the component' ..... calling back to the caller. > > > > Better now ? > > > > Charlie > > > > > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 18 23:13:53 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 18 Mar 2010 23:13:53 +0100 Subject: [Gambas-user] Cannot reduce windows size to modal windows In-Reply-To: <6324a42a1003180019u75fe58d5ha18f08fdaa482420@...627...> References: <6324a42a1003180019u75fe58d5ha18f08fdaa482420@...627...> Message-ID: <201003182313.53673.gambas@...1...> > 2010/3/18 : > > Hello list :) > > I don't know if this is a bug, a feature or a misconception, but I can't > > resize a window in modal mode to a lesser size. I display it with > > ShowModal and the window appears centered with the size as it is in the > > form design view into Gambas IDE. All is correct at this point. Now, > > when I try to resize that window I can only increase it but not reduce. > > it's a feature > Yep. When showing a form in modal mode, its size is automatically restricted. It cannot be smaller than its initial size, defined in the IDE. I think the workaround you found is based on a bug that has been fixed since, so it won't work anymore with a more recent version of Gambas. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Fri Mar 19 00:12:51 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 19 Mar 2010 00:12:51 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> <1268943061.6464.26.camel@...40...> <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> Message-ID: <1268953971.6464.60.camel@...40...> Am Donnerstag, den 18.03.2010, 21:16 +0100 schrieb Fabien Bodard: > simplis use a public function > in the parent form > > Public sub MyFunction > end > > Then in your component > > Dim o as object > > o = me.parent > > o.MyFunction > > > 2010/3/18 Charlie Reinl : > > Am Donnerstag, den 18.03.2010, 20:12 +0100 schrieb Doriano Blengino: > >> Charlie Reinl ha scritto: > >> > >> >Salut, > >> > > >> >is it possible to run from a (gambas2) component, a Sub/Function of the > >> >component using the 'parent' program? > >> > > >> >Something parent.NewsFromMyComponent(TRUE) like I would do with public > >> >elements on a form: MyForm.NewsFromTheSecondForm(Me.Width) > >> > > >> > > >> > > >> > > >> Mmm... it is really not clear what you want to do - anyway, I think you > >> should use events: they are portable, clean and safe. > >> > >> If, instead, you are writing a component which should be aware of other > >> controls in the same form, or the same parent, without the intervention > >> of the main program, you can travel the "Parent" property. > >> > >> If you really want to peek & poke with fantasy, take a look at the > >> Object and Class classes (don't remember the exact names). You can > >> discover all the loaded classes, and invoke any method discovered at > >> runtime. But it may be a bad idea... > >> > >> If this does not help, give more information. > >> > >> Regards, > >> Doriano > > > > my project (from now on called 'the program') > > use a in gambas2 written component (from now on called 'the > > component' [which is by it's own, also a executable]). > > 'the component' is embedded on a form of 'the program'. > > So the "parent" is known. > > What I want is calling a Sub/Function, declared in 'the program', out > > from 'the component' ..... calling back to the caller. > > > > Better now ? > > > > Charlie > > Salut Doriano & Fabian, I attached a (no, two) gambas2 project(s), which does now, all I expected to find when I started for that. Finally what I need is a user "named" Interface which comes back to the caller which is the users project, who had called my component. First I planed that the component has to be embedded (for the parents stuff) but now I found out, I can call back, if the called, knows the Name of the caller (and the method to call). That gives me and the user a lot of freedom. The reason, why EVAL work with intern method only if you give the name of the owner (ME.Name) is an extra job for Beno?t! Amicalement Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-27-generic DistributionVendor=Ubuntu DistributionRelease="Ubuntu 8.04.4 LTS" [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.20.1 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: callBackProg.tar.bz2 Type: application/x-bzip-compressed-tar Size: 12106 bytes Desc: not available URL: From rterry at ...1946... Fri Mar 19 04:09:53 2010 From: rterry at ...1946... (richard terry) Date: Fri, 19 Mar 2010 14:09:53 +1100 Subject: [Gambas-user] [Gambas-devel] Refreshing a Filechooser control [Solved][Better] In-Reply-To: <201003191319.22773.rterry@...1946...> References: <201003182130.22160.rterry@...1946...> <201003190316.38842.gambas@...1...> <201003191319.22773.rterry@...1946...> Message-ID: <201003191409.53791.rterry@...1946...> On Friday 19 March 2010 13:19:22 richard terry wrote: > On Friday 19 March 2010 13:16:38 you wrote: > > > On Friday 19 March 2010 04:30:39 Fabien Bodard wrote: > > > > try that ... > > > > o.FileView.reload() > > > > > > > Dim o As Object > > > o = FileChooser1.Children[0] > > > o.FileView.reload() > > > > > > This works perfectly, thanks Fabian. > > > > > > Would it be possible to have this inserted in this control as a > > > property? > > > > > > Regards > > > > > > richard > > > > Fixing the FileChooser.Reload() method is better. That should be the case > > in revision #2809. > > > > Regards, > > thanks, I did try that code but dosn't work in my version, I'll upgrade and > try. Thanks Benoit, this method is finally working, I've tested it. Regards Richard From doriano.blengino at ...1909... Fri Mar 19 07:18:18 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 19 Mar 2010 07:18:18 +0100 Subject: [Gambas-user] calling back to the caller In-Reply-To: <1268953971.6464.60.camel@...40...> References: <1268938474.6464.11.camel@...40...> <4BA27B37.8080901@...1909...> <1268943061.6464.26.camel@...40...> <6324a42a1003181316k4f084aa2y88d7afb08f3f9d72@...627...> <1268953971.6464.60.camel@...40...> Message-ID: <4BA3172A.5080903@...1909...> Charlie Reinl ha scritto: > >>> my project (from now on called 'the program') >>> use a in gambas2 written component (from now on called 'the >>> component' [which is by it's own, also a executable]). >>> 'the component' is embedded on a form of 'the program'. >>> So the "parent" is known. >>> What I want is calling a Sub/Function, declared in 'the program', out >>> from 'the component' ..... calling back to the caller. >>> >>> Better now ? >>> >>> Charlie >>> >>> > > Salut Doriano & Fabian, > > I attached a (no, two) gambas2 project(s), which does now, all I > expected to find when I started for that. > > Finally what I need is a user "named" Interface which comes back to the > caller which is the users project, who had called my component. > First I planed that the component has to be embedded (for the parents > stuff) but now I found out, I can call back, if the called, knows the > Name of the caller (and the method to call). > > That gives me and the user a lot of freedom. > > The reason, why EVAL work with intern method only if you give the name > of the owner (ME.Name) is an extra job for Beno?t! > It seems to me that events should be the way to go. You want to notify the main program (notify, or pass some data) from a component: why don't use events? They were invented just for that. You can use a single event, or you can use three for red, green and blue. Arguments to the event can be precise, if the logic dictates they are precise; otherwise you can use a string, and let the main program use tests or "eval" to carry out more sophisticated things. I didn't run your project, but it seemed to me that things break if you put your component in different position of the hierarchy (ie: directly on a form, or embedded into a frame). Anyway, you solved... even if I didn't fully understand what is the aim. Cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From office.zolano at ...626... Fri Mar 19 15:23:38 2010 From: office.zolano at ...626... (zolaysoftsolutions) Date: Fri, 19 Mar 2010 07:23:38 -0700 (PDT) Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <4B9BE2ED.6030805@...2337...> References: <1268427417.6132.9.camel@...2376...> <201003130019.11413.gambas@...1...> <6324a42a1003130307o7c7b9b8fra005bef4a527cfda@...627...> <27889736.post@...1379...> <4B9BE2ED.6030805@...2337...> Message-ID: <27950971.post@...1379...> Hi Hardy, I think the problem is that my code is written under Gambas2 version 2.7 I tried to make small codes, without connection to mysql database, just a simple one with a textbox and a label..and here the lostfocus of the textbox is working. Now I try to write again my old code (2.7) in Gambas 2.20.2. On my laptop I have gambas 2.7 on ubuntu 8.10 and the invoice maker program is working correctly. I copied the source code of the program to another computer (Gambas 2.20 on Ubuntu 9.10) and when the program is built the lostfocus events is ignored. Regards, Zoli B. -- View this message in context: http://old.nabble.com/LostFocus%28%29-not-working-on-ubuntu-%21-tp27882721p27950971.html Sent from the gambas-user mailing list archive at Nabble.com. From office.zolano at ...626... Fri Mar 19 16:54:04 2010 From: office.zolano at ...626... (zolaysoftsolutions) Date: Fri, 19 Mar 2010 08:54:04 -0700 (PDT) Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <1268427417.6132.9.camel@...2376...> References: <1268427417.6132.9.camel@...2376...> Message-ID: <27950989.post@...1379...> HI all! I made some experiments regarding lostfocus event. The conclusion is that lostfocus is not working on gb.qt projects. I made a smal code with a textboxt. The lostfocus is okay if I activated the gb.gui componenet, but when I activated the gb.qt component the lostfocus is ignored. I have a second question: is a way here to make a raport from my database without gb.qt component? Until today I used the web browser of gb.qt..but I need the lostfocus and raports to..else my project have no sense. Best regards, Zoli B. -- View this message in context: http://old.nabble.com/LostFocus%28%29-not-working-on-ubuntu-%21-tp27882721p27950989.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Mar 19 17:17:31 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Mar 2010 17:17:31 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <27950989.post@...1379...> References: <1268427417.6132.9.camel@...2376...> <27950989.post@...1379...> Message-ID: <201003191717.31064.gambas@...1...> > HI all! > > I made some experiments regarding lostfocus event. > The conclusion is that lostfocus is not working on gb.qt projects. > I made a smal code with a textboxt. The lostfocus is okay if I activated > the gb.gui componenet, but when I activated the gb.qt component the > lostfocus is ignored. > I have a second question: is a way here to make a raport from my database > without gb.qt component? Until today I used the web browser of gb.qt..but I > need the lostfocus and raports to..else my project have no sense. > > Best regards, > Zoli B. So, to resume, the LostFocus() event is not working on Ubuntu 9.10 and with gb.qt only? Can someone else confirm? I didn't succeed in reproducing that with my own Ubuntu 9.10. -- Beno?t Minisini From office.zolano at ...626... Fri Mar 19 17:22:25 2010 From: office.zolano at ...626... (Zoltan Biro) Date: Fri, 19 Mar 2010 18:22:25 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <201003191717.31064.gambas@...1...> References: <1268427417.6132.9.camel@...2376...> <27950989.post@...1379...> <201003191717.31064.gambas@...1...> Message-ID: <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> Hi, The lostfocus() is working only with gb.gui ...and is NOT working with gb.qt.. this is for sure.. Regards, Zoli B. 2010/3/19 Beno?t Minisini > > HI all! > > > > I made some experiments regarding lostfocus event. > > The conclusion is that lostfocus is not working on gb.qt projects. > > I made a smal code with a textboxt. The lostfocus is okay if I activated > > the gb.gui componenet, but when I activated the gb.qt component the > > lostfocus is ignored. > > I have a second question: is a way here to make a raport from my > database > > without gb.qt component? Until today I used the web browser of gb.qt..but > I > > need the lostfocus and raports to..else my project have no sense. > > > > Best regards, > > Zoli B. > > So, to resume, the LostFocus() event is not working on Ubuntu 9.10 and with > gb.qt only? > > Can someone else confirm? I didn't succeed in reproducing that with my own > Ubuntu 9.10. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Mar 19 17:43:58 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 19 Mar 2010 17:43:58 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> Message-ID: <201003191743.58489.gambas@...1...> > Hi, > > The lostfocus() is working only with gb.gui > ...and is NOT working with gb.qt.. this is for sure.. > > Regards, > Zoli B. > > I've just tested on my Ubuntu 9.10 64 bits, and it works perfectly with gb.qt. Can you send me the project you used to test? -- Beno?t Minisini From office.zolano at ...626... Fri Mar 19 18:07:02 2010 From: office.zolano at ...626... (Zoltan Biro) Date: Fri, 19 Mar 2010 19:07:02 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <201003191743.58489.gambas@...1...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> <201003191743.58489.gambas@...1...> Message-ID: <15a707ce1003191007s536117fega1872d3fe31e15e7@...627...> Hello Benoit, This is the small test project attached to mail. Now I set active the gb.qt component and the lostfocus is ignored. If you uncheck the gb.qt and make active the gb.gui...the lostfocus will work. (gb.qt and gb.qui cannot be active same time). Best regards, Zoli B. 2010/3/19 Beno?t Minisini > > Hi, > > > > The lostfocus() is working only with gb.gui > > ...and is NOT working with gb.qt.. this is for sure.. > > > > Regards, > > Zoli B. > > > > > > I've just tested on my Ubuntu 9.10 64 bits, and it works perfectly with > gb.qt. > Can you send me the project you used to test? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > 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: FMain.class Type: application/octet-stream Size: 127 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FMain.form Type: application/octet-stream Size: 225 bytes Desc: not available URL: From jussi.lahtinen at ...626... Fri Mar 19 19:30:32 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 19 Mar 2010 20:30:32 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <15a707ce1003191007s536117fega1872d3fe31e15e7@...627...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> <201003191743.58489.gambas@...1...> <15a707ce1003191007s536117fega1872d3fe31e15e7@...627...> Message-ID: <384d3901003191130h664b43ffr239a845c9f4b2d90@...627...> I can't reproduce your problem with Qt nor GTK+. Ubuntu 9.10 64bit Gambas 2.20 revision 2813 Jussi On Fri, Mar 19, 2010 at 19:07, Zoltan Biro wrote: > Hello Benoit, > > ? This is the small test project attached to mail. Now I set active the > gb.qt component and the lostfocus is ignored. ?If you uncheck the gb.qt and > make active the gb.gui...the lostfocus will work. (gb.qt and gb.qui cannot > be active same time). > > Best regards, > Zoli B. > > > 2010/3/19 Beno?t Minisini > >> > Hi, >> > >> > ? The lostfocus() is working only with gb.gui >> > ...and is NOT working with gb.qt.. this is for sure.. >> > >> > Regards, >> > Zoli B. >> > >> > >> >> I've just tested on my Ubuntu 9.10 64 bits, and it works perfectly with >> gb.qt. >> Can you send me the project you used to test? >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From office.zolano at ...626... Fri Mar 19 19:40:44 2010 From: office.zolano at ...626... (Biro Zoltan) Date: Fri, 19 Mar 2010 20:40:44 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <384d3901003191130h664b43ffr239a845c9f4b2d90@...627...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> <201003191743.58489.gambas@...1...> <15a707ce1003191007s536117fega1872d3fe31e15e7@...627...> <384d3901003191130h664b43ffr239a845c9f4b2d90@...627...> Message-ID: <1269024044.10321.3.camel@...2396...> Ok, I will try to reinstall Gambas2 on my computer. Initially I has Gambas 2.7, and I upgraded folow the instructions.. after the new install I make a new attempt..and i will inform you about the result. Thanks for try to helping me.. Regards, Zoli B. 2010. 03. 19, p?ntek keltez?ssel 20.30-kor Jussi Lahtinen ezt ?rta: > I can't reproduce your problem with Qt nor GTK+. > Ubuntu 9.10 64bit > Gambas 2.20 revision 2813 > > Jussi > > > On Fri, Mar 19, 2010 at 19:07, Zoltan Biro wrote: > > Hello Benoit, > > > > This is the small test project attached to mail. Now I set active the > > gb.qt component and the lostfocus is ignored. If you uncheck the gb.qt and > > make active the gb.gui...the lostfocus will work. (gb.qt and gb.qui cannot > > be active same time). > > > > Best regards, > > Zoli B. > > > > > > 2010/3/19 Beno?t Minisini > > > >> > Hi, > >> > > >> > The lostfocus() is working only with gb.gui > >> > ...and is NOT working with gb.qt.. this is for sure.. > >> > > >> > Regards, > >> > Zoli B. > >> > > >> > > >> > >> I've just tested on my Ubuntu 9.10 64 bits, and it works perfectly with > >> gb.qt. > >> Can you send me the project you used to test? > >> > >> -- > >> Beno?t Minisini > >> > >> > >> ------------------------------------------------------------------------------ > >> Download Intel® Parallel Studio Eval > >> Try the new software tools for yourself. Speed compiling, find bugs > >> proactively, and fine-tune applications for parallel performance. > >> See why Intel Parallel Studio got high marks during beta. > >> http://p.sf.net/sfu/intel-sw-dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ea7dfh at ...2382... Sat Mar 20 00:05:59 2010 From: ea7dfh at ...2382... (EA7DFH) Date: Sat, 20 Mar 2010 00:05:59 +0100 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <201003191717.31064.gambas@...1...> References: <1268427417.6132.9.camel@...2376...> <27950989.post@...1379...> <201003191717.31064.gambas@...1...> Message-ID: <4BA40357.1070607@...2382...> Beno?t Minisini escribi?: > > So, to resume, the LostFocus() event is not working on Ubuntu 9.10 and with > gb.qt only? > > Can someone else confirm? I didn't succeed in reproducing that with my own > Ubuntu 9.10. > No problems here with Ubuntu 9.10 32 bits and Gambas 2.20.1. Regards, Jesus From office.zolano at ...626... Sat Mar 20 07:18:01 2010 From: office.zolano at ...626... (Biro Zoltan) Date: Sat, 20 Mar 2010 08:18:01 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <201003191743.58489.gambas@...1...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> <201003191743.58489.gambas@...1...> Message-ID: <1269065881.2077.15.camel@...2396...> Hello for everybody, I made a new Ubuntu install 9.04 and a new Gambas2-2.20.2 install on a new computer..and here is everything okay. I apologize and I'm shame for the false alert..but I thanks for everybody who try to help me. Until the error occured I made the folowing steps: Ubuntu 8.10 (Gambas 2.7 from synaptic) -> upgrade to Ubuntu 9.04 (Gambas 2.7)-> upgrade to Ubuntu 9.10 (Gambas 2.7) -> upgrade of Gambas to 2.20.1 After these things I had problems with lostfocus(). Thanks again for everybody..and sorry for false alert. Best regards, Zoli B. From girardhenri at ...67... Sat Mar 20 11:41:59 2010 From: girardhenri at ...67... (Henri Girard) Date: Sat, 20 Mar 2010 10:41:59 +0000 Subject: [Gambas-user] (no subject) In-Reply-To: <4BA27B37.8080901@...1909...> References: <1268938474.6464.11.camel@...40...>,<4BA27B37.8080901@...1909...> Message-ID: Hi, If David Villalobos Cambronero reads this message : I am translating mysql-gui that you are developing... Can you contact me on this email as I can't connect on google mail. kind regards Henri _________________________________________________________________ Consultez gratuitement vos emails Orange, Gmail, Free, ... directement dans HOTMAIL ! http://www.windowslive.fr/hotmail/agregation/ From lordheavym at ...626... Sat Mar 20 12:30:10 2010 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 20 Mar 2010 12:30:10 +0100 Subject: [Gambas-user] best components for game graphics development In-Reply-To: <27913695.post@...1379...> References: <27913695.post@...1379...> Message-ID: <201003201230.10839.lordheavym@...626...> Le Mardi 16 Mars 2010 06:32:43, kevinfishburne a ?crit : > I'm developing a game which requires static polygonal model rendering with > 2D "bit blitting"-style overlays. These are my eventual requirements: > > 1) Render a 3D heightmap with arbitrarily-specified tileable texture maps. > 2) Render static 3D models on top of the heightmap. > 3) Render 2D images on top of the heightmap. > 4) Rotate and scale 2D images. > 5) Modify the alpha channel of 2D images. > > To reduce the development time required to make the game playable, the > client app's scene renderer will initially be implemented in pure 2D, but > I'd like the final product to use both 3D and 2D. My questions are: > > 1) Which GAMBAS components use graphics hardware acceleration, either > through OpenGL directly or via the OS's display manager (OpenGL with a > middle man). > 2) Which GAMBAS components, hardware accelerated or not, render graphics > the fastest. > 3) What are any general graphics-related tips you may have regarding my > requirements? > 4) Is there anything in the GAMBAS development pipeline that I should be > anticipating? > > Thanks all. With its ease of use, I'm hoping GAMBAS could be the XNA of > Linux and OSS indie game development and am doing my part to make it so. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 Bad news: Currently there isn't really available components to produce "easy to use" 3d graphics except opengl component (through sdl/qt components). All you need should be implemented in gambas code. Less bad news: I've start some experiments with the ogre3d engine (http://www.ogre3d.org/) It's in an really early stage but it should meet at least some requirements you need, perhaps all of them, but it won't be ready for a long time. ++ From jussi.lahtinen at ...626... Sat Mar 20 18:07:17 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 20 Mar 2010 19:07:17 +0200 Subject: [Gambas-user] LostFocus() not working on ubuntu ! In-Reply-To: <1269065881.2077.15.camel@...2396...> References: <1268427417.6132.9.camel@...2376...> <201003191717.31064.gambas@...1...> <15a707ce1003190922j20dc3abbx388f218d7f9e11ba@...627...> <201003191743.58489.gambas@...1...> <1269065881.2077.15.camel@...2396...> Message-ID: <384d3901003201007i51105743w3124e6cc21318430@...627...> That happens once in a while. I wish there would be some good method to check sanity of install... any ideas? Jussi On Sat, Mar 20, 2010 at 08:18, Biro Zoltan wrote: > Hello for everybody, > > ?I made a new Ubuntu install 9.04 and a new Gambas2-2.20.2 install on a > new computer..and here is everything okay. > ?I apologize and I'm shame for the false alert..but I thanks for > everybody who try to help me. > ?Until the error occured I made the folowing steps: > Ubuntu 8.10 (Gambas 2.7 from synaptic) -> upgrade to Ubuntu 9.04 > (Gambas 2.7)-> upgrade to Ubuntu 9.10 (Gambas 2.7) -> upgrade of Gambas > to 2.20.1 > After these things I had problems with lostfocus(). > Thanks again for everybody..and sorry for false alert. > > Best regards, > Zoli B. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboe at ...221... Sat Mar 20 20:03:10 2010 From: tobiasboe at ...221... (tobiasboe at ...221...) Date: Sat, 20 Mar 2010 20:03:10 +0100 Subject: [Gambas-user] Picture in DrawingArea? In-Reply-To: <384d3901003201007i51105743w3124e6cc21318430@...627...> References: <384d3901003201007i51105743w3124e6cc21318430@...627...> Message-ID: <1Nt3x0-0vwMvQ0@...2381...> Dear Mailing-List, I have a simple problem with the DrawingArea component. Is there any possibility to get the drawn content of the area? How is that formatted? And in addition: I want to save it using streams. What have I to pay attention of? This is to read a picture from a socket but I simplified it to a file. Regards, Tobias From tobiasboe at ...221... Sun Mar 21 15:59:32 2010 From: tobiasboe at ...221... (tobiasboe at ...221...) Date: Sun, 21 Mar 2010 15:59:32 +0100 Subject: [Gambas-user] Problem with Sockets In-Reply-To: References: Message-ID: <1NtMcm-2GxDKC0@...2397...> Hey Mailing-List, now I habe a problem with the sockets (gb.net, normal socket). I just create one and connected like this Socket1.Connect("localhost", 80) - with the elements of the example in the documentation (waiting until the socket is ready and so on) and when I WRITE #Socket1, TextArea1.Text, Len(TextArea1.Text) an Error is raised. I have Socket1.Status = -6 - "Host not found" at this point. But "localhost" in firefox works fine. Is there anything I didn't understand? I tried the portscanning example in the documentation too: the same thing. Please help me, it's important. Regards, Tobias From linuxos at ...1896... Sun Mar 21 16:35:22 2010 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 21 Mar 2010 16:35:22 +0100 Subject: [Gambas-user] Problem with Sockets In-Reply-To: <1NtMcm-2GxDKC0@...2397...> References: <1NtMcm-2GxDKC0@...2397...> Message-ID: Hello, You can try to replace 'localhost' by '127.0.0.1' It's the same. Olivier Cruilles Mail: linuxos at ...1896... Le 21 mars 2010 ? 15:59, tobiasboe at ...221... a ?crit : > > > Hey Mailing-List, > now I habe a problem with the sockets (gb.net, normal socket). I just create > one and connected like this Socket1.Connect("localhost", 80) - with the > elements of the example in the documentation (waiting until the socket is > ready and so on) and when I > WRITE #Socket1, TextArea1.Text, Len(TextArea1.Text) > an Error is raised. I have Socket1.Status = -6 - "Host not found" at this > point. But "localhost" in firefox works fine. Is there anything I didn't > understand? > I tried the portscanning example in the documentation too: the same thing. > Please help me, it's important. > Regards, > Tobias > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Sun Mar 21 17:54:12 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sun, 21 Mar 2010 17:54:12 +0100 Subject: [Gambas-user] Possible bug in Desktop.Open() Message-ID: Hi, Please try to run this simple code from Gambas2 IDE on KDE or gnome and works fine. After you make the executable file of the project, if you run the example from console *doesn't work on KDE* but *works in gnome *desktop. I think this is not a gambas bug because if I replace Desktop.Open(PathOfFile) by EXEC ["xdg-open", PathOfFile] I show a "segmentation fault" message at console (but gambas program stay alive). I note this when I try to run the same app in KDE (on before I usually works with ubuntu gnome default) I'm working with gambas 2.19 in Ubuntu 9.10 x86_64 (gnome and KDE). I'd like to know if there is something wrong on my box. Regards, Ricardo D?az -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenFaultExample.tar.gz Type: application/x-gzip Size: 8775 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun Mar 21 17:59:22 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 21 Mar 2010 18:59:22 +0200 Subject: [Gambas-user] Some Qt4 bugs. Message-ID: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> Hi! Problem 1. With TextEdit control horizontal scrollbar isn't working like in Qt3. Sentences are cut ugly way, example "This is test sentence." is transformed to (if doesn't fit) "This is test" " sentence." <-- notice extra space at begin. I did expect horizontal scrollbar. Problem 2. Code (worked with Qt3); Public Sub Button1_Click() Draw.Begin(DrawingArea1) Draw.Foreground = Color.Black Draw.LineWidth = 3 Draw.Circle(15, 15, 105) Draw.End End Yields to these messages to console and nothing to drawingarea; QPainter::begin: Widget painting can only begin as a result of a paintEvent QPainter::setBackground: Painter not active QPainter::pen: Painter not active QPainter::setPen: Painter not active QPainter::brush: Painter not active QPainter::setBrush: Painter not active QPainter::pen: Painter not active QPainter::setPen: Painter not active QPainter::pen: Painter not active QPainter::setPen: Painter not active QPainter::pen: Painter not active Is this planned behaviour? Ubuntu 9.10 64bit Gambas 3 revision 2815 Jussi From doriano.blengino at ...1909... Sun Mar 21 20:23:25 2010 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 21 Mar 2010 20:23:25 +0100 Subject: [Gambas-user] Some Qt4 bugs. In-Reply-To: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> References: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> Message-ID: <4BA6722D.1050200@...1909...> Jussi Lahtinen ha scritto: > Hi! > > Problem 1. > With TextEdit control horizontal scrollbar isn't working like in Qt3. > Sentences are cut ugly way, example "This is test sentence." is > transformed to (if doesn't fit) > "This is test" > " sentence." <-- notice extra space at begin. > > I did expect horizontal scrollbar. > > > Problem 2. > Code (worked with Qt3); > > Public Sub Button1_Click() > Draw.Begin(DrawingArea1) > Draw.Foreground = Color.Black > Draw.LineWidth = 3 > Draw.Circle(15, 15, 105) > Draw.End > End > > Yields to these messages to console and nothing to drawingarea; > > QPainter::begin: Widget painting can only begin as a result of a paintEvent > QPainter::setBackground: Painter not active > QPainter::pen: Painter not active > QPainter::setPen: Painter not active > QPainter::brush: Painter not active > QPainter::setBrush: Painter not active > QPainter::pen: Painter not active > QPainter::setPen: Painter not active > QPainter::pen: Painter not active > QPainter::setPen: Painter not active > QPainter::pen: Painter not active > > Is this planned behaviour? > > > Ubuntu 9.10 64bit > Gambas 3 revision 2815 > About the textedit, I know nothing. About the DrawingArea - yes, it should be the expected behaviour. It seems to me that you can only wait for painting events (you must use the Paint event), no more use begin() and "End", and do the painting normally. If you want to update the drawing you must call a method (refresh(), may be?) which, in turns, raises an event to let you do your stuff. This method is more difficult to work with, but more correct and effective. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas.fr at ...626... Sun Mar 21 21:45:29 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 21 Mar 2010 21:45:29 +0100 Subject: [Gambas-user] Some Qt4 bugs. In-Reply-To: <4BA6722D.1050200@...1909...> References: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> <4BA6722D.1050200@...1909...> Message-ID: <6324a42a1003211345o7c4059b5m6221fde46078b029@...627...> have you tryed to set the cached property to true ? From ivan-kern at ...308... Mon Mar 22 15:57:50 2010 From: ivan-kern at ...308... (ivan-kern at ...308...) Date: Mon, 22 Mar 2010 15:57:50 +0100 Subject: [Gambas-user] problem with event Textbox_KeyPress Message-ID: <9874a55447b216106c5c7fceaebe28ec@...2399...> Hello I have a problems with events Textbox_KeyPress, Textbox_MouseDown etc.. They do not work if new Form1.ShowModal is open. This problem is not with Gambas2-2.16.0. My system: I am using Gambas2-2.20.2 on Ubuntu 9.10 or Suse 11.0, gb.gtk component. Attached to this email I send you a mini Gambas project with an example of this that you can test.? Is this a bug? ?Thanks?Richard freenetMail mobil ? Alle E-Mails auf Ihrem Handy versenden und empfangen. Jetzt kinderleicht und kostenlos einrichten. Hier informieren! -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-gzip Size: 10167 bytes Desc: not available URL: From oceanosoftlapalma at ...626... Mon Mar 22 17:24:41 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 22 Mar 2010 17:24:41 +0100 Subject: [Gambas-user] Message.Question stacking Message-ID: Hi, Why the windows open with Message.XXXXXXX haven?t got Stacking property set to Window.Above? If you open a modal window with Stacking property set to Window.Above in order to keep allways on top and and when you close this you ask to the user something, the message windows is not in the top. I', using gambas 2.19 with qt components in ubuntu 9.10 x86_64 Regards, Ricardo D?az From jussi.lahtinen at ...626... Mon Mar 22 17:50:21 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 22 Mar 2010 18:50:21 +0200 Subject: [Gambas-user] Some Qt4 bugs. In-Reply-To: <6324a42a1003211345o7c4059b5m6221fde46078b029@...627...> References: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> <4BA6722D.1050200@...1909...> <6324a42a1003211345o7c4059b5m6221fde46078b029@...627...> Message-ID: <384d3901003220950j6395d676j2400d0c8017c872a@...627...> Yes, that was it, drawingarea problem is solved! It is old code that worked earlier, so I didn't even think about such things... thanks! But, textedit problem persist. Although I have some new information about it. I think I remembered old Qt3 way little bit wrongly.... it is also cutting sentences, BUT not ugly way as in Qt4. So, with Qt3: "This is test" "sentence." With Qt4: "This is test" " sentence." More complicated examples are more ugly... Benoit? Jussi On Sun, Mar 21, 2010 at 22:45, Fabien Bodard wrote: > have you tryed to set the cached property to true ? > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Mar 22 18:09:38 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 22 Mar 2010 19:09:38 +0200 Subject: [Gambas-user] problem with event Textbox_KeyPress In-Reply-To: <9874a55447b216106c5c7fceaebe28ec@...2399...> References: <9874a55447b216106c5c7fceaebe28ec@...2399...> Message-ID: <384d3901003221009x59551223hb054343091589d0f@...627...> Confirmed with GTK+, Gambas 2.20 rev 2813, Ubuntu 9.10 64bit. With Qt, not even visible form, if "test()" is not commented out from "Form_Open()" (I think this is not proper code). If "test()" is commented out, everything works as expected with Qt, but still not with GTK+. Jussi On Mon, Mar 22, 2010 at 16:57, wrote: > Hello > I have a problems with ?events Textbox_KeyPress, Textbox_MouseDown etc.. They do not work if new ?Form1.ShowModal is open. > This problem is not with ?Gambas2-2.16.0. > My system: > I am using ?Gambas2-2.20.2 on Ubuntu 9.10 or Suse 11.0, gb.gtk component. > Attached to this email I send you a mini Gambas project with an example of this that you can test. > Is this a bug? > ?Thanks?Richard > > freenetMail mobil ? Alle E-Mails auf Ihrem Handy versenden und empfangen. > Jetzt kinderleicht und kostenlos einrichten. Hier informieren! > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From pinozollo at ...626... Mon Mar 22 19:18:41 2010 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 22 Mar 2010 14:18:41 -0400 Subject: [Gambas-user] Release of Gambas 2.20.2 : does not compile In-Reply-To: References: Message-ID: <201003221418.41550.pinozollo@...626...> Il marted? 16 marzo 2010 05:28:26 gambas-user-request at ...66...et ha scritto: > [Gambas-user] Release of Gambas 2.20.2 ------------------------ make[4]: Entering directory `/usr/src/gambas2-2.20.2/main/gbx' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c ../libtool: line 847: X--tag=CC: command not found ../libtool: line 880: libtool: ignoring unknown tag : command not found ../libtool: line 847: X--mode=compile: command not found ../libtool: line 1014: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 1015: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1158: Xgcc: command not found ../libtool: line 1158: X-DHAVE_CONFIG_H: command not found ../libtool: line 1158: X-I.: command not found ../libtool: line 1158: X-I..: command not found ../libtool: line 1158: X-DGBX_INFO: command not found ../libtool: line 1158: X-pipe: command not found ../libtool: line 1158: X-Wall: command not found ../libtool: line 1158: X-Wno-unused-value: command not found ../libtool: line 1158: X-Wcast-align: command not found ../libtool: line 1158: X-fsigned-char: command not found ../libtool: line 1158: X-fvisibility=hidden: command not found ../libtool: line 1158: X-g: command not found ../libtool: line 1158: X-Os: command not found ../libtool: line 1158: X-I../share: No such file or directory ../libtool: line 1158: X-D_REENTRANT: command not found ../libtool: line 1158: X-O0: command not found ../libtool: line 1158: X-MT: command not found ../libtool: line 1158: Xgb_la-gbx_c_class.lo: command not found ../libtool: line 1158: X-MD: command not found ../libtool: line 1158: X-MP: command not found ../libtool: line 1158: X-MF: command not found ../libtool: line 1158: X.deps/gb_la-gbx_c_class.Tpo: No such file or directory ../libtool: line 1158: X-c: command not found ../libtool: line 1211: Xgb_la-gbx_c_class.lo: command not found ../libtool: line 1216: libtool: compile: cannot determine name of library object from `': command not found make[4]: *** [gb_la-gbx_c_class.lo] Error 1 make[4]: Leaving directory `/usr/src/gambas2-2.20.2/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas2-2.20.2/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/gambas2-2.20.2/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas2-2.20.2' make: *** [all] Error 2 -------------------------------------------------------- On Debian 5.01 Libtool 1.5.26-4 2.20.1 did compile nicely Regards Pino -- "In the universe there is no time existing as a physical reality, there is no past, no present and no future" "Time is a mind construction into which one experiences motion" "Time is a flow of irreversible material changes" -Davide Fiscaletti Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From jussi.lahtinen at ...626... Mon Mar 22 18:36:15 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 22 Mar 2010 19:36:15 +0200 Subject: [Gambas-user] Release of Gambas 2.20.2 : does not compile In-Reply-To: <201003221418.41550.pinozollo@...626...> References: <201003221418.41550.pinozollo@...626...> Message-ID: <384d3901003221036k1e7ec58g78cc5d2916e5cd45@...627...> Have you tried with new version of libtool? I have used 2.2.6 with no problems (on Ubuntu 9.10 64bit). Jussi On Mon, Mar 22, 2010 at 20:18, Pino Zollo wrote: > Il marted? 16 marzo 2010 05:28:26 gambas-user-request at ...48....net ha > scritto: >> [Gambas-user] Release of Gambas 2.20.2 > > ------------------------ > make[4]: Entering directory `/usr/src/gambas2-2.20.2/main/gbx' > /bin/sh ../libtool --tag=CC ? --mode=compile > gcc -DHAVE_CONFIG_H -I. -I.. ? ?-DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT ? ?-O0 ?-MT > gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o > gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c > ../libtool: line 847: X--tag=CC: command not found > ../libtool: line 880: libtool: ignoring unknown tag : command not found > ../libtool: line 847: X--mode=compile: command not found > ../libtool: line 1014: *** Warning: inferring the mode of operation is > deprecated.: command not found > ../libtool: line 1015: *** Future versions of Libtool will require --mode=MODE > be specified.: command not found > ../libtool: line 1158: Xgcc: command not found > ../libtool: line 1158: X-DHAVE_CONFIG_H: command not found > ../libtool: line 1158: X-I.: command not found > ../libtool: line 1158: X-I..: command not found > ../libtool: line 1158: X-DGBX_INFO: command not found > ../libtool: line 1158: X-pipe: command not found > ../libtool: line 1158: X-Wall: command not found > ../libtool: line 1158: X-Wno-unused-value: command not found > ../libtool: line 1158: X-Wcast-align: command not found > ../libtool: line 1158: X-fsigned-char: command not found > ../libtool: line 1158: X-fvisibility=hidden: command not found > ../libtool: line 1158: X-g: command not found > ../libtool: line 1158: X-Os: command not found > ../libtool: line 1158: X-I../share: No such file or directory > ../libtool: line 1158: X-D_REENTRANT: command not found > ../libtool: line 1158: X-O0: command not found > ../libtool: line 1158: X-MT: command not found > ../libtool: line 1158: Xgb_la-gbx_c_class.lo: command not found > ../libtool: line 1158: X-MD: command not found > ../libtool: line 1158: X-MP: command not found > ../libtool: line 1158: X-MF: command not found > ../libtool: line 1158: X.deps/gb_la-gbx_c_class.Tpo: No such file or directory > ../libtool: line 1158: X-c: command not found > ../libtool: line 1211: Xgb_la-gbx_c_class.lo: command not found > ../libtool: line 1216: libtool: compile: cannot determine name of library > object from `': command not found > make[4]: *** [gb_la-gbx_c_class.lo] Error 1 > make[4]: Leaving directory `/usr/src/gambas2-2.20.2/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/usr/src/gambas2-2.20.2/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/usr/src/gambas2-2.20.2/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/gambas2-2.20.2' > make: *** [all] Error 2 > -------------------------------------------------------- > > On Debian 5.01 > Libtool ?1.5.26-4 > 2.20.1 did compile nicely > > Regards > > Pino > > -- > > "In the universe there is no time existing as a physical reality, > ?there is no past, no present and no future" > "Time is a mind construction into which one experiences motion" > "Time is a flow of irreversible material changes" > -Davide Fiscaletti > > Key ID: 0xF6768208 > Key fingerprint = B16D 0A7C 5B29 A334 CE6A ?71F6 EAF8 3D88 F676 8208 > Key server: hkp://wwwkeys.eu.pgp.net > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 22 19:21:23 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 22 Mar 2010 19:21:23 +0100 Subject: [Gambas-user] Possible bug in Desktop.Open() In-Reply-To: References: Message-ID: <201003221921.23372.gambas@...1...> > Hi, > > Please try to run this simple code from Gambas2 IDE on KDE or gnome and > works fine. After you make the executable file of the project, if you run > the example from console *doesn't work on KDE* but *works in gnome > *desktop. > > I think this is not a gambas bug because if I replace > Desktop.Open(PathOfFile) by EXEC ["xdg-open", PathOfFile] I show a > "segmentation fault" message at console (but gambas program stay alive). > > I note this when I try to run the same app in KDE (on before I usually > works with ubuntu gnome default) > > I'm working with gambas 2.19 in Ubuntu 9.10 x86_64 (gnome and KDE). > > I'd like to know if there is something wrong on my box. > > Regards, > Ricardo D?az It works as expected there, with Mandriva 2010.0 and KDE4. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Mon Mar 22 20:41:37 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 22 Mar 2010 20:41:37 +0100 Subject: [Gambas-user] Possible bug in Desktop.Open() In-Reply-To: <201003221921.23372.gambas@...1...> References: <201003221921.23372.gambas@...1...> Message-ID: Thanks, I'm going to try again in other linux box to know what happen. The most strange is I execute source code form gambas IDE works as expected. Only executable file doesn't work this way. Regards, Ricardo D?az 2010/3/22 Beno?t Minisini > > Hi, > > > > Please try to run this simple code from Gambas2 IDE on KDE or gnome and > > works fine. After you make the executable file of the project, if you run > > the example from console *doesn't work on KDE* but *works in gnome > > *desktop. > > > > I think this is not a gambas bug because if I replace > > Desktop.Open(PathOfFile) by EXEC ["xdg-open", PathOfFile] I show a > > "segmentation fault" message at console (but gambas program stay alive). > > > > I note this when I try to run the same app in KDE (on before I usually > > works with ubuntu gnome default) > > > > I'm working with gambas 2.19 in Ubuntu 9.10 x86_64 (gnome and KDE). > > > > I'd like to know if there is something wrong on my box. > > > > Regards, > > Ricardo D?az > > It works as expected there, with Mandriva 2010.0 and KDE4. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Mon Mar 22 21:42:11 2010 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 22 Mar 2010 13:42:11 -0700 (PDT) Subject: [Gambas-user] Re lease of Gambas 2.20.2 In-Reply-To: <27913596.post@...1379...> References: <201003160038.12062.gambas@...1...> <27913596.post@...1379...> Message-ID: <27992382.post@...1379...> kevinfishburne wrote: > > Does this mean that the only difference between gambas2-2.19.0 and > gambas2-2.20.2 are the seven bug fixes mentioned in the quoted change log? > I'm trying to get a perspective of the version differences between GAMBAS > stable releases. I'm not familiar with the way open source projects are > maintained or version number schemes. If the lesser version number > indicates a single bug fix, that would mean 12 bugs were fixed between > releases, right? > Apparently my question was too dumb to receive an answer, but for anyone who is as dumb as I am there is a changelog on the download page: http://gambas.sourceforge.net/en/main.html http://gambas.sourceforge.net/en/changelog2.html ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/Release-of-Gambas-2.20.2-tp27911819p27992382.html Sent from the gambas-user mailing list archive at Nabble.com. From minterior at ...626... Tue Mar 23 00:21:40 2010 From: minterior at ...626... (Jaume Casado Ruiz) Date: Tue, 23 Mar 2010 00:21:40 +0100 Subject: [Gambas-user] Cannot reduce windows size to modal windows In-Reply-To: <201003182313.53673.gambas@...1...> References: <6324a42a1003180019u75fe58d5ha18f08fdaa482420@...627...> <201003182313.53673.gambas@...1...> Message-ID: <499ea6ce1003221621n7d26380p6fb5d1daedd3a328@...627...> Ok, then it is a feature, thank you. I won't use this workaround, in fact I've never used it, I just discovered it before this email. I can read this: "If a resizable window is shown in modal mode, then its initial size becomes automatically its minimum size." here: http://gambasdoc.org/help/dev/guicomp/window Maybe this can be added to the showmodal documentation, aren't we? Or at least add a link to the explanation. http://gambasdoc.org/help/comp/gb.qt/window/showmodal Now, assuming that I have to adjust the initial Window's size, how is it better to do? To fix its size in the form editor view (despite some fields or contents be hidden, probably causing confusion) or programmatically with ME.Resize()? Thank you. Regards, Jaume Casado Ruiz GPG Key ID: 0xF71B3570 Free software my friend ;-) From gambas at ...1... Tue Mar 23 00:26:37 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 23 Mar 2010 00:26:37 +0100 Subject: [Gambas-user] Some Qt4 bugs. In-Reply-To: <384d3901003220950j6395d676j2400d0c8017c872a@...627...> References: <384d3901003210959o1a55e2bfv71cf506fce1e53b6@...627...> <6324a42a1003211345o7c4059b5m6221fde46078b029@...627...> <384d3901003220950j6395d676j2400d0c8017c872a@...627...> Message-ID: <201003230026.38032.gambas@...1...> > Yes, that was it, drawingarea problem is solved! > It is old code that worked earlier, so I didn't even think about such > things... thanks! > > > But, textedit problem persist. > Although I have some new information about it. > I think I remembered old Qt3 way little bit wrongly.... it is also > cutting sentences, BUT not ugly way as in Qt4. > > So, with Qt3: > "This is test" > "sentence." > > With Qt4: > "This is test" > " sentence." > > More complicated examples are more ugly... > Benoit? > > Jussi > This is a bug in a Qt3 compatibily class. I fixed it in revision #2818 by using the good Qt4 widget. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Tue Mar 23 07:46:44 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 23 Mar 2010 07:46:44 +0100 Subject: [Gambas-user] Re lease of Gambas 2.20.2 In-Reply-To: <27992382.post@...1379...> References: <201003160038.12062.gambas@...1...> <27913596.post@...1379...> <27992382.post@...1379...> Message-ID: Yes, you're right. If you see full change log you can see all the fixes/additions. At http://gambas.sourceforge.net/en/main.html you can see stable versions of gambas2. There was an important change behaviour in a component (ComboBox) in 2.20 that make some problems with backward compatibility. This is the reason the stable version is 2.20.2 Yours is not dumb question but you have to known this is not commercial help desk and for this reason we replay messages when we can. Regards 2010/3/22 kevinfishburne > > > kevinfishburne wrote: > > > > Does this mean that the only difference between gambas2-2.19.0 and > > gambas2-2.20.2 are the seven bug fixes mentioned in the quoted change > log? > > I'm trying to get a perspective of the version differences between GAMBAS > > stable releases. I'm not familiar with the way open source projects are > > maintained or version number schemes. If the lesser version number > > indicates a single bug fix, that would mean 12 bugs were fixed between > > releases, right? > > > > Apparently my question was too dumb to receive an answer, but for anyone > who > is as dumb as I am there is a changelog on the download page: > > http://gambas.sourceforge.net/en/main.html > http://gambas.sourceforge.net/en/changelog2.html > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 > -- > View this message in context: > http://old.nabble.com/Release-of-Gambas-2.20.2-tp27911819p27992382.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Tue Mar 23 19:39:36 2010 From: prog at ...2177... (craf) Date: Tue, 23 Mar 2010 15:39:36 -0300 Subject: [Gambas-user] Send mail with smtp Message-ID: <1269369576.8331.10.camel@...651...> Hi. I'm trying to send an email from my computer, using the gb.net.smtp component. The code that uses it: ' Gambas module file PUBLIC SUB Main() DIM mail AS NEW SmtpClient mail.To.Add("user at ...2400...") mail.Subject = "Test Mail" mail.From = "user at ...2401..." mail.Host = "mail.servidor.com" mail.Port = 25 mail.Add("hello,world", "text/plain") mail.Send() END When executed, this throws the following error: "Server won't accept sender while starting dialog(smtp error code #575)" Any ideas? Regards [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=1026628 kB [Gambas] Gambas1=Not Installed Gambas2=2.20.2 Gambas2Path=/usr/local/bin/gbx2 Gambas3=Not Installed From arosa at ...2168... Tue Mar 23 21:26:01 2010 From: arosa at ...2168... (Toni) Date: Tue, 23 Mar 2010 21:26:01 +0100 (Hora estándar romance) Subject: [Gambas-user] Send mail with smtp In-Reply-To: <1269369576.8331.10.camel@...651...> References: <1269369576.8331.10.camel@...651...> Message-ID: <.77.224.23.61.1269375961.squirrel@...2402...> Hello, Once, I came across an #575 smtp error, and it was due to the server requiring a secure smtp connection to the port 587 instead to a plain-text connection to the port 25... So, are you sure that you can use the data provided to gambas gb.net.smtp component to properly send messages from an email client? Regards, Toni > Hi. > > I'm trying to send an email from my computer, using the gb.net.smtp > component. > > The code that uses it: > > ' Gambas module file > > PUBLIC SUB Main() > DIM mail AS NEW SmtpClient > > mail.To.Add("user at ...2400...") > mail.Subject = "Test Mail" > mail.From = "user at ...2401..." > mail.Host = "mail.servidor.com" > mail.Port = 25 > mail.Add("hello,world", "text/plain") > mail.Send() > END > > When executed, this throws the following error: > > "Server won't accept sender while starting dialog(smtp error code #575)" > > Any ideas? > > Regards > > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.28-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.04" > > [System] > CPUArchitecture=i686 > TotalRam=1026628 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=Not Installed > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Tue Mar 23 22:08:01 2010 From: prog at ...2177... (craf) Date: Tue, 23 Mar 2010 18:08:01 -0300 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <1269377280.8331.13.camel@...651...> References: <1269369576.8331.10.camel@...651...> <1269377280.8331.13.camel@...651...> Message-ID: <1269378481.8331.14.camel@...651...> -----Mensaje original----- De: Toni Reply-to: arosa at ...2168..., mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Send mail with smtp Fecha: Tue, 23 Mar 2010 21:26:01 +0100 (Hora estndar romance) < References: <1269369576.8331.10.camel@...651...> <1269377280.8331.13.camel@...651...> <1269378481.8331.14.camel@...651...> Message-ID: <201003232228.48359.gambas@...1...> > -----Mensaje original----- > De: Toni > Reply-to: arosa at ...2168..., mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] Send mail with smtp > Fecha: Tue, 23 Mar 2010 21:26:01 +0100 (Hora estndar romance) > > < < < plain-text > < data > < from an > < > The remote server requires password, but gb.smtp has no smtp.password. > How do I authenticate to the remote server? > > regards It is a pending problem that does not have a good solution at the moment: the gb.net.smtp component has no support for any authentication. I can't add it, because I don't know how to do it. So I should rewrite the component to use a library that know how to authenticate, like libesmtp. But that library has no MIME attachment support, so I have to do it myself. Not something that can be done in five minutes... Unless someone knows a library that can do SMTP with authentication *with* MIME attachment management! -- Beno?t Minisini From prog at ...2177... Tue Mar 23 22:37:58 2010 From: prog at ...2177... (craf) Date: Tue, 23 Mar 2010 18:37:58 -0300 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <201003232228.48359.gambas@...1...> References: <1269369576.8331.10.camel@...651...> <1269377280.8331.13.camel@...651...> <1269378481.8331.14.camel@...651...> <201003232228.48359.gambas@...1...> Message-ID: <1269380278.8331.16.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Send mail with smtp Fecha: Tue, 23 Mar 2010 22:28:48 +0100 > -----Mensaje original----- > De: Toni > Reply-to: arosa at ...2168..., mailing list for gambas users > > Para: mailing list for gambas users > Asunto: Re: [Gambas-user] Send mail with smtp > Fecha: Tue, 23 Mar 2010 21:26:01 +0100 (Hora estndar romance) > > < < < plain-text > < data > < from an > < > The remote server requires password, but gb.smtp has no smtp.password. > How do I authenticate to the remote server? > > regards >It is a pending problem that does not have a good solution at the moment: the >gb.net.smtp component has no support for any authentication. >I can't add it, because I don't know how to do it. So I should rewrite the >component to use a library that know how to authenticate, like libesmtp. But >that library has no MIME attachment support, so I have to do it myself. >Not something that can be done in five minutes... Unless someone knows a >library that can do SMTP with authentication *with* MIME attachment >management! Thanks four your answer. Regards. From linuxos at ...1896... Wed Mar 24 00:51:58 2010 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 24 Mar 2010 00:51:58 +0100 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <201003232228.48359.gambas@...1...> References: <1269369576.8331.10.camel@...651...> <1269377280.8331.13.camel@...651...> <1269378481.8331.14.camel@...651...> <201003232228.48359.gambas@...1...> Message-ID: Bonsoir Benoit, Peut ?tre cela t'aidera: http://www.etpan.org/libetpan/ http://libsmtp.sourceforge.net/ http://www.gnu.org/software/gss/ Olivier Cruilles Mail: linuxos at ...1896... Le 23 mars 2010 ? 22:28, Beno?t Minisini a ?crit : >> -----Mensaje original----- >> De: Toni >> Reply-to: arosa at ...2168..., mailing list for gambas users >> >> Para: mailing list for gambas users >> Asunto: Re: [Gambas-user] Send mail with smtp >> Fecha: Tue, 23 Mar 2010 21:26:01 +0100 (Hora estndar romance) >> >> <> <> <> plain-text >> <> data >> <> from an >> <> >> The remote server requires password, but gb.smtp has no smtp.password. >> How do I authenticate to the remote server? >> >> regards > > It is a pending problem that does not have a good solution at the moment: the > gb.net.smtp component has no support for any authentication. > > I can't add it, because I don't know how to do it. So I should rewrite the > component to use a library that know how to authenticate, like libesmtp. But > that library has no MIME attachment support, so I have to do it myself. > > Not something that can be done in five minutes... Unless someone knows a > library that can do SMTP with authentication *with* MIME attachment > management! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...2097... Wed Mar 24 03:52:26 2010 From: steven at ...2097... (Steven James Drinnan) Date: Wed, 24 Mar 2010 10:52:26 +0800 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <1269369576.8331.10.camel@...651...> References: <1269369576.8331.10.camel@...651...> Message-ID: <1269399147.19044.11.camel@...2273...> As a work around use sendmail as the mail transport. Just ensure the service is running. And as it is usually installed by default on a lot of Linux distributions. This is the case for the Desktop version of Fedora. Concerns to be safe do not enable the port 25 on your firewall. (if enabled you could be exploited as a SMTP relay) I.E change mail.Host = "mail.servidor.com" to mail.Host = "localhost" steven On Tue, 2010-03-23 at 15:39 -0300, craf wrote: > Hi. > > I'm trying to send an email from my computer, using the gb.net.smtp > component. > > The code that uses it: > > ' Gambas module file > > PUBLIC SUB Main() > DIM mail AS NEW SmtpClient > > mail.To.Add("user at ...2400...") > mail.Subject = "Test Mail" > mail.From = "user at ...2401..." > mail.Host = "mail.servidor.com" > mail.Port = 25 > mail.Add("hello,world", "text/plain") > mail.Send() > END > > When executed, this throws the following error: > > "Server won't accept sender while starting dialog(smtp error code #575)" > > Any ideas? > > Regards > > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.28-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.04" > > [System] > CPUArchitecture=i686 > TotalRam=1026628 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=Not Installed > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admhardsoft at ...253... Wed Mar 24 04:44:05 2010 From: admhardsoft at ...253... (Tomas Rodriguez) Date: Tue, 23 Mar 2010 23:44:05 -0400 Subject: [Gambas-user] what kind of application developer Gambas Message-ID: <261C932B5384410FBBC814AB6B592051@...2404...> Hi I am new in gambas I need to know what kind of application I can developer in this programming language? thanks Tomas From gambas at ...1... Wed Mar 24 06:25:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 24 Mar 2010 06:25:07 +0100 Subject: [Gambas-user] Cannot reduce windows size to modal windows In-Reply-To: <499ea6ce1003221621n7d26380p6fb5d1daedd3a328@...627...> References: <201003182313.53673.gambas@...1...> <499ea6ce1003221621n7d26380p6fb5d1daedd3a328@...627...> Message-ID: <201003240625.07288.gambas@...1...> > Ok, then it is a feature, thank you. > I won't use this workaround, in fact I've never used it, I just discovered > it before this email. > > I can read this: > "If a resizable window is shown in modal mode, then its initial size > becomes automatically its minimum size." > here: > http://gambasdoc.org/help/dev/guicomp/window > > Maybe this can be added to the showmodal documentation, aren't we? Or at > least add a link to the explanation. > http://gambasdoc.org/help/comp/gb.qt/window/showmodal > > Now, assuming that I have to adjust the initial Window's size, how is it > better to do? To fix its size in the form editor view (despite some fields > or contents be hidden, probably causing confusion) Yes, this is the usual way. > or programmatically with > ME.Resize()? You can do that too, but only *before* the Open event. For example inside the constructor. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Wed Mar 24 07:43:06 2010 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 24 Mar 2010 07:43:06 +0100 Subject: [Gambas-user] what kind of application developer Gambas In-Reply-To: <261C932B5384410FBBC814AB6B592051@...2404...> References: <261C932B5384410FBBC814AB6B592051@...2404...> Message-ID: You can make almost all you want, but for me is really nice as MySQL frontend. Regards, Ricardo D?az 2010/3/24 Tomas Rodriguez > Hi > I am new in gambas I need to know what kind of application I can developer > in this programming language? > > thanks > Tomas > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Mar 24 11:00:37 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 24 Mar 2010 11:00:37 +0100 Subject: [Gambas-user] Send mail with smtp In-Reply-To: References: <1269369576.8331.10.camel@...651...> <201003232228.48359.gambas@...1...> Message-ID: <201003241100.37751.gambas@...1...> > Bonsoir Benoit, > > Peut ?tre cela t'aidera: > > http://www.etpan.org/libetpan/ Apparently not modified since five years. > > http://libsmtp.sourceforge.net/ Not maintained anymore. > > http://www.gnu.org/software/gss/ Alpha software. Thanks anyway, but something better should be found! -- Beno?t Minisini From prog at ...2177... Wed Mar 24 14:51:00 2010 From: prog at ...2177... (craf) Date: Wed, 24 Mar 2010 10:51:00 -0300 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <201003241100.37751.gambas@...1...> References: <1269369576.8331.10.camel@...651...> <201003232228.48359.gambas@...1...> <201003241100.37751.gambas@...1...> Message-ID: <1269438660.3622.0.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Send mail with smtp Fecha: Wed, 24 Mar 2010 11:00:37 +0100 > Bonsoir Benoit, > > Peut ?tre cela t'aidera: > > http://www.etpan.org/libetpan/ >Apparently not modified since five years. > > http://libsmtp.sourceforge.net/ >Not maintained anymore. > > http://www.gnu.org/software/gss/ >Alpha software. >Thanks anyway, but something better should be found! Hello As I only need to send a string IP, using ssmtp, which allows authentication, but not MIME attachment. Regards From prog at ...2177... Wed Mar 24 14:55:31 2010 From: prog at ...2177... (craf) Date: Wed, 24 Mar 2010 10:55:31 -0300 Subject: [Gambas-user] what kind of application developer Gambas In-Reply-To: <261C932B5384410FBBC814AB6B592051@...2404...> References: <261C932B5384410FBBC814AB6B592051@...2404...> Message-ID: <1269438931.3622.3.camel@...651...> -----Mensaje original----- De: Tomas Rodriguez Reply-to: mailing list for gambas users Para: gambas-user at lists.sourceforge.net Asunto: [Gambas-user] what kind of application developer Gambas Fecha: Tue, 23 Mar 2010 23:44:05 -0400 >Hi >I am new in gambas I need to know what kind of application I can developer >in this programming language? >thanks >Tomas Gambas es un ambiente de desarrollo libre, basado en un interprete BASIC con extensiones objeto. Con Gambas puedes dise?ar rapidamente programas GUI con librer?as QT o GTK+, acceder a bases de datos como MYSQL, PostgresSQL, Firebird, ODBC y Sqlite, aplicaciones KDE en Palm Pilot con DCOP, traducir los programas a cualquier lenguaje, crear aplicaciones de red facilmente, realizar aplicaciones 3D OpenGl, hacer aplicaciones web CGI y mucho mas. Gambas es un proyecto de desarrollo Open Source, lanzada bajo la Licencia General P?blica GPL Gambas is a free development environment based on a Basic interpreter with object extensions, With Gambas, you can quickly design your program GUI with QT or GTK+, access MySQL, PostgreSQL, Firebird, ODBC and SQLite databases, pilot KDE applications with DCOP, translate your program into any language, create network applications easily, make 3D OpenGL applications, make CGI web applications, and Regards ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Mar 24 19:20:48 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Mar 2010 19:20:48 +0100 Subject: [Gambas-user] Send mail with smtp In-Reply-To: <201003241100.37751.gambas@...1...> References: <1269369576.8331.10.camel@...651...> <201003232228.48359.gambas@...1...> <201003241100.37751.gambas@...1...> Message-ID: <6324a42a1003241120jea6f745iff017473b7c06bef@...627...> Le 24 mars 2010 11:00, Beno?t Minisini a ?crit : >> Bonsoir Benoit, >> >> Peut ?tre cela t'aidera: >> >> ? ? ? http://www.etpan.org/libetpan/ > > Apparently not modified since five years. not sure look here : http://libetpan.svn.sourceforge.net/viewvc/libetpan?view=rev&revision=100 > >> >> ? ? ? http://libsmtp.sourceforge.net/ > > Not maintained anymore. > >> >> ? ? ? http://www.gnu.org/software/gss/ > > Alpha software. > > Thanks anyway, but something better should be found! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admhardsoft at ...253... Wed Mar 24 22:05:08 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Wed, 24 Mar 2010 21:05:08 +0000 Subject: [Gambas-user] what kind of application developer Gambas In-Reply-To: References: <261C932B5384410FBBC814AB6B592051@...2404...> Message-ID: <1244207946-1269464718-cardhu_decombobulator_blackberry.rim.net-61317897-@...2405...> Gamba have interface with MSQL server too? From gamba(ubuntu) to SQL server(windows) Thanks for everyone Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Ricardo D?az Mart?n Date: Wed, 24 Mar 2010 07:43:06 To: mailing list for gambas users Subject: Re: [Gambas-user] what kind of application developer Gambas You can make almost all you want, but for me is really nice as MySQL frontend. Regards, Ricardo D?az 2010/3/24 Tomas Rodriguez > Hi > I am new in gambas I need to know what kind of application I can developer > in this programming language? > > thanks > Tomas > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev >_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Mar 24 22:46:33 2010 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Mar 2010 22:46:33 +0100 Subject: [Gambas-user] what kind of application developer Gambas In-Reply-To: <1244207946-1269464718-cardhu_decombobulator_blackberry.rim.net-61317897-@...2405...> References: <261C932B5384410FBBC814AB6B592051@...2404...> <1244207946-1269464718-cardhu_decombobulator_blackberry.rim.net-61317897-@...2405...> Message-ID: <6324a42a1003241446h348801u59948a087b470718@...627...> ODBC ? 2010/3/24 : > Gamba have interface with MSQL server too? From gamba(ubuntu) to SQL server(windows) > > Thanks for everyone > Sent on the TELUS Mobility network with BlackBerry > > -----Original Message----- > From: Ricardo D?az Mart?n > Date: Wed, 24 Mar 2010 07:43:06 > To: mailing list for gambas users > Subject: Re: [Gambas-user] what kind of application developer Gambas > > You can make almost all you want, but for me is really nice as MySQL > frontend. > > Regards, > Ricardo D?az > > 2010/3/24 Tomas Rodriguez > >> Hi >> I am new in gambas I need to know what kind of application I can developer >> in this programming language? >> >> thanks >> Tomas >> >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >>_______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Thu Mar 25 22:38:30 2010 From: prog at ...2177... (craf) Date: Thu, 25 Mar 2010 18:38:30 -0300 Subject: [Gambas-user] Missing components Message-ID: <1269553110.14786.7.camel@...651...> Hi I'm testing Gambas3 Rev 2825. When I run it and create a GTK + program gives me this error: "Missing some components : gb.gtk.ext." The compilation of the sources did not show any error. Regards [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.28-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.04" [System] CPUArchitecture=i686 TotalRam=1026628 kB [Gambas] Gambas1=Not Installed Gambas2=2.20.2 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 From gambas at ...1... Thu Mar 25 23:18:16 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 25 Mar 2010 23:18:16 +0100 Subject: [Gambas-user] Missing components In-Reply-To: <1269553110.14786.7.camel@...651...> References: <1269553110.14786.7.camel@...651...> Message-ID: <201003252318.16240.gambas@...1...> > Hi > > I'm testing Gambas3 Rev 2825. When I run it and create a GTK + program > gives me this error: > > "Missing some components : gb.gtk.ext." > > The compilation of the sources did not show any error. > > Regards > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.28-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.04" > > [System] > CPUArchitecture=i686 > TotalRam=1026628 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 This is a bug in the IDE, the gb.gtk.ext component does not exist anymore. As a workaround, edit the ".project" file located in your project directory with a text editor, and remove the line "Library=gb.gtk.ext". Regards, -- Beno?t Minisini From prog at ...2177... Thu Mar 25 23:37:58 2010 From: prog at ...2177... (craf) Date: Thu, 25 Mar 2010 19:37:58 -0300 Subject: [Gambas-user] Missing components In-Reply-To: <201003252318.16240.gambas@...1...> References: <1269553110.14786.7.camel@...651...> <201003252318.16240.gambas@...1...> Message-ID: <1269556678.3600.1.camel@...651...> Ok.Thank you. Regards. ----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Missing components Fecha: Thu, 25 Mar 2010 23:18:16 +0100 > Hi > > I'm testing Gambas3 Rev 2825. When I run it and create a GTK + program > gives me this error: > > "Missing some components : gb.gtk.ext." > > The compilation of the sources did not show any error. > > Regards > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.28-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.04" > > [System] > CPUArchitecture=i686 > TotalRam=1026628 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 This is a bug in the IDE, the gb.gtk.ext component does not exist anymore. As a workaround, edit the ".project" file located in your project directory with a text editor, and remove the line "Library=gb.gtk.ext". Regards, From prog at ...2177... Thu Mar 25 23:44:54 2010 From: prog at ...2177... (craf) Date: Thu, 25 Mar 2010 19:44:54 -0300 Subject: [Gambas-user] Missing components In-Reply-To: <1269556678.3600.1.camel@...651...> References: <1269553110.14786.7.camel@...651...> <201003252318.16240.gambas@...1...> <1269556678.3600.1.camel@...651...> Message-ID: <1269557094.3600.5.camel@...651...> Fixed issue gb.gtk.ext component. A problem that remains is that if I add a button, this does not appear on the form and run the program, it can not stop. Regards -----Mensaje original----- De: craf Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Missing components Fecha: Thu, 25 Mar 2010 19:37:58 -0300 Ok.Thank you. Regards. ----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Missing components Fecha: Thu, 25 Mar 2010 23:18:16 +0100 > Hi > > I'm testing Gambas3 Rev 2825. When I run it and create a GTK + program > gives me this error: > > "Missing some components : gb.gtk.ext." > > The compilation of the sources did not show any error. > > Regards > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.28-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.04" > > [System] > CPUArchitecture=i686 > TotalRam=1026628 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 This is a bug in the IDE, the gb.gtk.ext component does not exist anymore. As a workaround, edit the ".project" file located in your project directory with a text editor, and remove the line "Library=gb.gtk.ext". Regards, ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Mar 25 23:58:52 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 25 Mar 2010 23:58:52 +0100 Subject: [Gambas-user] Missing components In-Reply-To: <1269557094.3600.5.camel@...651...> References: <1269553110.14786.7.camel@...651...> <1269556678.3600.1.camel@...651...> <1269557094.3600.5.camel@...651...> Message-ID: <201003252358.52411.gambas@...1...> > Fixed issue gb.gtk.ext component. > A problem that remains is that if I add a button, this does not appear > on the form and run the program, it can not stop. > Can you give more details? I don't see what you are talking about... -- Beno?t Minisini From prog at ...2177... Fri Mar 26 00:20:44 2010 From: prog at ...2177... (craf) Date: Thu, 25 Mar 2010 20:20:44 -0300 Subject: [Gambas-user] Missing components In-Reply-To: <201003252358.52411.gambas@...1...> References: <1269553110.14786.7.camel@...651...> <1269556678.3600.1.camel@...651...> <1269557094.3600.5.camel@...651...> <201003252358.52411.gambas@...1...> Message-ID: <1269559244.3600.10.camel@...651...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Missing components Fecha: Thu, 25 Mar 2010 23:58:52 +0100 > Fixed issue gb.gtk.ext component. > A problem that remains is that if I add a button, this does not appear > on the form and run the program, it can not stop. > >Can you give more details? I don't see what you are talking about... First, I apologize for my bad English. Google helps, but not much. Steps that I perform: 1. New project with gtk + 2. I close Gambas. 3. Change the file. Proyect and delete the reference to the component gb.gtk.ext 4. Gambas open again but I can not put any control on the form. see a locked symbol next to the controls. It is as if the IDE is blocked. Regards From rafadose at ...626... Fri Mar 26 00:56:30 2010 From: rafadose at ...626... (Rafa Domenech) Date: Fri, 26 Mar 2010 00:56:30 +0100 Subject: [Gambas-user] =?iso-8859-1?q?=BFbug=3F_Error_with_Val_function_an?= =?iso-8859-1?q?d_hex_values?= Message-ID: <97468b781003251656k47be9e02n66a8d4d66991b4d4@...627...> Hello, I've a problem trying to convert a string in hex to decimal. When I do this: test = (Val("&H9000") AND 65535) I obtain test = -28672 (equals to 0xFFFFFFF9000) and it should be test = 36864 (0x9000) And when I debug it step by step I obtain what you can see in this screenshot. [image: Pantallazo-1.png] This example seems very stupid (and it is), I did it because I noticed that this code test = Val("&H" & TextBox1.Text) didn't work fine with TextBox1.Text="9000" and maybe with other values. Then I tried to "cut" with AND with &HFFFFF but it didn't work so I changed it to its decimal conversion 65535 and now at least the debugger shows the correct value but it doesn't asign it to test. I'm using Gambas 2.20.2 in Ubuntu 9.10 with 2.6.31-20-generic kernell Thankyou Rafa -------------- next part -------------- A non-text attachment was scrubbed... Name: Pantallazo-1.png Type: image/png Size: 18922 bytes Desc: not available URL: From gambas at ...1... Fri Mar 26 06:10:11 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 26 Mar 2010 06:10:11 +0100 Subject: [Gambas-user] =?utf-8?q?=C2=BFbug=3F_Error_with_Val_function_and_?= =?utf-8?q?hex_values?= In-Reply-To: <97468b781003251656k47be9e02n66a8d4d66991b4d4@...627...> References: <97468b781003251656k47be9e02n66a8d4d66991b4d4@...627...> Message-ID: <201003260610.11890.gambas@...1...> > Hello, > > I've a problem trying to convert a string in hex to decimal. > When I do this: > test = (Val("&H9000") AND 65535) > I obtain > test = -28672 (equals to 0xFFFFFFF9000) > and it should be > test = 36864 (0x9000) > It depends: what is the full source code with the declaration of 'test'? > And when I debug it step by step I obtain what you can see in this > screenshot. > [image: Pantallazo-1.png] > This example seems very stupid (and it is), I did it because I noticed that > this code > test = Val("&H" & TextBox1.Text) > didn't work fine with TextBox1.Text="9000" and maybe with other values. > Then I tried to "cut" with AND with &HFFFFF but it didn't work so I > changed it to its decimal conversion 65535 and now at least the debugger > shows the correct value but it doesn't asign it to test. > > I'm using Gambas 2.20.2 in Ubuntu 9.10 with 2.6.31-20-generic kernell > > Thankyou > > Rafa &Hxxxx is a signed 16 bits integer. If you want an unsigned value, you must add a '&' at the end of the number: &Hxxxx&. That is a strange inheritance from VB. In Gambas 3, the same principle was applied to 32 bits integer: &Hxxxxxxxx is a signed 32 bits integer, and if you need an unsigned one, you must use &Hxxxxxxxx&. Regards, -- Beno?t Minisini From rafadose at ...626... Fri Mar 26 10:06:26 2010 From: rafadose at ...626... (Rafa Domenech) Date: Fri, 26 Mar 2010 10:06:26 +0100 Subject: [Gambas-user] =?iso-8859-1?q?=BFbug=3F_Error_with_Val_function_an?= =?iso-8859-1?q?d_hex_values?= In-Reply-To: <201003260610.11890.gambas@...1...> References: <97468b781003251656k47be9e02n66a8d4d66991b4d4@...627...> <201003260610.11890.gambas@...1...> Message-ID: <97468b781003260206j36c9027eu2d386ccf6863a19b@...627...> Hello Beno?t, You're right, I didn't know how to say that it was unsigned. So this code now works fine: DIM test AS Integer test = Val("&H" & TextBox1.Text & "&") Thankyou Rafa On 26 March 2010 06:10, Beno?t Minisini wrote: > > Hello, > > > > I've a problem trying to convert a string in hex to decimal. > > When I do this: > > test = (Val("&H9000") AND 65535) > > I obtain > > test = -28672 (equals to 0xFFFFFFF9000) > > and it should be > > test = 36864 (0x9000) > > > > It depends: what is the full source code with the declaration of 'test'? > > > And when I debug it step by step I obtain what you can see in this > > screenshot. > > [image: Pantallazo-1.png] > > This example seems very stupid (and it is), I did it because I noticed > that > > this code > > test = Val("&H" & TextBox1.Text) > > didn't work fine with TextBox1.Text="9000" and maybe with other values. > > Then I tried to "cut" with AND with &HFFFFF but it didn't work so I > > changed it to its decimal conversion 65535 and now at least the debugger > > shows the correct value but it doesn't asign it to test. > > > > I'm using Gambas 2.20.2 in Ubuntu 9.10 with 2.6.31-20-generic kernell > > > > Thankyou > > > > Rafa > > &Hxxxx is a signed 16 bits integer. If you want an unsigned value, you must > add a '&' at the end of the number: &Hxxxx&. That is a strange inheritance > from VB. > > In Gambas 3, the same principle was applied to 32 bits integer: &Hxxxxxxxx > is > a signed 32 bits integer, and if you need an unsigned one, you must use > &Hxxxxxxxx&. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Sat Mar 27 12:07:48 2010 From: mohareve at ...626... (M. Cs.) Date: Sat, 27 Mar 2010 12:07:48 +0100 Subject: [Gambas-user] Signal #11 Message-ID: Hi, I have strange crashes in my program. It is a module inside a program. The FMain. refers to the main form of the program. It is a Where Is it catalog importer module, but it crashes randomly. I can't find the error's output. I know it uses a LOT of memory, yet I don't understand which symbol could be unknown in this class. Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: Whereisit.module Type: application/octet-stream Size: 11178 bytes Desc: not available URL: From gambas at ...1... Sat Mar 27 12:17:12 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 27 Mar 2010 12:17:12 +0100 Subject: [Gambas-user] Signal #11 In-Reply-To: References: Message-ID: <201003271217.12247.gambas@...1...> > Hi, > I have strange crashes in my program. It is a module inside a program. The > FMain. refers to the main form of the program. It is a Where Is it catalog > importer module, but it crashes randomly. I can't find the error's output. > I know it uses a LOT of memory, yet I don't understand which symbol could > be unknown in this class. > > Thanks! Please provide your project, and everything necessary to reproduce a crash, and please tell which version of Gambas you use! -- Beno?t Minisini From mdumm at ...647... Sat Mar 27 16:08:21 2010 From: mdumm at ...647... (Maurice Dumais) Date: Sat, 27 Mar 2010 11:08:21 -0400 Subject: [Gambas-user] Pb with Dialog.Font, Error #11 message Message-ID: <4BAE1F65.3070604@...647...> Hi, I encounter a problem with Dialog.Font, whenever I use it more than once in the same program session. That is, the first time it works as expected, then if I use it again, the program crashes and sends me a signal 11 message. To reproduce it: simply add a TextArea and a button to a Form, and copy to the button Click event, the code found in the Wiki under the Section FONT in the gb.qt4 component. Then try to change the Font of the TextArea more than once. However, the Dialog.Color box behaves perfectly, and this, with or without the gb.Form.Dialog component being activated. I am currently using Gambas3 (svn 2818) with qt, on MDV 2010.0 with KDE4. Thanks in anticipation, Regards, M. Dumais From Karl.Reinl at ...2345... Sat Mar 27 19:38:04 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 27 Mar 2010 19:38:04 +0100 Subject: [Gambas-user] gambas3 Revision 2835. IDE crashes Message-ID: <1269715084.8115.5.camel@...40...> Salut, starting gambas3 Revision 2835 complied today I get this: Desktop.Width_Read.321: #13: Null object 0: Desktop.Width_Read.321 1: FMain._new.22 2: Project.Main.202 attached you the logs. for my TEST-Laptop : [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31.12-desktop-3mnb DistributionVendor=MandrivaLinux DistributionRelease="Mandriva Linux 2010.0" [System] CPUArchitecture=i686 TotalRam=497108 kB [Gambas] Gambas1=Not Installed Gambas2=2.20.2 Revision 2835. Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Revision 2835. Gambas3Path=/usr/local/bin/gbx3 -------------- next part -------------- A non-text attachment was scrubbed... Name: error_Revision 2835.tar.bz2 Type: application/x-bzip-compressed-tar Size: 31596 bytes Desc: not available URL: From rterry at ...1946... Sat Mar 27 22:25:02 2010 From: rterry at ...1946... (richard terry) Date: Sun, 28 Mar 2010 08:25:02 +1100 Subject: [Gambas-user] Pb with Dialog.Font, Error #11 message In-Reply-To: <4BAE1F65.3070604@...647...> References: <4BAE1F65.3070604@...647...> Message-ID: <201003280825.02250.rterry@...1946...> On Sunday 28 March 2010 02:08:21 Maurice Dumais wrote: Finally, someone has reproduced a bug I've been trying to reproduce for 6 onths or more!!!!. agree with you,However I found it wasn't that clear cut. sometimes the Sig 11 occurred after a few uses. Hopefully benoit can find the bug now with your suggestion. Richard > Hi, > I encounter a problem with Dialog.Font, whenever I use it more than once > in the same program session. That is, the first time it works as > expected, then if I use it again, the program crashes and sends me a > signal 11 message. > > To reproduce it: simply add a TextArea and a button to a Form, and copy > to the button Click event, the code found in the Wiki under the Section > FONT in the gb.qt4 component. Then try to change the Font of the > TextArea more than once. > > However, the Dialog.Color box behaves perfectly, and this, with or > without the gb.Form.Dialog component being activated. > > I am currently using Gambas3 (svn 2818) with qt, on MDV 2010.0 with KDE4. > > Thanks in anticipation, > > Regards, > > M. Dumais > > > --------------------------------------------------------------------------- > --- Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 28 04:16:39 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 28 Mar 2010 04:16:39 +0200 Subject: [Gambas-user] gambas3 Revision 2835. IDE crashes In-Reply-To: <1269715084.8115.5.camel@...40...> References: <1269715084.8115.5.camel@...40...> Message-ID: <201003280416.39592.gambas@...1...> > Salut, > > starting gambas3 Revision 2835 complied today > I get this: > > Desktop.Width_Read.321: #13: Null object > 0: Desktop.Width_Read.321 > 1: FMain._new.22 > 2: Project.Main.202 > > attached you the logs. > > for my TEST-Laptop : > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.31.12-desktop-3mnb > DistributionVendor=MandrivaLinux > DistributionRelease="Mandriva Linux 2010.0" > > [System] > CPUArchitecture=i686 > TotalRam=497108 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.20.2 Revision 2835. > Gambas2Path=/usr/local/bin/gbx2 > Gambas3=2.99.0 Revision 2835. > Gambas3Path=/usr/local/bin/gbx3 Nothing has changed in the Desktop component for a long time. The Desktop.Width property reads a standard X11 property attached to the root window. Do you use a special desktop, or gui environment? -- Beno?t Minisini From Karl.Reinl at ...2345... Sun Mar 28 11:19:11 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 28 Mar 2010 11:19:11 +0200 Subject: [Gambas-user] gambas3 Revision 2835. IDE crashes In-Reply-To: <201003280416.39592.gambas@...1...> References: <1269715084.8115.5.camel@...40...> <201003280416.39592.gambas@...1...> Message-ID: <1269767951.6550.8.camel@...40...> Am Sonntag, den 28.03.2010, 04:16 +0200 schrieb Beno?t Minisini: > > Salut, > > > > starting gambas3 Revision 2835 complied today > > I get this: > > > > Desktop.Width_Read.321: #13: Null object > > 0: Desktop.Width_Read.321 > > 1: FMain._new.22 > > 2: Project.Main.202 > > > > attached you the logs. > > > > for my TEST-Laptop : > > > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.31.12-desktop-3mnb > > DistributionVendor=MandrivaLinux > > DistributionRelease="Mandriva Linux 2010.0" > > > > [System] > > CPUArchitecture=i686 > > TotalRam=497108 kB > > > > [Gambas] > > Gambas1=Not Installed > > Gambas2=2.20.2 Revision 2835. > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 Revision 2835. > > Gambas3Path=/usr/local/bin/gbx3 > > Nothing has changed in the Desktop component for a long time. > > The Desktop.Width property reads a standard X11 property attached to the root > window. Do you use a special desktop, or gui environment? > Salut, yes, I use iceWM, (also the installation was made under iceWM) What special: the Laptop is plugged on a KVM and has beside its 15" Screen a SyncMaster 203b display. The error occurs also, when not plugged to KVM. -- Amicalement Charlie From Karl.Reinl at ...2345... Sun Mar 28 17:40:13 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 28 Mar 2010 17:40:13 +0200 Subject: [Gambas-user] solved Re: gambas3 Revision 2835. IDE crashes In-Reply-To: <201003280416.39592.gambas@...1...> References: <1269715084.8115.5.camel@...40...> <201003280416.39592.gambas@...1...> Message-ID: <1269790813.6550.20.camel@...40...> Am Sonntag, den 28.03.2010, 04:16 +0200 schrieb Beno?t Minisini: > > Salut, > > > > starting gambas3 Revision 2835 complied today > > I get this: > > > > Desktop.Width_Read.321: #13: Null object > > 0: Desktop.Width_Read.321 > > 1: FMain._new.22 > > 2: Project.Main.202 > > > > attached you the logs. > > > > for my TEST-Laptop : > > > > [OperatingSystem] > > OperatingSystem=Linux > > KernelRelease=2.6.31.12-desktop-3mnb > > DistributionVendor=MandrivaLinux > > DistributionRelease="Mandriva Linux 2010.0" > > > > [System] > > CPUArchitecture=i686 > > TotalRam=497108 kB > > > > [Gambas] > > Gambas1=Not Installed > > Gambas2=2.20.2 Revision 2835. > > Gambas2Path=/usr/local/bin/gbx2 > > Gambas3=2.99.0 Revision 2835. > > Gambas3Path=/usr/local/bin/gbx3 > > Nothing has changed in the Desktop component for a long time. > > The Desktop.Width property reads a standard X11 property attached to the root > window. Do you use a special desktop, or gui environment? > Salut, seams to be a iceWM problem , when I use Gnome, LXDE, Openbox or WindowsMaker Desktop.Width returns a value. (KDE4 don't start) With iceWM when I try to inspect Desktop.Width the IDE crashes. On iceWM , $ xdpyinfo | grep 'dimensions:' returns 1024*768 what is the right value. So for me it's -- Amicalement Charlie From gambas at ...1... Sun Mar 28 23:51:45 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 28 Mar 2010 23:51:45 +0200 Subject: [Gambas-user] gambas3 Revision 2835. IDE crashes In-Reply-To: <1269767951.6550.8.camel@...40...> References: <1269715084.8115.5.camel@...40...> <201003280416.39592.gambas@...1...> <1269767951.6550.8.camel@...40...> Message-ID: <201003282351.45858.gambas@...1...> > Am Sonntag, den 28.03.2010, 04:16 +0200 schrieb Beno?t Minisini: > > > Salut, > > > > > > starting gambas3 Revision 2835 complied today > > > I get this: > > > > > > Desktop.Width_Read.321: #13: Null object > > > 0: Desktop.Width_Read.321 > > > 1: FMain._new.22 > > > 2: Project.Main.202 > > > > > > attached you the logs. > > > > > > for my TEST-Laptop : > > > > > > [OperatingSystem] > > > OperatingSystem=Linux > > > KernelRelease=2.6.31.12-desktop-3mnb > > > DistributionVendor=MandrivaLinux > > > DistributionRelease="Mandriva Linux 2010.0" > > > > > > [System] > > > CPUArchitecture=i686 > > > TotalRam=497108 kB > > > > > > [Gambas] > > > Gambas1=Not Installed > > > Gambas2=2.20.2 Revision 2835. > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 Revision 2835. > > > Gambas3Path=/usr/local/bin/gbx3 > > > > Nothing has changed in the Desktop component for a long time. > > > > The Desktop.Width property reads a standard X11 property attached to the > > root window. Do you use a special desktop, or gui environment? > > Salut, > > yes, I use iceWM, (also the installation was made under iceWM) > What special: the Laptop is plugged on a KVM and has beside its 15" > Screen a SyncMaster 203b display. > The error occurs also, when not plugged to KVM. What happens if you use another desktop environment? -- Beno?t Minisini From gambas at ...1... Sun Mar 28 23:59:21 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 28 Mar 2010 23:59:21 +0200 Subject: [Gambas-user] Pb with Dialog.Font, Error #11 message In-Reply-To: <201003280825.02250.rterry@...1946...> References: <4BAE1F65.3070604@...647...> <201003280825.02250.rterry@...1946...> Message-ID: <201003282359.21294.gambas@...1...> > On Sunday 28 March 2010 02:08:21 Maurice Dumais wrote: > > Finally, someone has reproduced a bug I've been trying to reproduce for 6 > onths or more!!!!. agree with you,However I found it wasn't that clear cut. > sometimes the Sig 11 occurred after a few uses. Hopefully benoit can find > the bug now with your suggestion. > > Richard > > > Hi, > > I encounter a problem with Dialog.Font, whenever I use it more than once > > in the same program session. That is, the first time it works as > > expected, then if I use it again, the program crashes and sends me a > > signal 11 message. > > > > To reproduce it: simply add a TextArea and a button to a Form, and copy > > to the button Click event, the code found in the Wiki under the Section > > FONT in the gb.qt4 component. Then try to change the Font of the > > TextArea more than once. > > > > However, the Dialog.Color box behaves perfectly, and this, with or > > without the gb.Form.Dialog component being activated. > > > > I am currently using Gambas3 (svn 2818) with qt, on MDV 2010.0 with KDE4. > > > > Thanks in anticipation, > > > > Regards, > > > > M. Dumais > > The bug should be fixed in revision #2841. Regards, -- Beno?t Minisini From mdumm at ...647... Tue Mar 30 15:59:13 2010 From: mdumm at ...647... (Maurice Dumais) Date: Tue, 30 Mar 2010 09:59:13 -0400 Subject: [Gambas-user] Pb with Dialog.Font, Error #11 message In-Reply-To: <201003282359.21294.gambas@...1...> References: <4BAE1F65.3070604@...647...> <201003280825.02250.rterry@...1946...> <201003282359.21294.gambas@...1...> Message-ID: <4BB203B1.5060309@...647...> Le 2010-03-28 17:59, Beno?t Minisini a ?crit : >> On Sunday 28 March 2010 02:08:21 Maurice Dumais wrote: >> >> Finally, someone has reproduced a bug I've been trying to reproduce for 6 >> onths or more!!!!. agree with you,However I found it wasn't that clear cut. >> sometimes the Sig 11 occurred after a few uses. Hopefully benoit can find >> the bug now with your suggestion. >> >> Richard >> >> >>> Hi, >>> I encounter a problem with Dialog.Font, whenever I use it more than once >>> in the same program session. That is, the first time it works as >>> expected, then if I use it again, the program crashes and sends me a >>> signal 11 message. >>> >>> To reproduce it: simply add a TextArea and a button to a Form, and copy >>> to the button Click event, the code found in the Wiki under the Section >>> FONT in the gb.qt4 component. Then try to change the Font of the >>> TextArea more than once. >>> >>> However, the Dialog.Color box behaves perfectly, and this, with or >>> without the gb.Form.Dialog component being activated. >>> >>> I am currently using Gambas3 (svn 2818) with qt, on MDV 2010.0 with KDE4. >>> >>> Thanks in anticipation, >>> >>> Regards, >>> >>> M. Dumais >>> >>> > The bug should be fixed in revision #2841. > > Regards, > > Thanks Beno?t, It works fine now. Regards, M. Dumais From Karl.Reinl at ...2345... Wed Mar 31 10:25:10 2010 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 31 Mar 2010 10:25:10 +0200 Subject: [Gambas-user] solved Re: gambas3 Revision 2835. IDE crashes In-Reply-To: <1269790813.6550.20.camel@...40...> References: <1269715084.8115.5.camel@...40...> <201003280416.39592.gambas@...1...> <1269790813.6550.20.camel@...40...> Message-ID: <1270023910.6662.10.camel@...40...> Am Sonntag, den 28.03.2010, 17:40 +0200 schrieb Charlie Reinl: > Am Sonntag, den 28.03.2010, 04:16 +0200 schrieb Beno?t Minisini: > > > Salut, > > > > > > starting gambas3 Revision 2835 complied today > > > I get this: > > > > > > Desktop.Width_Read.321: #13: Null object > > > 0: Desktop.Width_Read.321 > > > 1: FMain._new.22 > > > 2: Project.Main.202 > > > > > > attached you the logs. > > > > > > for my TEST-Laptop : > > > > > > [OperatingSystem] > > > OperatingSystem=Linux > > > KernelRelease=2.6.31.12-desktop-3mnb > > > DistributionVendor=MandrivaLinux > > > DistributionRelease="Mandriva Linux 2010.0" > > > > > > [System] > > > CPUArchitecture=i686 > > > TotalRam=497108 kB > > > > > > [Gambas] > > > Gambas1=Not Installed > > > Gambas2=2.20.2 Revision 2835. > > > Gambas2Path=/usr/local/bin/gbx2 > > > Gambas3=2.99.0 Revision 2835. > > > Gambas3Path=/usr/local/bin/gbx3 > > > > Nothing has changed in the Desktop component for a long time. > > > > The Desktop.Width property reads a standard X11 property attached to the root > > window. Do you use a special desktop, or gui environment? > > > > Salut, > > seams to be a iceWM problem , when I use Gnome, LXDE, Openbox or > WindowsMaker Desktop.Width returns a value. (KDE4 don't start) > > With iceWM when I try to inspect Desktop.Width the IDE crashes. > > On iceWM , > $ xdpyinfo | grep 'dimensions:' returns 1024*768 what is the right > value. > > So for me it's Salut, I have tested on a virtual Mandriva 2010.0 on a "normal" computer, where all desktop environment starts well. But the behave with iceWM is still there. When I try to inspect Desktop. under iceWM (I set Desktop.Width to a fix 1024) the IDE crash. -- Amicalement Charlie From keithclark at ...2185... Wed Mar 31 14:53:24 2010 From: keithclark at ...2185... (Keith Clark) Date: Wed, 31 Mar 2010 08:53:24 -0400 Subject: [Gambas-user] gb.net.curl Message-ID: <1270040004.8896.6.camel@...2383...> I have a project that I'm working on, and at home I included the required gb.net.curl by adding it in Project>Properties>Components. This is on a machine running Ubuntu 10.04 Beta. I then created an executable, along with a complete copy of the entire directory and tried it here at work on a machine running Ubuntu 9.10 and Gambas 2.13. It says that I am missing gb.net.curl. I tried to then open up the project and add the package as I did at home, but the package is not available. Not sure what is wrong here but here are a few hints. It all worked fine last week at both locations. The only difference here is that I did some work on the program at home, but also upgraded to 10.04 Beta. Maybe there is a package difference now between what is included between 9.10 and 10.04? Not sure. Keith From prog at ...2177... Wed Mar 31 17:59:15 2010 From: prog at ...2177... (craf) Date: Wed, 31 Mar 2010 12:59:15 -0300 Subject: [Gambas-user] Problem with PATH to shared library Message-ID: <1270051155.3418.9.camel@...2406...> Hi. I'm trying to port an application from Ubuntu 9.10 to Ubuntu 8.04. It uses the environment variable GB, indicated by Benoit. My project uses the following components: gb.draw gb.form gb.gtk gb.gtk.ext I use a file called executable.sh to call the application, which is as follows: #!/bin/sh export PATH = / opt/my_project/gambas2/bin GB_DIR export = /opt/my_project/gambas2 exec opt/my_project / my_project.gambas If I copy my project folder to another distribution of the same version, such as the 9.10 on the 91.0, there is no problem. Now, if I copy the project to a different distribution, such as 9.10 to 8.04 is that the components of Gambas need other shared libraries, so look for them one by one with the LDD command and stores the same way which is stored in the distribution, ex /library_shared/ lib/tls/cmov ... /library_shared/lib... To add the following call path in the executable.sh #!/bin/sh export PATH = /opt/my_project/gambas2/bin GB_DIR export = /opt/my_project/gambas2 export LD_LIBRARY_PATH = /opt/my_project/gambas2/library_shared exec /opt/my_project/my_project.gambas But the problem is that the executable GBR2 not find the path to the shared libraries. "gbr2: error while loading shared libraries: libffi.so.5: can not open shared object file: No such file or directory" What could be the correct way to indicate the path to the shared libraries in the file executable.sh Regards. From jussi.lahtinen at ...626... Wed Mar 31 21:04:18 2010 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 31 Mar 2010 22:04:18 +0300 Subject: [Gambas-user] Bug with * operator (I think) Message-ID: Hi! I'm using Gambas 3 rev 2822 @ Ubuntu 9.10 64bit. To IDE console; ?3413156131^2 1.164963477458E+19 Right. ?3413156131*3413156131 -6797109299126662455 Wrong. Or in code; dim y as long = 3413156131 Print (y * (1 + y)) / 2 Result; -3398554647856753152 Wrong. Also, is there possibility to define integer variable bigger than 64bit? I need really big numbers... Jussi From prog at ...2177... Wed Mar 31 21:29:02 2010 From: prog at ...2177... (craf) Date: Wed, 31 Mar 2010 16:29:02 -0300 Subject: [Gambas-user] Problem with PATH to shared library - part 2 Message-ID: <1270063742.3189.35.camel@...2406...> Hello. I forgot in the previous mail indicate the steps I have done: First run the command $ ldd gbr2 to see if there were dependency problems, which I produced the following result: $ Ldd gbr2 linux-gate.so.1 => (0xb770d000) libm.so.6 => / lib/tls/i686/cmov/libm.so.6 (0xb76db000) libdl.so.2 => / lib/tls/i686/cmov/libdl.so.2 (0xb76d7000) libpthread.so.0 => / lib/tls/i686/cmov/libpthread.so.0 (0xb76be000) libffi.so.5 => not found libc.so.6 => / lib/tls/i686/cmov/libc.so.6 (0xb756f000) / Lib/ld-linux.so.2 (0xb770e000) This tells me they can not find the shared library libffi.so.5, for which issued the command: $ Tree opt my_project/ |-- gambas2 | |-- bin | | |-- gbr2 | | `-- gbx2 | |-- lib | | `-- gambas2 | | |-- gb.draw.la | | |-- gb.draw.so | | |-- gb.draw.so.0 | | |-- gb.draw.so.0.0.0 | | |-- gb.form.component | | |-- gb.form.gambas | | |-- gb.gtk.component | | |-- gb.gtk.ext.component | | |-- gb.gtk.ext.la | | |-- gb.gtk.ext.so | | |-- gb.gtk.ext.so.0 | | |-- gb.gtk.ext.so.0.0.0 | | |-- gb.gtk.gambas | | |-- gb.gtk.la | | |-- gb.gtk.so | | |-- gb.gtk.so.0 | | |-- gb.gtk.so.0.0.0 | | |-- gb.so | | |-- gb.so.0 | | `-- gb.so.0.0.0 | `-- library_shared | |-- lib | | |-- ld-2.9.so | | |-- ld-linux.so.2 | | |-- libgcc_s.so.1 | | |-- libpcre.so.3 | | |-- libpcre.so.3.12.1 | | |-- libselinux.so.1 | | |-- libz.so.1 | | |-- libz.so.1.2.3.3 | | `-- tls | | `-- i686 | | `-- cmov | | |-- libc-2.9.so | | |-- libc.so.6 | | |-- libdl-2.9.so | | |-- libdl.so.2 | | |-- libm-2.9.so | | |-- libm.so.6 | | |-- libpthread-2.9.so | | `-- libpthread.so.0 | `-- usr | `-- lib | |-- libX11.so.6 | |-- libX11.so.6.2.0 | |-- libXau.so.6 | |-- libXau.so.6.0.0 | |-- libXcomposite.so.1 | |-- libXcomposite.so.1.0.0 | |-- libXcursor.so.1 | |-- libXcursor.so.1.0.2 | |-- libXdamage.so.1 | |-- libXdamage.so.1.1.0 | |-- libXdmcp.so.6 | |-- libXdmcp.so.6.0.0 | |-- libXext.so.6 | |-- libXext.so.6.4.0 | |-- libXfixes.so.3 | |-- libXfixes.so.3.1.0 | |-- libXi.so.6 | |-- libXi.so.6.0.0 | |-- libXinerama.so.1 | |-- libXinerama.so.1.0.0 | |-- libXrandr.so.2 | |-- libXrandr.so.2.2.0 | |-- libXrender.so.1 | |-- libXrender.so.1.3.0 | |-- libatk-1.0.so.0 | |-- libatk-1.0.so.0.2609.1 | |-- libcairo.so.2 | |-- libcairo.so.2.10800.6 | |-- libdirect-1.0.so.0 | |-- libdirect-1.0.so.0.1.0 | |-- libdirectfb-1.0.so.0 | |-- libdirectfb-1.0.so.0.1.0 | |-- libexpat.so.1 | |-- libexpat.so.1.5.2 | |-- libffi.so.5- - - - - - - - - - - - - > ?THERE HERE! | |-- libffi.so.5.0.8 | |-- libfontconfig.so.1 | |-- libfontconfig.so.1.3.0 | |-- libfreetype.so.6 | |-- libfreetype.so.6.3.20 | |-- libfusion-1.0.so.0 | |-- libfusion-1.0.so.0.1.0 | |-- libgdk-x11-2.0.so.0 | |-- libgdk-x11-2.0.so.0.1600.1 | |-- libgdk_pixbuf-2.0.so.0 | |-- libgdk_pixbuf-2.0.so.0.1600.1 | |-- libgio-2.0.so.0 | |-- libgio-2.0.so.0.2000.1 | |-- libglib-2.0.so.0 | |-- libglib-2.0.so.0.2000.1 | |-- libgmodule-2.0.so.0 | |-- libgmodule-2.0.so.0.2000.1 | |-- libgobject-2.0.so.0 | |-- libgobject-2.0.so.0.2000.1 | |-- libgtk-x11-2.0.so.0 | |-- libgtk-x11-2.0.so.0.1600.1 | |-- libpango-1.0.so.0 | |-- libpango-1.0.so.0.2400.1 | |-- libpangocairo-1.0.so.0 | |-- libpangocairo-1.0.so.0.2400.1 | |-- libpangoft2-1.0.so.0 | |-- libpangoft2-1.0.so.0.2400.1 | |-- libpixman-1.so.0 | |-- libpixman-1.so.0.13.2 | |-- libpng12.so.0 | |-- libpng12.so.0.27.0 | |-- libstdc++.so.6 | |-- libstdc++.so.6.0.10 | |-- libxcb-render-util.so.0 | |-- libxcb-render-util.so.0.0.0 | |-- libxcb-render.so.0 | |-- libxcb-render.so.0.0.0 | |-- libxcb.so.1 | |-- libxcb.so.1.1.0 | |-- libz.so.1 | `-- libz.so.1.2.3.3 `-- my_project.gambas This shows me that the library is located at: /opt/my_project/gambas2/library_shared/usr/lib Then try to add the path of the libraries in the ld.so.conf file, leaving this way: include /etc/ ld.so.conf.d / *. conf /opt/my_project/gambas2/library_shared Save the changes to the file and then running: $ sudo ldconfig But I keep throwing the mistake of missing the library libffi.so.5 Then I decide to modify the executable.sh, with the following: #! /bin/sh export PATH = / opt/my_project/gambas2/bin GB_DIR export = / opt/my_project/gambas2 export LD_LIBRARY_PATH = / opt/my_project/gambas2/library_shared/lib: / opt/my_project/gambas2/library_shared/usr/lib exec opt / my_project / my_project.gambas But now gives me the message "Segmentation fault" any idea? Regards From rterry at ...1946... Wed Mar 31 22:35:23 2010 From: rterry at ...1946... (richard terry) Date: Thu, 1 Apr 2010 07:35:23 +1100 Subject: [Gambas-user] File Dialog size Message-ID: <201004010735.23130.rterry@...1946...> I wondered if there was any way to set the dialog sizes when called like this: If Dialog.OpenFile() Then As on my system the directory names are not allocated much space and arn't that easy to read, and I have to manually drag the dialog to make it bigger. Regards Richard From gambas at ...1... Wed Mar 31 22:41:15 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Mar 2010 22:41:15 +0200 Subject: [Gambas-user] Problem with PATH to shared library - part 2 In-Reply-To: <1270063742.3189.35.camel@...2406...> References: <1270063742.3189.35.camel@...2406...> Message-ID: <201003312241.15782.gambas@...1...> > Hello. > > I forgot in the previous mail indicate the steps I have done: > > First run the command $ ldd gbr2 to see if there were dependency > problems, which I produced the following result: > > $ Ldd gbr2 > linux-gate.so.1 => (0xb770d000) > libm.so.6 => / lib/tls/i686/cmov/libm.so.6 (0xb76db000) > libdl.so.2 => / lib/tls/i686/cmov/libdl.so.2 (0xb76d7000) > libpthread.so.0 => / lib/tls/i686/cmov/libpthread.so.0 (0xb76be000) > libffi.so.5 => not found > libc.so.6 => / lib/tls/i686/cmov/libc.so.6 (0xb756f000) > / Lib/ld-linux.so.2 (0xb770e000) > > This tells me they can not find the shared library libffi.so.5, for > which issued the command: > > $ Tree opt > > my_project/ > > |-- gambas2 > | > | |-- bin > | | > | | |-- gbr2 > | | > | | `-- gbx2 > | | > | |-- lib > | | > | | `-- gambas2 > | | > | | |-- gb.draw.la > | | |-- gb.draw.so > | | |-- gb.draw.so.0 > | | |-- gb.draw.so.0.0.0 > | | |-- gb.form.component > | | |-- gb.form.gambas > | | |-- gb.gtk.component > | | |-- gb.gtk.ext.component > | | |-- gb.gtk.ext.la > | | |-- gb.gtk.ext.so > | | |-- gb.gtk.ext.so.0 > | | |-- gb.gtk.ext.so.0.0.0 > | | |-- gb.gtk.gambas > | | |-- gb.gtk.la > | | |-- gb.gtk.so > | | |-- gb.gtk.so.0 > | | |-- gb.gtk.so.0.0.0 > | | |-- gb.so > | | |-- gb.so.0 > | | > | | `-- gb.so.0.0.0 > | > | `-- library_shared > | > | |-- lib > | | > | | |-- ld-2.9.so > | | |-- ld-linux.so.2 > | | |-- libgcc_s.so.1 > | | |-- libpcre.so.3 > | | |-- libpcre.so.3.12.1 > | | |-- libselinux.so.1 > | | |-- libz.so.1 > | | |-- libz.so.1.2.3.3 > | | > | | `-- tls > | | > | | `-- i686 > | | > | | `-- cmov > | | > | | |-- libc-2.9.so > | | |-- libc.so.6 > | | |-- libdl-2.9.so > | | |-- libdl.so.2 > | | |-- libm-2.9.so > | | |-- libm.so.6 > | | |-- libpthread-2.9.so > | | > | | `-- libpthread.so.0 > | > | `-- usr > | > | `-- lib > | > | |-- libX11.so.6 > | |-- libX11.so.6.2.0 > | |-- libXau.so.6 > | |-- libXau.so.6.0.0 > | |-- libXcomposite.so.1 > | |-- libXcomposite.so.1.0.0 > | |-- libXcursor.so.1 > | |-- libXcursor.so.1.0.2 > | |-- libXdamage.so.1 > | |-- libXdamage.so.1.1.0 > | |-- libXdmcp.so.6 > | |-- libXdmcp.so.6.0.0 > | |-- libXext.so.6 > | |-- libXext.so.6.4.0 > | |-- libXfixes.so.3 > | |-- libXfixes.so.3.1.0 > | |-- libXi.so.6 > | |-- libXi.so.6.0.0 > | |-- libXinerama.so.1 > | |-- libXinerama.so.1.0.0 > | |-- libXrandr.so.2 > | |-- libXrandr.so.2.2.0 > | |-- libXrender.so.1 > | |-- libXrender.so.1.3.0 > | |-- libatk-1.0.so.0 > | |-- libatk-1.0.so.0.2609.1 > | |-- libcairo.so.2 > | |-- libcairo.so.2.10800.6 > | |-- libdirect-1.0.so.0 > | |-- libdirect-1.0.so.0.1.0 > | |-- libdirectfb-1.0.so.0 > | |-- libdirectfb-1.0.so.0.1.0 > | |-- libexpat.so.1 > | |-- libexpat.so.1.5.2 > | |-- libffi.so.5- - - - - - - - - - - - - > ?THERE HERE! > | |-- libffi.so.5.0.8 > | |-- libfontconfig.so.1 > | |-- libfontconfig.so.1.3.0 > | |-- libfreetype.so.6 > | |-- libfreetype.so.6.3.20 > | |-- libfusion-1.0.so.0 > | |-- libfusion-1.0.so.0.1.0 > | |-- libgdk-x11-2.0.so.0 > | |-- libgdk-x11-2.0.so.0.1600.1 > | |-- libgdk_pixbuf-2.0.so.0 > | |-- libgdk_pixbuf-2.0.so.0.1600.1 > | |-- libgio-2.0.so.0 > | |-- libgio-2.0.so.0.2000.1 > | |-- libglib-2.0.so.0 > | |-- libglib-2.0.so.0.2000.1 > | |-- libgmodule-2.0.so.0 > | |-- libgmodule-2.0.so.0.2000.1 > | |-- libgobject-2.0.so.0 > | |-- libgobject-2.0.so.0.2000.1 > | |-- libgtk-x11-2.0.so.0 > | |-- libgtk-x11-2.0.so.0.1600.1 > | |-- libpango-1.0.so.0 > | |-- libpango-1.0.so.0.2400.1 > | |-- libpangocairo-1.0.so.0 > | |-- libpangocairo-1.0.so.0.2400.1 > | |-- libpangoft2-1.0.so.0 > | |-- libpangoft2-1.0.so.0.2400.1 > | |-- libpixman-1.so.0 > | |-- libpixman-1.so.0.13.2 > | |-- libpng12.so.0 > | |-- libpng12.so.0.27.0 > | |-- libstdc++.so.6 > | |-- libstdc++.so.6.0.10 > | |-- libxcb-render-util.so.0 > | |-- libxcb-render-util.so.0.0.0 > | |-- libxcb-render.so.0 > | |-- libxcb-render.so.0.0.0 > | |-- libxcb.so.1 > | |-- libxcb.so.1.1.0 > | |-- libz.so.1 > | > | `-- libz.so.1.2.3.3 > > `-- my_project.gambas > > > This shows me that the library is located at: > > /opt/my_project/gambas2/library_shared/usr/lib > > Then try to add the path of the libraries in the ld.so.conf file, > leaving this way: > > include /etc/ ld.so.conf.d / *. conf > /opt/my_project/gambas2/library_shared If the library is located in '/opt/my_project/gambas2/library_shared/usr/lib', why do you write '/opt/my_project/gambas2/library_shared' only? > > Save the changes to the file and then running: > > $ sudo ldconfig > > But I keep throwing the mistake of missing the library libffi.so.5 > > Then I decide to modify the executable.sh, with the following: > > #! /bin/sh > export PATH = / opt/my_project/gambas2/bin The syntax is not correct, you should have no spaces inside the path, and around the equal sign. > GB_DIR export = / opt/my_project/gambas2 The syntax of this line is not correct too. 'export' must come first. > export LD_LIBRARY_PATH = / opt/my_project/gambas2/library_shared/lib: / > opt/my_project/gambas2/library_shared/usr/lib same remark with spaces. > exec opt / my_project / my_project.gambas same remark with spaces. > > But now gives me the message "Segmentation fault" > > any idea? > Nope. But fix all the previous errors and try again! -- Beno?t Minisini From admhardsoft at ...253... Wed Mar 31 22:43:35 2010 From: admhardsoft at ...253... (admhardsoft at ...253...) Date: Wed, 31 Mar 2010 20:43:35 +0000 Subject: [Gambas-user] About data control for gambas Message-ID: <860357200-1270068203-cardhu_decombobulator_blackberry.rim.net-1498594452-@...2405...> Hi I would like to know wich control have gambas for data access for mysql for example. Show or taken any information from or to data base Thanks Sent on the TELUS Mobility network with BlackBerry From gambas at ...1... Wed Mar 31 22:46:07 2010 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 31 Mar 2010 22:46:07 +0200 Subject: [Gambas-user] Bug with * operator (I think) In-Reply-To: References: Message-ID: <201003312246.07180.gambas@...1...> > Hi! > I'm using Gambas 3 rev 2822 @ Ubuntu 9.10 64bit. > > To IDE console; > > ?3413156131^2 > 1.164963477458E+19 > Right. > > ?3413156131*3413156131 > -6797109299126662455 > Wrong. > > > Or in code; > > dim y as long = 3413156131 > Print (y * (1 + y)) / 2 > > Result; > -3398554647856753152 > Wrong. The '*' operator (like '+' and '-') returns the same datatype as its arguments. There is no conversion to a bigger datatype if needed, so the result is truncated. > > > Also, is there possibility to define integer variable bigger than 64bit? No. > I need really big numbers... Find a volunteer to implement a Gambas component based on a library that can manage big integers, like that one: http://gmplib.org/ Regards, -- Beno?t Minisini From prog at ...2177... Wed Mar 31 23:26:00 2010 From: prog at ...2177... (craf) Date: Wed, 31 Mar 2010 18:26:00 -0300 Subject: [Gambas-user] Problem with PATH to shared library - part 2 In-Reply-To: <201003312241.15782.gambas@...1...> References: <1270063742.3189.35.camel@...2406...> <201003312241.15782.gambas@...1...> Message-ID: <1270070760.5024.8.camel@...2406...> -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Problem with PATH to shared library - part 2 Fecha: Wed, 31 Mar 2010 22:41:15 +0200 > Hello. > > I forgot in the previous mail indicate the steps I have done: > > First run the command $ ldd gbr2 to see if there were dependency > problems, which I produced the following result: > > $ Ldd gbr2 > linux-gate.so.1 => (0xb770d000) > libm.so.6 => / lib/tls/i686/cmov/libm.so.6 (0xb76db000) > libdl.so.2 => / lib/tls/i686/cmov/libdl.so.2 (0xb76d7000) > libpthread.so.0 => / lib/tls/i686/cmov/libpthread.so.0 (0xb76be000) > libffi.so.5 => not found > libc.so.6 => / lib/tls/i686/cmov/libc.so.6 (0xb756f000) > / Lib/ld-linux.so.2 (0xb770e000) > > This tells me they can not find the shared library libffi.so.5, for > which issued the command: > > $ Tree opt > > my_project/ > > |-- gambas2 > | > | |-- bin > | | > | | |-- gbr2 > | | > | | `-- gbx2 > | | > | |-- lib > | | > | | `-- gambas2 > | | > | | |-- gb.draw.la > | | |-- gb.draw.so > | | |-- gb.draw.so.0 > | | |-- gb.draw.so.0.0.0 > | | |-- gb.form.component > | | |-- gb.form.gambas > | | |-- gb.gtk.component > | | |-- gb.gtk.ext.component > | | |-- gb.gtk.ext.la > | | |-- gb.gtk.ext.so > | | |-- gb.gtk.ext.so.0 > | | |-- gb.gtk.ext.so.0.0.0 > | | |-- gb.gtk.gambas > | | |-- gb.gtk.la > | | |-- gb.gtk.so > | | |-- gb.gtk.so.0 > | | |-- gb.gtk.so.0.0.0 > | | |-- gb.so > | | |-- gb.so.0 > | | > | | `-- gb.so.0.0.0 > | > | `-- library_shared > | > | |-- lib > | | > | | |-- ld-2.9.so > | | |-- ld-linux.so.2 > | | |-- libgcc_s.so.1 > | | |-- libpcre.so.3 > | | |-- libpcre.so.3.12.1 > | | |-- libselinux.so.1 > | | |-- libz.so.1 > | | |-- libz.so.1.2.3.3 > | | > | | `-- tls > | | > | | `-- i686 > | | > | | `-- cmov > | | > | | |-- libc-2.9.so > | | |-- libc.so.6 > | | |-- libdl-2.9.so > | | |-- libdl.so.2 > | | |-- libm-2.9.so > | | |-- libm.so.6 > | | |-- libpthread-2.9.so > | | > | | `-- libpthread.so.0 > | > | `-- usr > | > | `-- lib > | > | |-- libX11.so.6 > | |-- libX11.so.6.2.0 > | |-- libXau.so.6 > | |-- libXau.so.6.0.0 > | |-- libXcomposite.so.1 > | |-- libXcomposite.so.1.0.0 > | |-- libXcursor.so.1 > | |-- libXcursor.so.1.0.2 > | |-- libXdamage.so.1 > | |-- libXdamage.so.1.1.0 > | |-- libXdmcp.so.6 > | |-- libXdmcp.so.6.0.0 > | |-- libXext.so.6 > | |-- libXext.so.6.4.0 > | |-- libXfixes.so.3 > | |-- libXfixes.so.3.1.0 > | |-- libXi.so.6 > | |-- libXi.so.6.0.0 > | |-- libXinerama.so.1 > | |-- libXinerama.so.1.0.0 > | |-- libXrandr.so.2 > | |-- libXrandr.so.2.2.0 > | |-- libXrender.so.1 > | |-- libXrender.so.1.3.0 > | |-- libatk-1.0.so.0 > | |-- libatk-1.0.so.0.2609.1 > | |-- libcairo.so.2 > | |-- libcairo.so.2.10800.6 > | |-- libdirect-1.0.so.0 > | |-- libdirect-1.0.so.0.1.0 > | |-- libdirectfb-1.0.so.0 > | |-- libdirectfb-1.0.so.0.1.0 > | |-- libexpat.so.1 > | |-- libexpat.so.1.5.2 > | |-- libffi.so.5- - - - - - - - - - - - - > ?THERE HERE! > | |-- libffi.so.5.0.8 > | |-- libfontconfig.so.1 > | |-- libfontconfig.so.1.3.0 > | |-- libfreetype.so.6 > | |-- libfreetype.so.6.3.20 > | |-- libfusion-1.0.so.0 > | |-- libfusion-1.0.so.0.1.0 > | |-- libgdk-x11-2.0.so.0 > | |-- libgdk-x11-2.0.so.0.1600.1 > | |-- libgdk_pixbuf-2.0.so.0 > | |-- libgdk_pixbuf-2.0.so.0.1600.1 > | |-- libgio-2.0.so.0 > | |-- libgio-2.0.so.0.2000.1 > | |-- libglib-2.0.so.0 > | |-- libglib-2.0.so.0.2000.1 > | |-- libgmodule-2.0.so.0 > | |-- libgmodule-2.0.so.0.2000.1 > | |-- libgobject-2.0.so.0 > | |-- libgobject-2.0.so.0.2000.1 > | |-- libgtk-x11-2.0.so.0 > | |-- libgtk-x11-2.0.so.0.1600.1 > | |-- libpango-1.0.so.0 > | |-- libpango-1.0.so.0.2400.1 > | |-- libpangocairo-1.0.so.0 > | |-- libpangocairo-1.0.so.0.2400.1 > | |-- libpangoft2-1.0.so.0 > | |-- libpangoft2-1.0.so.0.2400.1 > | |-- libpixman-1.so.0 > | |-- libpixman-1.so.0.13.2 > | |-- libpng12.so.0 > | |-- libpng12.so.0.27.0 > | |-- libstdc++.so.6 > | |-- libstdc++.so.6.0.10 > | |-- libxcb-render-util.so.0 > | |-- libxcb-render-util.so.0.0.0 > | |-- libxcb-render.so.0 > | |-- libxcb-render.so.0.0.0 > | |-- libxcb.so.1 > | |-- libxcb.so.1.1.0 > | |-- libz.so.1 > | > | `-- libz.so.1.2.3.3 > > `-- my_project.gambas > > > This shows me that the library is located at: > > /opt/my_project/gambas2/library_shared/usr/lib > > Then try to add the path of the libraries in the ld.so.conf file, > leaving this way: > > include /etc/ ld.so.conf.d / *. conf > /opt/my_project/gambas2/library_shared >If the library is located in '/opt/my_project/gambas2/library_shared/usr/lib', >why do you write '/opt/my_project/gambas2/library_shared' only? ?yes! it is as I have on file executable.sh. #!/bin/sh export PATH=/opt/my_project/gambas2/bin export GB_DIR=/opt/my_project/gambas2 export LD_LIBRARY_PATH=/opt/my_project/gambas2/library_shared exec /opt/my_project/my_project.gambas > > Save the changes to the file and then running: > > $ sudo ldconfig > > But I keep throwing the mistake of missing the library libffi.so.5 > > Then I decide to modify the executable.sh, with the following: > > #! /bin/sh > export PATH = / opt/my_project/gambas2/bin >The syntax is not correct, you should have no spaces inside the path, and >around the equal sign. Sorry, bad, bad, google translator ;=p (In original code no spaces) > GB_DIR export = / opt/my_project/gambas2 >The syntax of this line is not correct too. 'export' must come first. again, Google translator (in original code no spaces) > export LD_LIBRARY_PATH = / opt/my_project/gambas2/library_shared/lib: / > opt/my_project/gambas2/library_shared/usr/lib >same remark with spaces. oops, again.sorry > exec opt / my_project / my_project.gambas >same remark with spaces. bad, bad email redacted > > But now gives me the message "Segmentation fault" > > any idea? > >Nope. But fix all the previous errors and try again! The problem is that you can not find the path to that library in specific, can do what I'm trying to do?, Is that correct place LID_LIBRARY_PATH export?. If I do could be the prelude to an installer. Regards